# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 name lazarus version 3.6-0 revision 0 categories devel license GPL-2 LGPL-2 maintainers {@kamischi web.de:karl-michael.schindler} openmaintainer description Free Pascal IDE. long_description Lazarus is an open-source development system that builds \ on the Free Pascal compiler by adding an integrated \ development environment (IDE). It includes a \ syntax-highlighting code editor and a visual form \ designer, as well as a component library that is highly \ compatible with Delphi's Visual Component Library \ (VCL). The Lazarus Component Library (LCL) includes \ equivalents for many of the familiar VCL controls such \ as forms, buttons, text boxes and so on, which are used \ to create applications with a graphical user interface \ (GUI). homepage https://wiki.freepascal.org/Main_Page master_sites sourceforge:lazarus checksums rmd160 1e02047c3cb8488c8f8e5c857fbac7dbb5c6334b \ sha256 e65b90367f63bf17cb7bf35f5be69c9ef704ca494e91d8c67d072e3373fab085 \ size 87683159 depends_lib port:fpc port:fpc-sources supported_archs x86_64 arm64 use_configure no worksrcdir lazarus patchfiles noGUI-Printer.patch post-patch { # add the MacPorts directory tree. This might need a check in a new version set patchtarget ${worksrcpath}/ide/packages/ideconfig/include/unix/lazbaseconf.inc reinplace "s|1\.\.16|1\.\.17|g" ${patchtarget} reinplace "s|'/usr/share/fpcsrc'|'/usr/share/fpcsrc',\\ '${prefix}/share/fpcsrc'|g" ${patchtarget} reinplace "s|1\.\.8|1\.\.9|g" ${patchtarget} reinplace "s|'/usr/share/lazarus',|'/usr/share/lazarus',\\ '${prefix}/share/lazarus',|g" ${patchtarget} # change the preferences directory (actually, not yet) # reinplace "s|'\.lazarus'|'Library/Preferences/lazarus'|g" ${patchtarget} reinplace "s|'/etc/lazarus'|'${prefix}/etc/lazarus'|g" ${patchtarget} # adjust the default paths to MacPorts paths set patchtarget ${worksrcpath}/tools/install/macosx/environmentoptions.xml switch ${build_arch} { x86_64 { set defaultCompiler ppcx64 } arm64 { set defaultCompiler ppca64 } default { set defaultCompiler unsupported } } reinplace "s|/usr/local/bin/_PPCARCH_|${prefix}/bin/${defaultCompiler}|g" ${patchtarget} reinplace "s|/usr/local/share|${prefix}/share|g" ${patchtarget} reinplace "s|/Developer/lazarus|${prefix}/share/lazarus|g" ${patchtarget} reinplace "s||\\ \\ \\ \\ \\ \\ |g" ${patchtarget} # some more fixes for nogui taking cocoa as a template # if cocoa or nogui get updated, the files in ${filespath} need to be updated manually copy ${filespath}/nogui ${worksrcpath}/components/lclextensions/include/ copy ${worksrcpath}/components/virtualtreeview/units/cocoa ${worksrcpath}/components/virtualtreeview/units/nogui copy ${worksrcpath}/components/virtualtreeview/include/intf/cocoa/ ${worksrcpath}/components/virtualtreeview/include/intf/nogui } build.target bigide build.post_args OPT=-gl LCL_PLATFORM=cocoa use_parallel_build no destroot.post_args INSTALL_PREFIX=${destroot}${prefix} post-destroot { xinstall -m 755 -d ${destroot}${prefix}/etc/lazarus xinstall -m 644 ${worksrcpath}/tools/install/macosx/environmentoptions.xml ${destroot}${prefix}/etc/lazarus ln -s ${prefix}/share/lazarus/lazarus.app ${destroot}${applications_dir} # Install documentation files xinstall -m 755 -d ${destroot}${prefix}/share/doc/lazarus xinstall -m 644 {*}[glob ${worksrcpath}/docs/*.txt] ${destroot}${prefix}/share/doc/lazarus xinstall -m 644 {*}[glob ${worksrcpath}/docs/*.pdf] ${destroot}${prefix}/share/doc/lazarus } notes " Release Notes: https://wiki.freepascal.org/Lazarus_3.0_release_notes " livecheck.regex "lazarus-(\\d+(?:\\.\\d+)*-\\d)"