Revision
139996
Author
takeshi@macports.org
Date
2015-09-05 13:53:20 -0700 (Sat, 05 Sep 2015)

Log Message

fpc: use macosx_deployment_target variable instead of passing it as make's arg

Modified Paths

Diff

Modified: trunk/dports/lang/fpc/Portfile (139995 => 139996)


--- trunk/dports/lang/fpc/Portfile	2015-09-05 20:17:09 UTC (rev 139995)
+++ trunk/dports/lang/fpc/Portfile	2015-09-05 20:53:20 UTC (rev 139996)
@@ -39,9 +39,11 @@
 
 destroot.env        ${build.env}
 
-if {${os.major} > 13} {
-    build.args      MACOSX_DEPLOYMENT_TARGET='10.9'
-    destroot.args   ${build.args}
+# Yosemite fix: fpc's build system checkes MACOSX_DEPLOYMENT_TARGET and halts if > 10.9
+platform darwin {
+    if {${os.major} > 13} {
+        macosx_deployment_target    10.9
+    }
 }
 
 post-destroot {