[27200] trunk/dports/devel/libsdl-framework/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jul 24 02:17:41 PDT 2007
Revision: 27200
http://trac.macosforge.org/projects/macports/changeset/27200
Author: ryandesign at macports.org
Date: 2007-07-24 02:17:40 -0700 (Tue, 24 Jul 2007)
Log Message:
-----------
libsdl-framework:
* Upgrade to 1.2.11
* Rather complete rewrite of the portfile by new maintainer n.oxyde; the previous version wouldn't build on MacPorts 1.5 (or maybe even earlier)
* Closes #11858
Modified Paths:
--------------
trunk/dports/devel/libsdl-framework/Portfile
Modified: trunk/dports/devel/libsdl-framework/Portfile
===================================================================
--- trunk/dports/devel/libsdl-framework/Portfile 2007-07-24 09:09:43 UTC (rev 27199)
+++ trunk/dports/devel/libsdl-framework/Portfile 2007-07-24 09:17:40 UTC (rev 27200)
@@ -1,90 +1,61 @@
# $Id$
-PortSystem 1.0
-name libsdl-framework
-version 1.2.9
-categories devel multimedia
-maintainers nomaintainer at macports.org
-description Cross-platform multi-media development API
-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, \
- MacOS, Solaris, IRIX, and FreeBSD.
-platforms macosx
-master_sites http://www.libsdl.org/release/
-distname SDL-${version}
-dist_subdir libsdl
-checksums md5 80919ef556425ff82a8555ff40a579a0
-depends_lib port:libsdl
-configure.args --enable-shared
+PortSystem 1.0
+PortGroup xcode 1.0
-set buildindir build
+name libsdl-framework
+version 1.2.11
+categories devel multimedia
+maintainers n.oxyde at gmail.com
+description Cross-platform multi-media development API
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-set buildindir build/Deployment
-}
-}
+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, \
+ MacOS, Solaris, IRIX, and FreeBSD.
+homepage http://www.libsdl.org/
+master_sites ${homepage}release/
+distname SDL-${version}
+dist_subdir libsdl
-variant nostatic {
- configure.args-append --disable-static
-}
+checksums md5 418b42956b7cd103bfab1b9077ccc149 \
+ sha1 2259134d714e35ab1469d513674a3cd02510d198 \
+ rmd160 91dc8877224415a4ba59e1de57c31861e550d644
+platforms macosx
+
+worksrcdir ${distname}/Xcode/SDL
+
+xcode.target "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)"
+xcode.destroot.type framework
+
post-extract {
- system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz"
+ system "cd ${workpath}/${distname} && tar -xvzf Xcode.tar.gz"
}
post-patch {
- reinplace "s| -I/System/Library/Frameworks/Kernel.framework/Headers/||" \
- ${worksrcpath}/src/joystick/darwin/Makefile.in
- reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
- ${worksrcpath}/Xcode/SDL/SDL.pbproj/project.pbxproj
- reinplace "s|build/SDL.framework|${buildindir}/SDL.framework|g" \
- ${worksrcpath}/Xcode/SDL/SDL.pbproj/project.pbxproj
- reinplace "s|/Library/Frameworks|../SDL/build/Frameworks|g" \
- ${worksrcpath}/Xcode/SDLTest/SDLTest.pbproj/project.pbxproj
+ reinplace "s|10\.2;|10.3;|" ${worksrcpath}/SDL.xcodeproj/project.pbxproj
+ reinplace "s|10\.2\.8|10.3.9|" ${worksrcpath}/SDL.xcodeproj/project.pbxproj
}
-build.dir "${worksrcpath}/Xcode/SDL"
-build.type pbx
-build.target -buildstyle Deployment -target Framework
-
-post-build {
- cd ${worksrcpath}/Xcode/SDL
- system "install_name_tool -id /Library/Frameworks/SDL.framework/SDL \
- build/Frameworks/SDL.framework/SDL"
- build.dir "${worksrcpath}/Xcode/SDLTest"
- build.type pbx
- build.target -buildstyle Deployment -target All
- system "[command build]"
- cd ${worksrcpath}/Xcode/SDLTest
- foreach exe [glob ${buildindir}/*.app/Contents/MacOS/*] {
- system "install_name_tool -change @executable_path/../Frameworks/SDL.framework/Versions/A/SDL \
- /Library/Frameworks/SDL.framework/SDL ${exe}"
- }
+variant x11 {
+ xcode.target Framework
}
-destroot {
- cd "${worksrcpath}/Xcode/SDL/build/Frameworks"
- xinstall -d -m 0755 ${destroot}/Library/Frameworks
- system "cp -R SDL.framework ${destroot}/Library/Frameworks"
- cd "${worksrcpath}/Xcode/SDLTest/${buildindir}"
- xinstall -d -m 0755 ${destroot}/Developer/Examples/SDL/Tests
- foreach app [glob *.app] {
- system "cp -R ${app} ${destroot}/Developer/Examples/SDL/Tests"
- }
- cd "${worksrcpath}/Xcode/Project Stationary"
- xinstall -d -m 0755 ${destroot}/Developer/Examples/SDL
- system "cp -R * ${destroot}/Developer/Examples/SDL"
+platform darwin i386 {
+ if {! [variant_isset universal]} {
+ xcode.build.settings ARCHS=i386
+ }
}
-platform darwin 6 {
- depends_lib-append lib:libdl:dlcompat
- configure.env CPPFLAGS="-I${prefix}/include" \
- LDFLAGS="-L${prefix}/lib"
+platform darwin powerpc {
+ if {! [variant_isset universal]} {
+ xcode.build.settings ARCHS=ppc
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070724/3c6cd831/attachment.html
More information about the macports-changes
mailing list