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

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 13 08:03:28 PDT 2007


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

Log Message:
-----------
libsdl_image-framework:
 * Now uses xcode.project.
 * +universal now works!
 * Removed default (MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc to let Xcode figure them out.

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 14:47:37 UTC (rev 27740)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2007-08-13 15:03:28 UTC (rev 27741)
@@ -27,39 +27,42 @@
 				port:zlib \
 				port:libsdl-framework
 
-worksrcdir		${distname}/Xcode
-
+xcode.project		Xcode/${my_name}.xcodeproj
 xcode.target		Framework
 xcode.destroot.type framework
 
+# Dummy configure to enable +universal variant.
+use_configure	yes
+configure		{}
+
 post-extract {
-	system "cd ${workpath}/${distname} && tar -xvzf Xcode.tar.gz"
+	cd ${worksrcpath}
+	system "tar -x Xcode/{exports/SDL_image.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj} -vzf Xcode.tar.gz"
 }
 
 post-patch {
-	reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
-		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
-	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
-	reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
-	reinplace "s|graphics/include| ${prefix}/include|g" \
-		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
-	reinplace "s|graphics/lib|${prefix}/lib|g" \
-		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
+	set pbxproj ${worksrcpath}/${xcode.project}/project.pbxproj
+
+	reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" ${pbxproj}
+	reinplace "s|~/Library/Frameworks|./build/Frameworks|g" ${pbxproj}
+	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" ${pbxproj}
+	reinplace "s|graphics/include| ${prefix}/include|g" ${pbxproj}
+	reinplace "s|graphics/lib|${prefix}/lib|g" ${pbxproj}
 }
 
+pre-destroot {
+	xcode.destroot.settings ${xcode.build.settings}
+}
+
 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
 	}
 }
 

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


More information about the macports-changes mailing list