Package: fpc Version: 3.2.2 Revision: 1 Replaces: fpc-config (<< 3.2.2) Recommends: fpc-doc CustomMirror: << eur-HU: ftp://ftp.hu.freepascal.org/pub/fpc/ nam-CA: ftp://mirror.freemirror.org/pub/fpc/ Primary: ftp://ftp.freepascal.org/pub/fpc/ << Source: mirror:custom:/dist/%v/source/fpcbuild-%v.tar.gz Source-Checksum: SHA256(85ef993043bb83f999e2212f1bca766eb71f6f973d362e2290475dbaaf50161f) Source2: mirror:custom:/dist/3.0.4/bootstrap/x86_64-macosx-10.9-ppcx64.tar.bz2 Source2-Checksum: SHA256(0515ad4251c51fa7e5c0ff9b1d90ea50f41530b56276cc72b73798fae437b3b4) Source2Rename: x86_64-macosx-10.7-ppcx64-3.0.4.tar.bz2 SourceDirectory: fpcbuild-%v/fpcsrc UseMaxBuildJobs: false BuildDepends: fink (>= 0.32.0) PatchFile: %n.patch PatchFile-MD5: a7a38264286e073c401fbe639f5067ee Patchscript: << #!/bin/sh -ev patch -p2 < %{PatchFile} # adjust the path "codfilepath" for plex from /usr/local to fink's prefix. sed -i.bak 's|/usr/local|%p|g' utils/tply/pyacc.y sed -i.bak 's|/usr/local|%p|g' utils/tply/pyacc.pas sed -i.bak 's|/usr/local|%p|g' utils/tply/plex.pas # fixes building of lazarus on older system < 10.11. sed -i.bak 's|{\$linkframework CoreImage}|{linkframework CoreImage}|g' \ packages/cocoaint/src/CocoaAll.pas << CompileScript: << #!/bin/sh -ev # Explicitly set minimum version of OS X # Avoids harmless but annoying ld warning # Keep in sync with fpc-config export MACOSX_DEPLOYMENT_TARGET=10.9 linkerOptions="" if [ "$(uname -r | cut -d. -f1)" -ge 19 ] ; then linkerOptions="-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" fi # compile the compiler make all OPT="-ap $linkerOptions" PP="%b/../../ppcx64" # create the config file %b/utils/fpcmkcfg/bin/%m-darwin/fpcmkcfg -d basepath=%p/lib/%n/\$fpcversion -o fpc.cfg cat >fpc.cfg.patch <