[41806] trunk/dports/audio/libsdl_sound-framework
nox at macports.org
nox at macports.org
Mon Nov 10 15:03:10 PST 2008
Revision: 41806
http://trac.macports.org/changeset/41806
Author: nox at macports.org
Date: 2008-11-10 15:03:10 -0800 (Mon, 10 Nov 2008)
Log Message:
-----------
libsdl_sound-framework:
* Updated to 1.0.3.
* Ported to xcode portgroup.
* Now links against libogg, libvorbis and libmikmod ports.
* Now installs in $prefix/Library/Frameworks.
Modified Paths:
--------------
trunk/dports/audio/libsdl_sound-framework/Portfile
Removed Paths:
-------------
trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4
trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4.xcode21
trunk/dports/audio/libsdl_sound-framework/files/patch-aclocal.m4.xcode21
trunk/dports/audio/libsdl_sound-framework/files/patch-configure.xcode21
Modified: trunk/dports/audio/libsdl_sound-framework/Portfile
===================================================================
--- trunk/dports/audio/libsdl_sound-framework/Portfile 2008-11-10 23:02:08 UTC (rev 41805)
+++ trunk/dports/audio/libsdl_sound-framework/Portfile 2008-11-10 23:03:10 UTC (rev 41806)
@@ -1,12 +1,13 @@
+# -*- 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
+PortGroup xcode 1.0
name libsdl_sound-framework
-version 1.0.1
+version 1.0.3
categories audio devel
-platforms macosx
-maintainers nox
+maintainers nox openmaintainer
description handles decoding of several popular sound file formats
long_description \
@@ -15,79 +16,44 @@
playback tasks simpler.
homepage http://icculus.org/SDL_sound/
-master_sites http://icculus.org/SDL_sound/downloads/
+master_sites ${homepage}downloads/
distname SDL_sound-${version}
dist_subdir libsdl_sound
-checksums md5 49e197ef7c8ab623d0640dc74be43160
+checksums md5 aa09cd52df85d29bee87a664424c94b5 \
+ sha1 1984bc20b2c756dc71107a5a0a8cebfe07e58cb1 \
+ rmd160 8e56daa71f827a4a22e7071a4e4f37c21dd96105
depends_lib port:libsdl-framework \
- port:libsdl_sound
+ port:libogg \
+ port:libvorbis \
+ port:libmikmod
-depends_build bin:glibtoolize:libtool \
- bin:automake:automake \
- bin:autoconf:autoconf
-
-patchfiles patch-acinclude.m4
-
-configure.args --disable-sdltest \
- --disable-smpegtest
-
-pre-configure {
- ui_info "Initial preparation...this can take awhile, so sit tight..."
-
- system "cd ${worksrcpath} && aclocal"
- system "cd ${worksrcpath} && glibtoolize --automake --copy --force"
- system "cd ${worksrcpath} && autoheader"
- system "cd ${worksrcpath} && automake --foreign --add-missing --copy"
- system "cd ${worksrcpath} && autoconf"
-
- ui_info "Ready to run ./configure ..."
-}
-
-set buildindir build
-
-platform darwin 8 {
- if {$xcodeversion == "2.1"} {
- set buildindir build/Deployment
- patchfiles patch-acinclude.m4.xcode21 patch-aclocal.m4.xcode21 patch-configure.xcode21
- }
-}
-
-set pbx "${worksrcpath}/PBProjects/SDL_sound.pbproj/project.pbxproj"
-
post-extract {
- system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
+ system "tar xf $worksrcpath/PBProjects.tar.gz -C $worksrcpath"
}
+patchfiles patch-project.pbxproj.diff
+
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|vorbis/include|$prefix/include/vorbis|g" ${pbx}
- reinplace "s|vorbis/lib|$prefix/lib|g" ${pbx}
- reinplace "s|mikmod/include|$prefix/include|g" ${pbx}
- reinplace "s|mikmod/lib|$prefix/lib|g" ${pbx}
- reinplace "s|build/SDL_sound.framework|${buildindir}/SDL_sound.framework|g" ${pbx}
+ reinplace s|@PREFIX@|$prefix|g $worksrcpath/${xcode.project}/project.pbxproj
}
-build.dir "${worksrcpath}/PBProjects"
-build.type pbx
-build.target -buildstyle Deployment -target Framework
+xcode.project PBProjects/SDL_sound.pbproj
+xcode.target Framework
-post-build {
- cd ${worksrcpath}/PBProjects
- system "install_name_tool -id /Library/Frameworks/SDL_sound.framework/SDL_sound \
- build/Frameworks/SDL_sound.framework/SDL_sound"
-}
+xcode.build.settings FRAMEWORK_SEARCH_PATHS=$prefix/Library/Frameworks \
+ INSTALL_PATH=$prefix/Library/Frameworks \
+ LIBRARY_SEARCH_PATHS=$prefix/lib
-destroot {
- cd "${worksrcpath}/PBProjects/build/Frameworks"
- xinstall -d -m 0755 ${destroot}/Library/Frameworks
- system "cp -R SDL_sound.framework ${destroot}/Library/Frameworks"
-}
+xcode.destroot.type framework
+eval xcode.destroot.settings ${xcode.build.settings}
platform darwin 6 {
- depends_lib-append lib:libdl:dlcompat
+ depends_lib-append lib:libdl:dlcompat
}
+universal_variant no
+
+livecheck.check regex
+livecheck.regex {SDL_sound (\d+(?:\.\d+)*)}
Deleted: trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4
===================================================================
--- trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4 2008-11-10 23:02:08 UTC (rev 41805)
+++ trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4 2008-11-10 23:03:10 UTC (rev 41806)
@@ -1,28 +0,0 @@
---- acinclude.m4.orig Thu Mar 3 22:22:17 2005
-+++ acinclude.m4 Thu Mar 3 22:27:36 2005
-@@ -3178,6 +3178,15 @@
- # configuration script generated by Autoconf, you may include it under
- # the same distribution terms that you use for the rest of that program.
-
-+# A sed program that does not truncate output.
-+SED="/usr/bin/sed"
-+
-+# An ERE matcher.
-+EGREP="grep -E"
-+
-+# What is the maximum length of a command?
-+max_cmd_len=16384
-+
- # Sed that helps us avoid accidentally triggering echo(1) options like -n.
- Xsed="sed -e s/^X//"
-
-@@ -3188,6 +3197,9 @@
- # ### BEGIN LIBTOOL CONFIG
-
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-+
-+# Set the command separator (default: ~)
-+_S_=${LIBTOOL_CMD_SEP-\~}
-
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
Deleted: trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4.xcode21
===================================================================
--- trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4.xcode21 2008-11-10 23:02:08 UTC (rev 41805)
+++ trunk/dports/audio/libsdl_sound-framework/files/patch-acinclude.m4.xcode21 2008-11-10 23:03:10 UTC (rev 41806)
@@ -1,37 +0,0 @@
---- acinclude.m4~ 2003-01-12 14:03:14.000000000 -0800
-+++ acinclude.m4 2005-08-14 11:25:10.000000000 -0700
-@@ -2254,7 +2254,7 @@
- #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
-- whole_archive_flag_spec='-all_load $convenience'
-+ whole_archive_flag_spec='$convenience'
- ;;
-
- freebsd1*)
-@@ -3178,6 +3178,15 @@
- # configuration script generated by Autoconf, you may include it under
- # the same distribution terms that you use for the rest of that program.
-
-+# A sed program that does not truncate output.
-+SED="/usr/bin/sed"
-+
-+# An ERE matcher.
-+EGREP="grep -E"
-+
-+# What is the maximum length of a command?
-+max_cmd_len=16384
-+
- # Sed that helps us avoid accidentally triggering echo(1) options like -n.
- Xsed="sed -e s/^X//"
-
-@@ -3189,6 +3198,9 @@
-
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-+# Set the command separator (default: ~)
-+_S_=${LIBTOOL_CMD_SEP-\~}
-+
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
-
Deleted: trunk/dports/audio/libsdl_sound-framework/files/patch-aclocal.m4.xcode21
===================================================================
--- trunk/dports/audio/libsdl_sound-framework/files/patch-aclocal.m4.xcode21 2008-11-10 23:02:08 UTC (rev 41805)
+++ trunk/dports/audio/libsdl_sound-framework/files/patch-aclocal.m4.xcode21 2008-11-10 23:03:10 UTC (rev 41806)
@@ -1,11 +0,0 @@
---- aclocal.m4~ 2003-10-12 11:54:54.000000000 -0700
-+++ aclocal.m4 2005-08-14 11:22:56.000000000 -0700
-@@ -2219,7 +2219,7 @@
- #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
-- whole_archive_flag_spec='-all_load $convenience'
-+ whole_archive_flag_spec='$convenience'
- ;;
-
- freebsd1*)
Deleted: trunk/dports/audio/libsdl_sound-framework/files/patch-configure.xcode21
===================================================================
--- trunk/dports/audio/libsdl_sound-framework/files/patch-configure.xcode21 2008-11-10 23:02:08 UTC (rev 41805)
+++ trunk/dports/audio/libsdl_sound-framework/files/patch-configure.xcode21 2008-11-10 23:03:10 UTC (rev 41806)
@@ -1,11 +0,0 @@
---- configure~ 2003-10-12 11:54:57.000000000 -0700
-+++ configure 2005-08-14 11:23:13.000000000 -0700
-@@ -4706,7 +4706,7 @@
- #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
-- whole_archive_flag_spec='-all_load $convenience'
-+ whole_archive_flag_spec='$convenience'
- ;;
-
- freebsd1*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081110/44076687/attachment.html>
More information about the macports-changes
mailing list