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

jmr at macports.org jmr at macports.org
Wed Jan 19 06:10:15 PST 2011


Revision: 75271
          http://trac.macports.org/changeset/75271
Author:   jmr at macports.org
Date:     2011-01-19 06:10:04 -0800 (Wed, 19 Jan 2011)
Log Message:
-----------
libsdl_image-framework: switch to creating framework the same way as libsdl-framework

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

Modified: trunk/dports/devel/libsdl_image-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_image-framework/Portfile	2011-01-19 14:02:20 UTC (rev 75270)
+++ trunk/dports/devel/libsdl_image-framework/Portfile	2011-01-19 14:10:04 UTC (rev 75271)
@@ -1,66 +1,35 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       xcode 1.0
 
 name            libsdl_image-framework
-set my_name     SDL_image
-version         1.2.7
-revision        3
+version         20110119
 categories      devel graphics
+platforms       darwin
+supported_archs noarch
 maintainers     jmr openmaintainer
-description     Add on library for libSDL handling several image formats
+description     Framework version of libsdl_image
 
 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.
+    ${description}
 
 homepage        http://www.libsdl.org/projects/SDL_image/
-master_sites    ${homepage}release/
-distname        ${my_name}-${version}
-dist_subdir     [strsed ${name} {/-.*$//}]
+distfiles
 
-checksums       md5     a729ff61f74f0a45ec7fe36354cf938e \
-                sha1    0cffd05e41014651e7114d7fea309c9f37ef2d8a \
-                rmd160  d54233077c0a49f075bf11dc1cc2cfe7c0a64efa
+depends_run     port:libsdl-framework port:libsdl_image
 
-depends_lib     port:libpng \
-                port:jpeg \
-                port:zlib \
-                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_image.framework
+    xinstall -d ${destroot}${path}/Versions/A/Headers
 
-if {! [variant_isset universal]} {
-    set arch ${build_arch}
+    ln -sf ${prefix}/lib/libSDL_image.dylib ${destroot}${path}/Versions/A/SDL_image
+    ln -sf Versions/A/SDL_image ${destroot}${path}/SDL_image
 
-    xcode.build.settings    ARCHS=${arch}
-    xcode.destroot.settings ARCHS=${arch}
+    ln -sf ${prefix}/include/SDL/SDL_image.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/SDL_image.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj}"
-}
-
-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 -E "s|(\t+)/Library/Frameworks|\\1${frameworks_dir}|g" ${pbxproj}
-    reinplace "s|graphics/include|${prefix}/include|g" ${pbxproj}
-    reinplace "s|graphics/lib|${prefix}/lib|g" ${pbxproj}
-}
-
-pre-destroot {
-    xcode.destroot.settings ${xcode.build.settings}
-}
-
-variant universal {}
-
-livecheck.type  regex
-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/20110119/07d6cd5b/attachment.html>


More information about the macports-changes mailing list