[58652] trunk/dports/devel/libsdl-framework/Portfile

nox at macports.org nox at macports.org
Fri Oct 2 00:45:36 PDT 2009


Revision: 58652
          http://trac.macports.org/changeset/58652
Author:   nox at macports.org
Date:     2009-10-02 00:45:33 -0700 (Fri, 02 Oct 2009)
Log Message:
-----------
libsdl-framework: Create symlinks to libsdl instead of building it again (closes #21550).

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

Modified: trunk/dports/devel/libsdl-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl-framework/Portfile	2009-10-02 06:53:49 UTC (rev 58651)
+++ trunk/dports/devel/libsdl-framework/Portfile	2009-10-02 07:45:33 UTC (rev 58652)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem      1.0
@@ -5,60 +6,33 @@
 
 name            libsdl-framework
 set my_name     SDL
-version         1.2.13
-revision        1
+version         20091002
 categories      devel multimedia
 maintainers     nox openmaintainer
-description     Cross-platform multi-media development API
+description     Framework version of libsdl
 
 long_description \
-    Simple DirectMedia Layer is a cross-platform multimedia library designed to provide \
-    fast access to the graphics framebuffer and audio device. It is used by MPEG playback \
-    software, emulators, and many popular games, including the award winning Linux port of \
-    \"Civilization: Call To Power.\" Simple DirectMedia Layer supports Linux, Win32, BeOS, \
-    Mac OS, Solaris, IRIX, and FreeBSD.
+    ${description}
 
-if {[variant_isset universal]} {
-    eval xcode.build.settings-append        "ARCHS='${configure.universal_archs}'"
-    eval xcode.destroot.settings-append     "ARCHS='${configure.universal_archs}'"
-} else {
-    set arch ${os.arch}
-    if {! [string compare ${os.arch} powerpc]} {
-        set arch ppc
-    }
-
-    xcode.build.settings-append         ARCHS=${arch}
-    xcode.destroot.settings-append      ARCHS=${arch}
-}
-
 homepage        http://www.libsdl.org/
-master_sites    ${homepage}release/
-distname        ${my_name}-${version}
-dist_subdir     libsdl
+distfiles
 
-checksums       md5 c6660feea2a6834de10bc71b2f8e4d88 \
-                sha1 51fcaa3e1d5c01fd813ea08688780f86b19cf539 \
-                rmd160 ed8825fc98f4b3759cf9e5cf8357d71c50df9925
+depends_run     port:libsdl
 
-xcode.project       Xcode/SDL/SDL.xcodeproj
-xcode.target        "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)"
-xcode.destroot.type framework
+use_configure   no
+build           {}
 
-post-extract {
-    system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz Xcode/SDL/{Info-Framework{,NoX11}.plist,SDL.xcodeproj}"
-}
+destroot {
+    set path ${prefix}/Library/Frameworks/SDL.framework
+    xinstall -d ${destroot}${path}/Versions/A
 
-post-patch {
-    reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" \
-        ${worksrcpath}/${xcode.project}/project.pbxproj
-}
+    ln -sf ${prefix}/lib/libSDL.dylib ${destroot}${path}/Versions/A/SDL
+    ln -sf Versions/A/SDL ${destroot}${path}/SDL
 
-variant x11 {
-    xcode.target    Framework
+    ln -sf ${prefix}/include/SDL ${destroot}${path}/Versions/A/Headers
+    ln -sf Versions/A/Headers ${destroot}${path}/Headers
 }
 
-variant universal {}
+universal_variant   no
 
-livecheck.type  regex
-livecheck.url   ${homepage}download.php
-livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
+livecheck.type  no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091002/8b884f63/attachment.html>


More information about the macports-changes mailing list