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

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 10 16:21:02 PDT 2007


Revision: 27627
          http://trac.macosforge.org/projects/macports/changeset/27627
Author:   nox at macports.org
Date:     2007-08-10 16:21:02 -0700 (Fri, 10 Aug 2007)

Log Message:
-----------
libsdl_ttf-framework:
 * Updated to 2.0.9.
 * Corrected the dependencies.
 * Added livecheck.
 * Now uses the xcode portgroup!
 * Added livecheck.
 * Taken over (with openmaintainer).
 * Added universal support.
 * Added sha1 and rmd160 checksums.

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-10 22:38:51 UTC (rev 27626)
+++ trunk/dports/devel/libsdl_ttf-framework/Portfile	2007-08-10 23:21:02 UTC (rev 27627)
@@ -1,71 +1,69 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem	1.0
+PortGroup	xcode 1.0
 
 name		libsdl_ttf-framework
-version		2.0.7
+set my_name	SDL_ttf
+version		2.0.9
 categories	devel graphics
-maintainers	nomaintainer at macports.org
+maintainers	nox openmaintainer
 platforms	macosx
 description	add on library for libSDL for rendering TrueType fonts
+
 long_description	This library is a wrapper around the excellent \
 			FreeType 2.0 library allowing to render TrueType fonts \
 			in SDL applications.
 	
-homepage	http://www.libsdl.org/projects/SDL_ttf
-master_sites	${homepage}/release/
-distname	SDL_ttf-${version}
-dist_subdir     libsdl_ttf
-checksums	md5 0f6ee1a502e6913a412aac353dc75bbc
+homepage	http://www.libsdl.org/projects/SDL_ttf/
+master_sites	${homepage}release/
+distname	${my_name}-${version}
+dist_subdir	libsdl_ttf
 
+checksums	md5 6dd5a85e4924689a35a5fb1cb3336156 \
+			sha1 6bc3618b08ddbbf565fe8f63f624782c15e1cef2 \
+			rmd160 4e0b0f727f73b5d8a579e3e615ab4f50ec992b82
+
 depends_lib	port:libsdl-framework \
-		port:libsdl_ttf
+			port:freetype \
+			port:zlib
 
-configure.args	--disable-sdltest
+worksrcdir	${distname}/Xcode
 
-set buildindir build
+xcode.target		Framework
+xcode.destroot.type	framework
 
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-set buildindir build/Deployment
-}
-}
-
 post-extract {
-	system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
+	system "cd ${workpath}/${distname} && tar -xvzf Xcode.tar.gz"
 }
 
 post-patch {
 	reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_ttf.pbproj/project.pbxproj
+		${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
 	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_ttf.pbproj/project.pbxproj
+		${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
 	reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_ttf.pbproj/project.pbxproj
-	reinplace "s|freetype/include|${prefix}/include/freetype2 ${prefix}/include|g" \
-		${worksrcpath}/PBProjects/SDL_ttf.pbproj/project.pbxproj
+		${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}/PBProjects/SDL_ttf.pbproj/project.pbxproj
-	reinplace "s|build/SDL_ttf.framework|${buildindir}/SDL_ttf.framework|g" \
-		${worksrcpath}/PBProjects/SDL_ttf.pbproj/project.pbxproj
+		${worksrcpath}/SDL_ttf.xcodeproj/project.pbxproj
 }
 
-build.dir	"${worksrcpath}/PBProjects"
-build.type	pbx
-build.target	-buildstyle Deployment -target Framework
-
-post-build {
-		cd ${worksrcpath}/PBProjects
-		system "install_name_tool -id /Library/Frameworks/SDL_ttf.framework/SDL_ttf \
-			build/Frameworks/SDL_ttf.framework/SDL_ttf"
+platform darwin i386 {
+    if {! [variant_isset universal]} {
+        xcode.build.settings-append		ARCHS=i386
+		xcode.destroot.settings-append	ARCHS=i386
+    }
 }
 
-destroot {
-	cd "${worksrcpath}/PBProjects/build/Frameworks"
-	xinstall -d -m 0755 ${destroot}/Library/Frameworks
-	system "cp -R SDL_ttf.framework ${destroot}/Library/Frameworks"
+platform darwin powerpc {
+    if {! [variant_isset universal]} {
+        xcode.build.settings-append		ARCHS=ppc
+		xcode.destroot.settings-append	ARCHS=ppc
+    }
 }
 
-platform darwin 6 {
-	depends_lib-append	lib:libdl:dlcompat
-}
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex	"${my_name}-(\\d+(?:\\.\\d+)*)"

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


More information about the macports-changes mailing list