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

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 13 09:37:09 PDT 2007


Revision: 27748
          http://trac.macosforge.org/projects/macports/changeset/27748
Author:   nox at macports.org
Date:     2007-08-13 09:37:09 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
libsdl_image-framework: Nicer +universal support.

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-08-13 16:31:42 UTC (rev 27747)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2007-08-13 16:37:09 UTC (rev 27748)
@@ -35,6 +35,16 @@
 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"
@@ -54,18 +64,7 @@
 	xcode.destroot.settings ${xcode.build.settings}
 }
 
-platform darwin i386 {
-	if {! [variant_isset universal]} {
-		xcode.build.settings-append 	ARCHS=i386
-	}
-}
-
-platform darwin powerpc {
-	if {! [variant_isset universal]} {
-		xcode.build.settings-append 	ARCHS=ppc
-	}
-}
-
 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/20070813/67e7c321/attachment.html


More information about the macports-changes mailing list