[57037] trunk/dports/audio/qtplay/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Sep 5 05:01:50 PDT 2009


Revision: 57037
          http://trac.macports.org/changeset/57037
Author:   ryandesign at macports.org
Date:     2009-09-05 05:01:49 -0700 (Sat, 05 Sep 2009)
Log Message:
-----------
qtplay: respect build_arch to fix build failure on Snow Leopard; closes #21115

Modified Paths:
--------------
    trunk/dports/audio/qtplay/Portfile

Modified: trunk/dports/audio/qtplay/Portfile
===================================================================
--- trunk/dports/audio/qtplay/Portfile	2009-09-05 11:57:49 UTC (rev 57036)
+++ trunk/dports/audio/qtplay/Portfile	2009-09-05 12:01:49 UTC (rev 57037)
@@ -32,9 +32,17 @@
 
 use_configure           no
 
-set my_ldflags          "-framework Carbon -framework QuickTime"
+configure.ldflags       -framework Carbon -framework QuickTime
+
+# Respect build_arch
+if {![variant_isset universal]} {
+    configure.ldflags-append ${configure.cc_archflags}
+}
+
 build {
-    system "cd ${worksrcpath} && ${configure.cc} -o ${name} ${my_ldflags} ${name}.c"
+    set cmd "cd ${worksrcpath} && ${configure.cc} -o ${name} [join ${configure.ldflags}] ${name}.c"
+    ui_debug ${cmd}
+    system ${cmd}
 }
 
 destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090905/eb7fe7a3/attachment.html>


More information about the macports-changes mailing list