[64726] trunk/dports/devel/libsdl_gfx-framework/Portfile

nox at macports.org nox at macports.org
Mon Mar 15 06:11:34 PDT 2010


Revision: 64726
          http://trac.macports.org/changeset/64726
Author:   nox at macports.org
Date:     2010-03-15 06:11:33 -0700 (Mon, 15 Mar 2010)
Log Message:
-----------
Use symlinks in libsdl_gfx-framework (#23694)

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

Modified: trunk/dports/devel/libsdl_gfx-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl_gfx-framework/Portfile	2010-03-15 13:11:19 UTC (rev 64725)
+++ trunk/dports/devel/libsdl_gfx-framework/Portfile	2010-03-15 13:11:33 UTC (rev 64726)
@@ -6,51 +6,46 @@
 
 name            libsdl_gfx-framework
 set my_name     SDL_gfx
-version         2.0.19
+version         20100314
 categories      devel graphics
 platforms       macosx
 maintainers     nox openmaintainer
-description     graphics primitives SDL extension
+description     Framework version of libsdl_gfx
 
 long_description \
-    The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing \
-    routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating \
-    rotozoomer for SDL surfaces. The current components of the SDL_gfx library are: Graphic \
-    Primitives, Rotozoomer, Framerate control, MMX image filters. It is backwards compatible to \
-    the above mentioned code. It is written in plain C and can be used in C++ code.
+    ${description}
 
 homepage        http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/
-master_sites    ${homepage}
-distname        ${my_name}-${version}
-dist_subdir     libsdl_gfx
+distfiles
 
-depends_lib     port:libsdl-framework
+depends_run     port:libsdl_gfx
 
-checksums       md5     cf01ad6539ceea65887fc9ebdfe04b83 \
-                sha1    bba39cf83e84d8e61b8078ea095cc0a96023e27f \
-                rmd160  354c939e4901644b80c82e7a9e5c04b93a70306b
+use_configure   no
+build           {}
 
-post-extract {
-    system "unzip \"$worksrcpath/Other Builds/OSX-PB-XCode.zip\" -d $worksrcpath"
-    system "tar xzf \"$worksrcpath/Other Builds/OSX-PB.tgz\" -C $worksrcpath"
-    move $worksrcpath/PB/English.lproj $worksrcpath
-}
+destroot {
+    set path ${prefix}/Library/Frameworks/SDL_ttf.framework
+    xinstall -d ${destroot}${path}/Versions/A/Headers
 
-post-patch {
-    reinplace -E "/SKIP_INSTALL/d" ${worksrcpath}/SDL_gfx.pbproj/project.pbxproj
-}
+    ln -sf ${prefix}/lib/libSDL_ttf.dylib ${destroot}${path}/Versions/A/SDL_ttf
+    ln -sf Versions/A/SDL_ttf ${destroot}${path}/SDL_ttf
+    ln -sf Versions/A/Headers ${destroot}${path}/Headers
 
-xcode.target        $my_name
+    set headers {
+        framerate
+        gfxBlitFunc
+        gfxPrimitives
+        gfxPrimitives_font
+        imageFilter
+        rotozoom
+    }
 
-xcode.build.settings    HEADER_SEARCH_PATHS=$prefix/Library/Frameworks/SDL.framework/Versions/A/Headers \
-                        FRAMEWORK_SEARCH_PATHS=$prefix/Library/Frameworks \
-                        INSTALL_PATH=$prefix/Library/Frameworks
+    foreach h ${headers} {
+        ln -s ${prefix}/include/SDL/SDL_${h}.h \
+            ${destroot}${path}/Versions/A/Headers
+    }
+}
 
-xcode.destroot.type             framework
-eval xcode.destroot.settings    ${xcode.build.settings}
-
 universal_variant   no
 
-livecheck.type  regex
-livecheck.url   http://www.ferzkopp.net/joomla/content/view/19/14/
-livecheck.regex ${my_name}-(\\d+\\.\\d+(?:\\.\\d+)+)
+livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100315/3f5f5e3b/attachment.html>


More information about the macports-changes mailing list