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

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 10 16:40:20 PDT 2007


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

Log Message:
-----------
libsdl_net-framework:
 * Updated to 1.2.7.
 * Taken over (with openmaintainer).
 * Added universal support.
 * Added livecheck.
 * Now uses the xcode portgroup!
 * Removed libsdl_net dependency.

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-10 23:22:06 UTC (rev 27628)
+++ trunk/dports/devel/libsdl_net-framework/Portfile	2007-08-10 23:40:19 UTC (rev 27629)
@@ -1,66 +1,64 @@
 # $Id$
 PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			libsdl_net-framework
-version			1.2.5
+set my_name		SDL_net
+version			1.2.7
 platforms		macosx
 categories		devel net
-maintainers		nomaintainer at macports.org
+maintainers		nox openmaintainer
 description		cross-platform networking library
+
 long_description	This is a small sample cross-platform networking \
 			library, with a sample chat client and server \
 			application. The chat client uses the GUIlib GUI \
 			framework library.
+
 homepage		http://www.libsdl.org/projects/SDL_net/
 master_sites		${homepage}/release/
-distname		SDL_net-${version}
+distname		${my_name}-${version}
 dist_subdir             libsdl_net
-checksums		md5 e45b1048d2747480dcc65ece4130a920
-depends_lib		port:libsdl-framework \
-			port:libsdl_net
 
-configure.args		--disable-sdltest
+checksums		md5 6bd4662d1423810f3140d4da21b6d912 \
+				sha1 b46c7e3221621cc34fec1238f1b5f0ce8972274d \
+				rmd160 5c95cf28f35ceb796188323666b92cafa60fba25
 
-set buildindir build
+depends_lib		port:libsdl-framework
 
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-set buildindir build/Deployment
-}
-}
+worksrcdir		${distname}/Xcode
 
+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_net.pbproj/project.pbxproj
+		${worksrcpath}/SDL_net.xcodeproj/project.pbxproj
 	reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_net.pbproj/project.pbxproj
+		${worksrcpath}/SDL_net.xcodeproj/project.pbxproj
 	reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \
-		${worksrcpath}/PBProjects/SDL_net.pbproj/project.pbxproj
-	reinplace "s|build/SDL_net.framework|${buildindir}/SDL_net.framework|g" \
-		${worksrcpath}/PBProjects/SDL_net.pbproj/project.pbxproj
+		${worksrcpath}/SDL_net.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_net.framework/SDL_net \
-			build/Frameworks/SDL_net.framework/SDL_net"
+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_net.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/5f9afe30/attachment.html


More information about the macports-changes mailing list