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

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 10 15:38:51 PDT 2007


Revision: 27626
          http://trac.macosforge.org/projects/macports/changeset/27626
Author:   nox at macports.org
Date:     2007-08-10 15:38:51 -0700 (Fri, 10 Aug 2007)

Log Message:
-----------
libsdl_image-framework:
 * Updated to version 1.2.6.
 * Changed homepage.
 * Added sha1 and rmd160 checksums.
 * Now uses the xcode portgroup!
 * Removed libsdl_image dependency.
 * Added zlib dependency.
 * Added livecheck.
 * It can now build universally (if dependencies have been built universally too).

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-10 22:08:47 UTC (rev 27625)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2007-08-10 22:38:51 UTC (rev 27626)
@@ -1,76 +1,68 @@
 # $Id$
 PortSystem		1.0
+PortGroup		xcode 1.0
+
 name			libsdl_image-framework
-version			1.2.4
+set my_name		SDL_image
+version			1.2.6
 categories		devel graphics
-maintainers		nomaintainer at macports.org
+maintainers		nox openmaintainer
 description		Add on library for libSDL handling several image formats
 long_description	This is a simple library to load images of various \
 			formats as SDL surfaces. This library supports BMP, \
 			PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
+
 platforms		macosx
-master_sites		http://www.libsdl.org/projects/SDL_image/release/
-homepage        	http://www.libsdl.org/
-distname		SDL_image-${version}
-dist_subdir             libsdl_image
-checksums		md5 70bf617f99e51a2c94550fc79d542f0b
-depends_lib		port:libpng \
-			port:jpeg \
-			port:libsdl-framework \
-			port:libsdl_image
+homepage		http://www.libsdl.org/projects/SDL_image/
+master_sites    ${homepage}release/
+distname		${my_name}-${version}
+dist_subdir		[strsed ${name} {/-.*$//}]
 
-configure.env		CFLAGS="-I${prefix}/include" \
-				LDFLAGS="-L${prefix}/lib"
-configure.args		--disable-sdltest
+checksums		md5 b866dc4f647517bdaf57f6ffdefd013e \
+				sha1 5045df31e4db29d8890110fd18024c9d08efca30 \
+				rmd160 8aea5f07216eb887f599c0908f8ea2c2f9eeac93
 
-set buildindir build
+depends_lib		port:libpng \
+				port:jpeg \
+				port:zlib \
+				port:libsdl-framework
 
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-set buildindir build/Deployment
-}
-}
+worksrcdir		${distname}/Xcode
 
-build.env		${configure.env}
+xcode.target		Framework
+xcode.destroot.type framework
 
-
 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_image.pbproj/project.pbxproj
+		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
 	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
+		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
 	reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
+		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
 	reinplace "s|graphics/include| ${prefix}/include|g" \
-		${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
+		${worksrcpath}/SDL_image.xcodeproj/project.pbxproj
 	reinplace "s|graphics/lib|${prefix}/lib|g" \
-		${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
-	reinplace "s|build/SDL_image.framework|${buildindir}/SDL_image.framework|g" \
-		${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
+		${worksrcpath}/SDL_image.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_image.framework/SDL_image \
-		build/Frameworks/SDL_image.framework/SDL_image"
+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_image.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/5012d970/attachment.html


More information about the macports-changes mailing list