[32694] trunk/dports/devel/libsdl_image-framework/Portfile

nox at macports.org nox at macports.org
Fri Jan 11 07:46:19 PST 2008


Revision: 32694
          http://trac.macosforge.org/projects/macports/changeset/32694
Author:   nox at macports.org
Date:     2008-01-11 07:46:17 -0800 (Fri, 11 Jan 2008)

Log Message:
-----------
libsdl_image-framework: Fixed universal support (closes #13137).

Modified Paths:
--------------
    trunk/dports/devel/libsdl_image-framework/Portfile

Modified: trunk/dports/devel/libsdl_image-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_image-framework/Portfile	2008-01-11 15:43:17 UTC (rev 32693)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2008-01-11 15:46:17 UTC (rev 32694)
@@ -33,6 +33,16 @@
 xcode.target        Framework
 xcode.destroot.type framework
 
+if {! [variant_isset universal]} {
+    set arch ${os.arch}
+    if {! [string compare ${os.arch} powerpc]} {
+        set arch ppc
+    }
+
+    xcode.build.settings    ARCHS=${arch}
+    xcode.destroot.settings ARCHS=${arch}
+}
+
 post-extract {
     system "cd ${worksrcpath} && \
         tar -xvzf Xcode.tar.gz Xcode/{exports/SDL_image.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj}"
@@ -52,16 +62,8 @@
     xcode.destroot.settings ${xcode.build.settings}
 }
 
-variant universal {
-    set arch ${os.arch}
-    if {! [string compare ${os.arch} powerpc]} {
-        set arch ppc
-    }
+variant universal {}
 
-    xcode.build.settings    ARCHS=${arch}
-    xcode.destroot.settings ARCHS=${arch}
-}
-
 livecheck.check regex
 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080111/3da6222f/attachment.html


More information about the macports-changes mailing list