[27750] trunk/dports/devel/libsdl_ttf-framework/Portfile

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


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

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

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

Modified: trunk/dports/devel/libsdl_ttf-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_ttf-framework/Portfile	2007-08-13 16:38:22 UTC (rev 27749)
+++ trunk/dports/devel/libsdl_ttf-framework/Portfile	2007-08-13 16:39:20 UTC (rev 27750)
@@ -36,6 +36,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/${my_name}.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj} -vzf Xcode.tar.gz"
@@ -51,20 +61,7 @@
 	reinplace "s|freetype/lib|${prefix}/lib|g" ${pbxproj}
 }
 
-platform darwin i386 {
-    if {! [variant_isset universal]} {
-        xcode.build.settings-append		ARCHS=i386
-		xcode.destroot.settings-append	ARCHS=i386
-    }
-}
-
-platform darwin powerpc {
-    if {! [variant_isset universal]} {
-        xcode.build.settings-append		ARCHS=ppc
-		xcode.destroot.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/9373e337/attachment.html


More information about the macports-changes mailing list