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

ryandesign at macports.org ryandesign at macports.org
Sat Aug 7 13:26:20 PDT 2010


Revision: 70375
          http://trac.macports.org/changeset/70375
Author:   ryandesign at macports.org
Date:     2010-08-07 13:26:17 -0700 (Sat, 07 Aug 2010)
Log Message:
-----------
qtplay: use supported_archs, and fix build problem when the nonexistent universal variant is nevertheless requested

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

Modified: trunk/dports/audio/qtplay/Portfile
===================================================================
--- trunk/dports/audio/qtplay/Portfile	2010-08-07 19:59:52 UTC (rev 70374)
+++ trunk/dports/audio/qtplay/Portfile	2010-08-07 20:26:17 UTC (rev 70375)
@@ -35,19 +35,10 @@
 configure.ldflags       -framework Carbon -framework QuickTime
 
 # Force 32-bit (#21115)
-if {${build_arch} == "x86_64"} {
-    configure.build_arch i386
-} elseif {${build_arch} == "ppc64"} {
-    configure.build_arch ppc
-}
+supported_archs         ppc i386
 
-# Respect build_arch
-if {![variant_isset universal]} {
-    configure.ldflags-append ${configure.cc_archflags}
-}
-
 build {
-    set cmd "cd ${worksrcpath} && ${configure.cc} -o ${name} [join ${configure.ldflags}] ${name}.c"
+    set cmd "cd ${worksrcpath} && ${configure.cc} -o ${name} ${configure.ldflags} ${configure.cc_archflags} ${name}.c"
     ui_debug ${cmd}
     system ${cmd}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100807/2dc93488/attachment.html>


More information about the macports-changes mailing list