[27744] trunk/dports/devel/libsdl_ttf-framework/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 13 08:37:35 PDT 2007
Revision: 27744
http://trac.macosforge.org/projects/macports/changeset/27744
Author: nox at macports.org
Date: 2007-08-13 08:37:34 -0700 (Mon, 13 Aug 2007)
Log Message:
-----------
libsdl_ttf-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_ttf-framework/Portfile
Modified: trunk/dports/devel/libsdl_ttf-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_ttf-framework/Portfile 2007-08-13 15:31:37 UTC (rev 27743)
+++ trunk/dports/devel/libsdl_ttf-framework/Portfile 2007-08-13 15:37:34 UTC (rev 27744)
@@ -28,26 +28,27 @@
port:freetype \
port:zlib
-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_ttf.xcodeproj/project.pbxproj
- reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
- ${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
- reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
- ${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
- reinplace "s|freetype/include|${prefix}/include,${prefix}/include/freetype2|g" \
- ${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
- reinplace "s|freetype/lib|${prefix}/lib|g" \
- ${worksrcpath}/SDL_ttf.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|freetype/include|${prefix}/include,${prefix}/include/freetype2|g" ${pbxproj}
+ reinplace "s|freetype/lib|${prefix}/lib|g" ${pbxproj}
}
platform darwin i386 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070813/989b2050/attachment.html
More information about the macports-changes
mailing list