# -*- 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 2.2.6-0 revision 0 categories devel platforms darwin 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 d3c226a2ef7d9caaf0215c21af5f1e729edfca7a \ sha256 39f4cf98c0a94b39a058e733baa62f1c1d5dcfa6599dc57bc5efc4c0d08c485c \ size 78351752 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/include/unix/lazbaseconf.inc reinplace "s|1\.\.15|1\.\.16|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} reinplace "s|'/usr/local/bin/'+GetDefaultCompilerFilename);|'${prefix}/bin/'+GetDefaultCompilerFilename);\\ AddFilenameToList(List,'/usr/local/bin/'+GetDefaultCompilerFilename);|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_2.2.0_release_notes " livecheck.regex "lazarus-(\\d+(?:\\.\\d+)*-\\d)"