[27743] trunk/dports/devel/libsdl_net-framework/Portfile

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


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

Log Message:
-----------
libsdl_net-framework:
 * +universal now works!
 * Reworked the tar call.
 * Removed a useless reinplace call.
 * Removed default (MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc to let Xcode figure them out.

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

Modified: trunk/dports/devel/libsdl_net-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_net-framework/Portfile	2007-08-13 15:21:54 UTC (rev 27742)
+++ trunk/dports/devel/libsdl_net-framework/Portfile	2007-08-13 15:31:37 UTC (rev 27743)
@@ -26,22 +26,25 @@
 
 depends_lib		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/${my_name}.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj} -vzf Xcode.tar.gz"
 }
 
 post-patch {
-	reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
-		${worksrcpath}/SDL_net.xcodeproj/project.pbxproj
-	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/SDL_net.xcodeproj/project.pbxproj
-	reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/SDL_net.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}
 }
 
 platform darwin i386 {

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


More information about the macports-changes mailing list