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

nox at macports.org nox at macports.org
Mon Mar 15 06:11:20 PDT 2010


Revision: 64725
          http://trac.macports.org/changeset/64725
Author:   nox at macports.org
Date:     2010-03-15 06:11:19 -0700 (Mon, 15 Mar 2010)
Log Message:
-----------
Use symlinks in libsdl_ttf-framework (#23659)

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

Modified: trunk/dports/devel/libsdl_ttf-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_ttf-framework/Portfile	2010-03-15 13:11:08 UTC (rev 64724)
+++ trunk/dports/devel/libsdl_ttf-framework/Portfile	2010-03-15 13:11:19 UTC (rev 64725)
@@ -4,61 +4,33 @@
 PortGroup       xcode 1.0
 
 name            libsdl_ttf-framework
-set my_name     SDL_ttf
-version         2.0.9
-revision        1
+version         20100314
 categories      devel graphics
 maintainers     nox openmaintainer
-description     add on library for libSDL for rendering TrueType fonts
+description     Framework version of libsdl_ttf
 
 long_description \
-    This library is a wrapper around the excellent FreeType 2.0 library allowing \
-    to render TrueType fonts in SDL applications.
-	
+    ${description}
+
 homepage        http://www.libsdl.org/projects/SDL_ttf/
-master_sites    ${homepage}release/
-distname        ${my_name}-${version}
-dist_subdir     libsdl_ttf
+distfiles
 
-checksums       md5 6dd5a85e4924689a35a5fb1cb3336156 \
-                sha1 6bc3618b08ddbbf565fe8f63f624782c15e1cef2 \
-                rmd160 4e0b0f727f73b5d8a579e3e615ab4f50ec992b82
+depends_run     port:libsdl_ttf
 
-depends_lib     port:libsdl-framework \
-                port:freetype \
-                port:zlib
+use_configure   no
+build           {}
 
-xcode.project       Xcode/${my_name}.xcodeproj
-xcode.target        Framework
-xcode.destroot.type framework
+destroot {
+    set path ${prefix}/Library/Frameworks/SDL_ttf.framework
+    xinstall -d ${destroot}${path}/Versions/A/Headers
 
-if {! [variant_isset universal]} {
-    set arch ${os.arch}
-    if {! [string compare ${os.arch} powerpc]} {
-        set arch ppc
-    }
+    ln -sf ${prefix}/lib/libSDL_ttf.dylib ${destroot}${path}/Versions/A/SDL_ttf
+    ln -sf Versions/A/SDL_ttf ${destroot}${path}/SDL_ttf
 
-    xcode.build.settings    ARCHS=${arch}
-    xcode.destroot.settings ARCHS=${arch}
+    ln -sf ${prefix}/include/SDL/SDL_ttf.h ${destroot}${path}/Versions/A/Headers
+    ln -sf Versions/A/Headers ${destroot}${path}/Headers
 }
 
-post-extract {
-    system "cd ${worksrcpath} && \
-        tar -xvzf Xcode.tar.gz Xcode/{exports/${my_name}.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj}"
-}
+universal_variant   no
 
-post-patch {
-    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|${frameworks_dir}|g" ${pbxproj}
-    reinplace "s|freetype/include|${prefix}/include,${prefix}/include/freetype2|g" ${pbxproj}
-    reinplace "s|freetype/lib|${prefix}/lib|g" ${pbxproj}
-}
-
-variant universal {}
-
-livecheck.type  regex
-livecheck.url   ${homepage}
-livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
+livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100315/9f051283/attachment.html>


More information about the macports-changes mailing list