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

jmr at macports.org jmr at macports.org
Wed Jan 18 22:28:40 PST 2012


Revision: 89087
          http://trac.macports.org/changeset/89087
Author:   jmr at macports.org
Date:     2012-01-18 22:28:40 -0800 (Wed, 18 Jan 2012)
Log Message:
-----------
libsdl_net-framework: switch to creating framework the same way as libsdl-framework

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

Modified: trunk/dports/devel/libsdl_net-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_net-framework/Portfile	2012-01-19 06:26:02 UTC (rev 89086)
+++ trunk/dports/devel/libsdl_net-framework/Portfile	2012-01-19 06:28:40 UTC (rev 89087)
@@ -1,48 +1,36 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       xcode 1.0
 
 name            libsdl_net-framework
-set my_name     SDL_net
-version         1.2.7
-revision        1
+version         1.2.8
 categories      devel net
-license         LGPL-2.1+
+platforms       darwin
+license         BSD
+supported_archs noarch
 maintainers     jmr openmaintainer
-description     cross-platform networking library
+description     Framework version of libsdl_net
 
 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.
+    ${description}
 
 homepage        http://www.libsdl.org/projects/SDL_net/
-master_sites    ${homepage}/release/
-distname        ${my_name}-${version}
-dist_subdir     libsdl_net
+distfiles
 
-checksums       md5 6bd4662d1423810f3140d4da21b6d912 \
-                sha1 b46c7e3221621cc34fec1238f1b5f0ce8972274d \
-                rmd160 5c95cf28f35ceb796188323666b92cafa60fba25
+depends_run     port:libsdl-framework port:libsdl_net
 
-depends_lib     port:libsdl-framework
+use_configure   no
+build           {}
 
-xcode.project       Xcode/${my_name}.xcodeproj
-xcode.target        Framework
-xcode.destroot.type framework
+destroot {
+    set path ${frameworks_dir}/SDL_net.framework
+    xinstall -d ${destroot}${path}/Versions/A/Headers
 
-post-extract {
-    system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz Xcode/{exports/${my_name}.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj}"
-}
+    ln -sf ${prefix}/lib/libSDL_net.dylib ${destroot}${path}/Versions/A/SDL_net
+    ln -sf Versions/A/SDL_net ${destroot}${path}/SDL_net
 
-post-patch {
-    set pbxproj ${worksrcpath}/${xcode.project}/project.pbxproj
-
-    reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)(_ppc|_i386)? =/d" ${pbxproj}
-    reinplace "s|~/Library/Frameworks|./build/Frameworks|g" ${pbxproj}
-    reinplace "s|\$(HOME)/Library/Frameworks|${frameworks_dir}|g" ${pbxproj}
+    ln -sf ${prefix}/include/SDL/SDL_net.h ${destroot}${path}/Versions/A/Headers/
+    ln -sf Versions/A/Headers ${destroot}${path}/Headers
 }
 
-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/20120118/00e76d7b/attachment.html>


More information about the macports-changes mailing list