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

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 13 06:42:39 PDT 2007


Revision: 29032
          http://trac.macosforge.org/projects/macports/changeset/29032
Author:   nox at macports.org
Date:     2007-09-13 06:42:39 -0700 (Thu, 13 Sep 2007)

Log Message:
-----------
libsdl_image-framework:
 * Reworked universal support.
 * Removed cd call.

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

Modified: trunk/dports/devel/libsdl_image-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_image-framework/Portfile	2007-09-13 13:39:36 UTC (rev 29031)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2007-09-13 13:42:39 UTC (rev 29032)
@@ -7,7 +7,7 @@
 set my_name     SDL_image
 version         1.2.6
 categories      devel graphics
-platforms		macosx
+platforms       macosx
 maintainers     nox openmaintainer
 description     Add on library for libSDL handling several image formats
 
@@ -33,23 +33,9 @@
 xcode.target        Framework
 xcode.destroot.type framework
 
-# Dummy configure to enable +universal variant.
-use_configure   yes
-configure       {}
-
-if {! [variant_isset universal]} {
-    set arch ${os.arch}
-    if {! [string compare ${os.arch} powerpc]} {
-        set arch ppc
-    }
-
-    xcode.build.settings-append     ARCHS=${arch}
-    xcode.destroot.settings-append  ARCHS=${arch}
-}
-
 post-extract {
-    cd ${worksrcpath}
-    system "tar -x Xcode/{exports/SDL_image.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj} -vzf Xcode.tar.gz"
+    system "cd ${worksrcpath} && \
+        tar -x Xcode/{exports/SDL_image.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj} -vzf Xcode.tar.gz"
 }
 
 post-patch {
@@ -66,6 +52,16 @@
     xcode.destroot.settings ${xcode.build.settings}
 }
 
+variant universal {
+    set arch ${os.arch}
+    if {! [string compare ${os.arch} powerpc]} {
+        set arch ppc
+    }
+
+    xcode.build.settings    ARCHS=${arch}
+    xcode.destroot.settings ARCHS=${arch}
+}
+
 livecheck.check regex
 livecheck.url   ${homepage}
 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070913/91910cbd/attachment.html


More information about the macports-changes mailing list