summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-06-05 21:27:06 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-06-05 21:27:06 +0000
commit0420f31600246e4c81519cfe1538ef549fc381a0 (patch)
treee2a697e1706c5529c95ec32c2cc065649278f624 /media-libs/FusionSound
parentVersion bump. (diff)
downloadhistorical-0420f31600246e4c81519cfe1538ef549fc381a0.tar.gz
historical-0420f31600246e4c81519cfe1538ef549fc381a0.tar.bz2
historical-0420f31600246e4c81519cfe1538ef549fc381a0.zip
Fix automagic deps like alsa, cddb, ffmpeg, mad, timidity and vorbis. Fix ffmpeg compability wrt #238718, thanks to Victor Ostorga. Fix building with GCC 4.3 wrt #238718, thanks to Tupone Alfredo.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'media-libs/FusionSound')
-rw-r--r--media-libs/FusionSound/ChangeLog17
-rw-r--r--media-libs/FusionSound/FusionSound-1.1.1.ebuild54
-rw-r--r--media-libs/FusionSound/Manifest8
-rw-r--r--media-libs/FusionSound/files/FusionSound-1.1.1-ffmpeg.patch43
-rw-r--r--media-libs/FusionSound/files/FusionSound-1.1.1-gcc43.patch40
-rw-r--r--media-libs/FusionSound/metadata.xml11
6 files changed, 151 insertions, 22 deletions
diff --git a/media-libs/FusionSound/ChangeLog b/media-libs/FusionSound/ChangeLog
index 49c0144923e2..e737eeda3415 100644
--- a/media-libs/FusionSound/ChangeLog
+++ b/media-libs/FusionSound/ChangeLog
@@ -1,20 +1,23 @@
# ChangeLog for media-libs/FusionSound
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/FusionSound/ChangeLog,v 1.3 2008/04/15 14:51:43 drac Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/FusionSound/ChangeLog,v 1.4 2009/06/05 21:27:06 ssuominen Exp $
- 15 Apr 2008; Samuli Suominen <drac@gentoo.org> -FusionSound-1.0.0.ebuild,
- FusionSound-1.1.1.ebuild:
- Remove old. QAbaddep fix for current.
+ 05 Jun 2009; Samuli Suominen <ssuominen@gentoo.org>
+ FusionSound-1.1.1.ebuild, +files/FusionSound-1.1.1-ffmpeg.patch,
+ +files/FusionSound-1.1.1-gcc43.patch:
+ Fix automagic deps like alsa, cddb, ffmpeg, mad, timidity and vorbis. Fix
+ ffmpeg compability wrt #238718, thanks to Victor Ostorga. Fix building
+ with GCC 4.3 wrt #238718, thanks to Tupone Alfredo.
*FusionSound-1.1.1 (19 Mar 2008)
19 Mar 2008; Joerg Bornkessel <hd_brummy@gentoo.org>
+FusionSound-1.1.1.ebuild:
- version bump; bug 205833
+ Version bump wrt #205833.
*FusionSound-1.0.0 (24 Aug 2007)
24 Aug 2007; Joerg Bornkessel <hd_brummy@gentoo.org> +metadata.xml,
+FusionSound-1.0.0.ebuild:
- initial ebuild
+ Initial ebuild.
diff --git a/media-libs/FusionSound/FusionSound-1.1.1.ebuild b/media-libs/FusionSound/FusionSound-1.1.1.ebuild
index e843c519432f..927563904fc7 100644
--- a/media-libs/FusionSound/FusionSound-1.1.1.ebuild
+++ b/media-libs/FusionSound/FusionSound-1.1.1.ebuild
@@ -1,6 +1,9 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/FusionSound/FusionSound-1.1.1.ebuild,v 1.2 2008/04/15 14:51:43 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/FusionSound/FusionSound-1.1.1.ebuild,v 1.3 2009/06/05 21:27:06 ssuominen Exp $
+
+EAPI=2
+inherit autotools eutils
DESCRIPTION="Audio sub system for multiple applications"
HOMEPAGE="http://www.directfb.org/"
@@ -9,14 +12,53 @@ SRC_URI="http://www.directfb.org/downloads/Core/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="vorbis mp3"
+IUSE="alsa cddb ffmpeg mad oss timidity vorbis"
RDEPEND=">=dev-libs/DirectFB-${PV}
+ alsa? ( media-libs/alsa-lib )
+ timidity? ( media-libs/libtimidity
+ media-sound/timidity++ )
vorbis? ( media-libs/libvorbis )
- mp3? ( media-libs/libmad )"
+ mad? ( media-libs/libmad )
+ cddb? ( media-libs/libcddb )
+ ffmpeg? ( >=media-video/ffmpeg-0.5 )"
DEPEND="${RDEPEND}
- dev-util/pkgconfig"
+ dev-util/pkgconfig
+ sys-apps/sed"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-ffmpeg.patch
+ sed -i -e 's:-O3 -ffast-math -pipe::' configure.in \
+ || die "sed failed"
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ local myaudio="wave"
+
+ use alsa && myaudio="${myaudio} alsa"
+ use oss && myaudio="${myaudio} oss"
+
+ # Lite is used only for tests or examples.
+ # Tremor isn't there with latest libvorbis.
+ econf \
+ --disable-dependency-tracking \
+ --without-lite \
+ --with-drivers="${myaudio}" \
+ --without-examples \
+ $(use_with timidity) \
+ --with-wave \
+ $(use_with vorbis) \
+ --without-tremor \
+ $(use_with mad) \
+ $(use_with cddb cdda) \
+ $(use_with ffmpeg) \
+ --with-playlist
+}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
+ emake DESTDIR="${D}" htmldir=/usr/share/doc/${PF}/html \
+ install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO
}
diff --git a/media-libs/FusionSound/Manifest b/media-libs/FusionSound/Manifest
index fa7045e25faa..c9577c098b96 100644
--- a/media-libs/FusionSound/Manifest
+++ b/media-libs/FusionSound/Manifest
@@ -1,4 +1,6 @@
+AUX FusionSound-1.1.1-ffmpeg.patch 1909 RMD160 ace5650fd14967d226cc2183cfb8016002a9833b SHA1 36f7d62672e4f92506ce09af28a64076cdc88a1c SHA256 2d4923474c6fd22bafdfb6f2454a1b280d24cb7d8ec2ad20e75c547cdb559439
+AUX FusionSound-1.1.1-gcc43.patch 966 RMD160 778aa15f55614479ac26fa46b7e9d5d9e032d7fc SHA1 d718d3fb2a9914e4c675f6a6058ce750b20337c2 SHA256 501b0a9fc9c109ce38564863cf4ae1737de99eff3f22052506e3371fef443c3b
DIST FusionSound-1.1.1.tar.gz 1103465 RMD160 08fca827c50dbc2abc754f8ec25fcc62a7896917 SHA1 cd5e45d5ab3d83b9474e8d4dc36a0b43e637f302 SHA256 573505cb6d8e39174f188ef8f749fc4c0f3476397f379d2b65ff8d07b8aa6f6d
-EBUILD FusionSound-1.1.1.ebuild 668 RMD160 f9ebbf22167c5d6183b0e070b7600f2188ed71bf SHA1 fec01676b9e5b4e8e08c478aaf74f1f844bc650e SHA256 08835d3d1ed7edded10e0f12f0c47a4deb5d0097f72f51c2fdaa238b1f682db9
-MISC ChangeLog 657 RMD160 c00f521aece84abaa157c0e2d6cd039775eef18c SHA1 a194684d62fa9c39e7d0da238472f074d2298c69 SHA256 7b72de6d2614c2f39d206a7d6d58fce151bd1a78f055506661bd7a071f0d01c1
-MISC metadata.xml 252 RMD160 606fdaf1937c31ffc762a3cf93a32a8ffec86f69 SHA1 33c82a58e3fd547f4bd9ba5a613ec67c819b0afc SHA256 ce1823bb069e896713e58bc85554891994dda94b534cb44513b95a8b02a0ac5c
+EBUILD FusionSound-1.1.1.ebuild 1687 RMD160 9b0f9efa8ebdfaa6bc139f2065f7ab15b464ae50 SHA1 9c534cb29393c5f00bcfb710de58da152c456a05 SHA256 03c0507f550718c6d92a1ff6196cbf31117c2e0f6a37a9159fc8dae2c32f0265
+MISC ChangeLog 884 RMD160 e707df71453fb9d38e678b6d2ead60213923f8a8 SHA1 da05ddcd6ef0838d0655c509ca2a611a75057603 SHA256 7554de9108a62202e708927a1c057cdb3b424e57f564144ccaf294203ef328c7
+MISC metadata.xml 258 RMD160 5095033a3f1e005eb3f3a84860d66ddec69a3f2a SHA1 9a67dcf026c0a4fb909ce2567329156394735796 SHA256 b2a9da76f94c1e0ae408d46f9621abe6df070aa121366378e2fbc8ec5037c451
diff --git a/media-libs/FusionSound/files/FusionSound-1.1.1-ffmpeg.patch b/media-libs/FusionSound/files/FusionSound-1.1.1-ffmpeg.patch
new file mode 100644
index 000000000000..8135157b3f31
--- /dev/null
+++ b/media-libs/FusionSound/files/FusionSound-1.1.1-ffmpeg.patch
@@ -0,0 +1,43 @@
+diff -Naurp FusionSound-1.1.1-original/configure.in FusionSound-1.1.1/configure.in
+--- FusionSound-1.1.1-original/configure.in 2008-02-11 05:31:45.000000000 -0600
++++ FusionSound-1.1.1/configure.in 2009-04-10 15:18:02.000000000 -0600
+@@ -513,11 +513,11 @@ AC_ARG_WITH(ffmpeg,
+
+ if test "x$with_ffmpeg" = "xyes"; then
+ AC_MSG_CHECKING([for libavcodec/libavformat])
+- if $PKG_CONFIG libavcodec libavformat; then
++ if $PKG_CONFIG libavcodec libavformat libavutil; then
+ AC_MSG_RESULT(yes)
+ ffmpeg="yes"
+- FFMPEG_CFLAGS=`$PKG_CONFIG --cflags libavcodec libavformat`
+- FFMPEG_LIBS=`$PKG_CONFIG --libs libavcodec libavformat`
++ FFMPEG_CFLAGS=`$PKG_CONFIG --cflags libavcodec libavformat libavutil`
++ FFMPEG_LIBS=`$PKG_CONFIG --libs libavcodec libavformat libavutil`
+ else
+ AC_MSG_RESULT(no)
+ AC_MSG_WARN([
+diff -Naurp FusionSound-1.1.1-original/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c FusionSound-1.1.1/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c
+--- FusionSound-1.1.1-original/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c 2008-02-11 05:31:45.000000000 -0600
++++ FusionSound-1.1.1/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c 2009-04-10 15:18:21.000000000 -0600
+@@ -41,8 +41,8 @@
+
+ #include <misc/sound_util.h>
+
+-#include <avcodec.h>
+-#include <avformat.h>
++#include <libavcodec/avcodec.h>
++#include <libavformat/avformat.h>
+
+ static DFBResult
+ Probe( IFusionSoundMusicProvider_ProbeContext *ctx );
+@@ -123,8 +123,8 @@ av_read_callback( void *opaque, uint8_t
+ return len;
+ }
+
+-static offset_t
+-av_seek_callback( void *opaque, offset_t offset, int whence )
++static int64_t
++av_seek_callback( void *opaque, int64_t offset, int whence )
+ {
+ IFusionSoundMusicProvider_FFmpeg_data *data = opaque;
+ unsigned int pos = 0;
diff --git a/media-libs/FusionSound/files/FusionSound-1.1.1-gcc43.patch b/media-libs/FusionSound/files/FusionSound-1.1.1-gcc43.patch
new file mode 100644
index 000000000000..5ebdfbcf1eeb
--- /dev/null
+++ b/media-libs/FusionSound/files/FusionSound-1.1.1-gcc43.patch
@@ -0,0 +1,40 @@
+--- src/fusionsound.c.old 2009-01-16 14:28:27.000000000 +0100
++++ src/fusionsound.c 2009-01-16 14:33:34.000000000 +0100
+@@ -116,7 +116,7 @@
+ return fs_config_set( name, value );
+ }
+
+-DirectResult
++DFBResult
+ FusionSoundCreate( IFusionSound **ret_interface )
+ {
+ DFBResult ret;
+@@ -160,8 +160,8 @@
+ return ret;
+ }
+
+-DirectResult
+-FusionSoundError( const char *msg, DirectResult error )
++DFBResult
++FusionSoundError( const char *msg, DFBResult error )
+ {
+ if (msg)
+ fprintf( stderr, "(#) FusionSound Error [%s]: %s\n", msg, DirectResultString( error ) );
+@@ -172,7 +172,7 @@
+ }
+
+ DFBResult
+-FusionSoundErrorFatal( const char *msg, DirectResult error )
++FusionSoundErrorFatal( const char *msg, DFBResult error )
+ {
+ FusionSoundError( msg, error );
+
+@@ -180,7 +180,7 @@
+ }
+
+ const char *
+-FusionSoundErrorString( DirectResult error )
++FusionSoundErrorString( DFBResult error )
+ {
+ return DirectResultString( error );
+ }
diff --git a/media-libs/FusionSound/metadata.xml b/media-libs/FusionSound/metadata.xml
index a402e786e9b6..5e71b4c24efb 100644
--- a/media-libs/FusionSound/metadata.xml
+++ b/media-libs/FusionSound/metadata.xml
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>video</herd>
-<maintainer>
-<email>hd_brummy@gentoo.org</email>
-<name>Joerg Bornkessel</name>
-</maintainer>
+ <herd>sound</herd>
+ <maintainer>
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
</pkgmetadata>
-