[27747] trunk/dports/devel/libsdl-framework/Portfile

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


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

Log Message:
-----------
libsdl-framework: Nicer universal support.

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

Modified: trunk/dports/devel/libsdl-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl-framework/Portfile	2007-08-13 16:29:38 UTC (rev 27746)
+++ trunk/dports/devel/libsdl-framework/Portfile	2007-08-13 16:31:42 UTC (rev 27747)
@@ -23,6 +23,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}
+}
+
 homepage        http://www.libsdl.org/
 master_sites    ${homepage}release/
 distname        SDL-${version}
@@ -55,15 +65,3 @@
     xcode.target Framework
 }
 
-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
-    }
-}
-

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


More information about the macports-changes mailing list