summaryrefslogtreecommitdiff
path: root/homebrew/fpc/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fpc/.make.sh-auto')
-rw-r--r--homebrew/fpc/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/fpc/.make.sh-auto b/homebrew/fpc/.make.sh-auto
new file mode 100644
index 000000000..aad1e947a
--- /dev/null
+++ b/homebrew/fpc/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+fpc_bootstrap = buildpath/"bootstrap"
+resource("bootstrap").stage { fpc_bootstrap.install Dir["*"] }
+fpc_compiler = fpc_bootstrap/"ppcx64"
+args = (MacOS.version >= :mojave) ? ['OPT="-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"'] : []
+make build PP=#{fpc_compiler} *args
+make DESTDIR=${PKG_DEST} install PP=#{fpc_compiler} PREFIX=${PKG_TAPF}
+bin.install_symlink lib/"#{name}/#{version}/ppcx64"
+rm_f Dir[bin/"*.rsj"]
+#{bin}/fpcmkcfg -p -d basepath=#{lib}/fpc/#{version} -o ${PKG_TAPF}/etc/fpc.cfg