[28600] trunk/dports/audio/libsdl_mixer-framework
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 4 06:58:42 PDT 2007
Revision: 28600
http://trac.macosforge.org/projects/macports/changeset/28600
Author: nox at macports.org
Date: 2007-09-04 06:58:42 -0700 (Tue, 04 Sep 2007)
Log Message:
-----------
libsdl_mixer-framework:
* Updated to 1.2.8.
* Added universal support.
* Removed useless patches.
* Added sha1 and rmd160 checksums.
Modified Paths:
--------------
trunk/dports/audio/libsdl_mixer-framework/Portfile
Removed Paths:
-------------
trunk/dports/audio/libsdl_mixer-framework/files/
Modified: trunk/dports/audio/libsdl_mixer-framework/Portfile
===================================================================
--- trunk/dports/audio/libsdl_mixer-framework/Portfile 2007-09-04 13:42:39 UTC (rev 28599)
+++ trunk/dports/audio/libsdl_mixer-framework/Portfile 2007-09-04 13:58:42 UTC (rev 28600)
@@ -1,83 +1,55 @@
# $Id$
PortSystem 1.0
+PortGroup xcode 1.0
+
name libsdl_mixer-framework
-version 1.2.6
+set my_name SDL_mixer
+version 1.2.8
categories audio devel
-maintainers nomaintainer at macports.org
+maintainers nox
description Audio mixer library for SDL
+
long_description A sample multi-channel audio mixer library. It supports any number of \
simultaneously playing channels of 16 bit stereo audio, plus a single \
channel of music.
-platforms macosx
+homepage http://www.libsdl.org/projects/${my_name}/
+master_sites ${homepage}release/
+distname ${my_name}-${version}
+dist_subdir [strsed ${name} {/-.*$//}]
-homepage http://www.libsdl.org/projects/SDL_mixer/
-master_sites ${homepage}release/
-distname SDL_mixer-${version}
-dist_subdir libsdl_mixer
-checksums md5 2b8beffad9179d80e598c22c80efb135
+depends_lib port:libsdl-framework
-depends_lib port:libsdl-framework \
- port:libsdl_mixer
+checksums md5 0b5b91015d0f3bd9597e094ba67c4d65 \
+ sha1 7fa56d378f9ca53434f9470aeb2997ad84a348c6 \
+ rmd160 f2188b907aa779bb81415ac6726ad7f496357b85
-patchfiles PBProjects-SDL_mixer.xcodeproj-project.pbxproj.patch
+# Dummy configure to enable universal variant
+use_configure yes
+configure {}
-platform i386 {
- patchfiles-append native_midi_mac.c.patch
-}
+if {! [variant_isset universal]} {
+ set arch ${os.arch}
+ if {! [string compare ${arch} powerpc]} {
+ set arch ppc
+ }
-configure.cppflags-append -no-cpp-precomp
-configure.args --with-sdl-prefix=${prefix} --disable-sdltest \
- --enable-music-mp3 --with-smpeg-prefix=${prefix} --enable-music-ogg
-
-set buildindir build
-
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-set buildindir build/Deployment
+ xcode.build.settings ARCHS=${arch}
+ xcode.destroot.settings ARCHS=${arch}
}
-}
-set pbx "${worksrcpath}/PBProjects/SDL_mixer.pbproj/project.pbxproj"
-
post-extract {
- system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
+ cd ${worksrcpath}
+ system "tar -xzf Xcode.tar.gz"
}
post-patch {
- reinplace "s|~/Library/Frameworks|./build/Frameworks|g" ${pbx}
- reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" ${pbx}
- reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" ${pbx}
- reinplace "s|build/SDL_mixer.framework|${buildindir}/SDL_mixer.framework|g" ${pbx}
- file mkdir "${worksrcpath}/PBProjects/SDL_mixer.xcodeproj"
+ reinplace -E "/(SDKROOT|MACOSX_DEPLOYMENT_TARGET|GCC_VERSION)_ppc =/d" \
+ ${worksrcpath}/${xcode.project}/project.pbxproj
}
-build.dir "${worksrcpath}/PBProjects"
-build.type pbx
-build.target -buildstyle Deployment -target Framework
+xcode.project Xcode/SDL_mixer.xcodeproj
+xcode.target Framework
+xcode.destroot.type framework
-post-build {
- cd ${worksrcpath}/PBProjects
- system "install_name_tool -id /Library/Frameworks/SDL_mixer.framework/SDL_mixer \
- build/Frameworks/SDL_mixer.framework/SDL_mixer"
-}
-
-test.cmd make
-test.dir ${worksrcpath}
-test.run yes
-test.target check
-
-destroot.cmd {}
-destroot.target {}
-
-post-destroot {
- cd "${worksrcpath}/PBProjects/build/Frameworks"
- xinstall -d -m 0755 ${destroot}/Library/Frameworks
- system "cp -R SDL_mixer.framework ${destroot}/Library/Frameworks"
- xinstall -m 0755 -d ${destroot}/Developer/Documentation/SDL_mixer
-}
-
-platform darwin 6 {
- depends_lib-append lib:libdl:dlcompat
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070904/fc87da13/attachment.html
More information about the macports-changes
mailing list