[75277] trunk/dports/audio/libsdl_mixer-framework/Portfile
jmr at macports.org
jmr at macports.org
Wed Jan 19 08:38:42 PST 2011
Revision: 75277
http://trac.macports.org/changeset/75277
Author: jmr at macports.org
Date: 2011-01-19 08:38:42 -0800 (Wed, 19 Jan 2011)
Log Message:
-----------
libsdl_mixer-framework: switch to creating framework the same way as libsdl-framework
Modified Paths:
--------------
trunk/dports/audio/libsdl_mixer-framework/Portfile
Modified: trunk/dports/audio/libsdl_mixer-framework/Portfile
===================================================================
--- trunk/dports/audio/libsdl_mixer-framework/Portfile 2011-01-19 16:18:26 UTC (rev 75276)
+++ trunk/dports/audio/libsdl_mixer-framework/Portfile 2011-01-19 16:38:42 UTC (rev 75277)
@@ -1,59 +1,35 @@
# $Id$
PortSystem 1.0
-PortGroup xcode 1.0
name libsdl_mixer-framework
-set my_name SDL_mixer
-version 1.2.8
-revision 2
+version 20110119
categories audio devel
+platforms darwin
+supported_archs noarch
maintainers jmr openmaintainer
-description Audio mixer library for SDL
+description Framework version of libsdl_mixer
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.
+ ${description}
-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/
+distfiles
-depends_lib port:libsdl-framework
+depends_run port:libsdl-framework port:libsdl_mixer
-checksums md5 0b5b91015d0f3bd9597e094ba67c4d65 \
- sha1 7fa56d378f9ca53434f9470aeb2997ad84a348c6 \
- rmd160 f2188b907aa779bb81415ac6726ad7f496357b85
+use_configure no
+build {}
-post-extract {
- system "cd ${worksrcpath} && tar -xzf Xcode.tar.gz"
-}
+destroot {
+ set path ${frameworks_dir}/SDL_mixer.framework
+ xinstall -d ${destroot}${path}/Versions/A/Headers
-post-patch {
- set pbxproj ${worksrcpath}/${xcode.project}/project.pbxproj
+ ln -sf ${prefix}/lib/libSDL_mixer.dylib ${destroot}${path}/Versions/A/SDL_mixer
+ ln -sf Versions/A/SDL_mixer ${destroot}${path}/SDL_mixer
- 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}
+ ln -sf ${prefix}/include/SDL/SDL_mixer.h ${destroot}${path}/Versions/A/Headers/
+ ln -sf Versions/A/Headers ${destroot}${path}/Headers
}
-xcode.project Xcode/SDL_mixer.xcodeproj
-xcode.target Framework
-xcode.destroot.type framework
-
-variant universal {}
-
-if {! [variant_isset universal]} {
- set arch ${os.arch}
- if {! [string compare ${arch} powerpc]} {
- set arch ppc
- }
-
- xcode.build.settings ARCHS=${arch}
- xcode.destroot.settings ARCHS=${arch}
-}
-
-livecheck.type regex
-livecheck.url ${homepage}
-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/28580bca/attachment-0001.html>
More information about the macports-changes
mailing list