summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2006-11-29 19:23:12 +0000
committerAlexis Ballier <aballier@gentoo.org>2006-11-29 19:23:12 +0000
commita15eb2819543b9fdb648b70aec4b7df1612aad7b (patch)
tree9060fafd6784b41ce67e426dddd008b56b74cb1b /media-sound/gnusound/gnusound-0.7.4.ebuild
parentFix ivtv-fb build foo, bug 156163 (diff)
downloadhistorical-a15eb2819543b9fdb648b70aec4b7df1612aad7b.tar.gz
historical-a15eb2819543b9fdb648b70aec4b7df1612aad7b.tar.bz2
historical-a15eb2819543b9fdb648b70aec4b7df1612aad7b.zip
Version bump, using gnome2, with patches from mandriva, plus a patch removing automagic dependencies
Package-Manager: portage-2.1.2_rc2-r3
Diffstat (limited to 'media-sound/gnusound/gnusound-0.7.4.ebuild')
-rw-r--r--media-sound/gnusound/gnusound-0.7.4.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/media-sound/gnusound/gnusound-0.7.4.ebuild b/media-sound/gnusound/gnusound-0.7.4.ebuild
new file mode 100644
index 000000000000..803c5bd47eb2
--- /dev/null
+++ b/media-sound/gnusound/gnusound-0.7.4.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gnusound/gnusound-0.7.4.ebuild,v 1.1 2006/11/29 19:23:12 aballier Exp $
+
+inherit toolchain-funcs
+
+IUSE="3dnow alsa audiofile cpudetection flac ffmpeg jack lame libsamplerate mmx
+ogg oss sse vorbis"
+
+WANT_ATUOMAKE=1.8
+WANT_AUTOCONF=2.5
+
+inherit eutils autotools
+
+DESCRIPTION="GNUsound is a sound editor for Linux/x86"
+HOMEPAGE="http://gnusound.sourceforge.net/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 -sparc ~x86"
+
+DEPEND=">=gnome-base/libglade-2.0.1
+ >=gnome-base/libgnomeui-2.2.0.1
+ audiofile? ( >=media-libs/audiofile-0.2.3 )
+ flac? ( media-libs/flac )
+ ffmpeg? ( media-video/ffmpeg )
+ ogg? ( media-libs/libogg )
+ lame? ( media-sound/lame )
+ media-libs/libsndfile
+ vorbis? ( media-libs/libvorbis )
+ libsamplerate? ( media-libs/libsamplerate )"
+
+pkg_setup() {
+ required_audio_drivers="alsa jack oss"
+ ok=false
+ for i in $required_audio_drivers; do
+ use $i && ok=true
+ done
+ if test "$ok" = "false"; then
+ die "In order to run ${PN}, you must enable at least one of those use flags: ${required_audio_drivers}"
+ fi
+}
+src_unpack() {
+ unpack ${A} || die "unpack failure"
+ cd ${S} || die "workdir not found"
+ rm -f doc/Makefile || die "could not remove doc Makefile"
+ rm -f modules/Makefile || die "could not remove modules Makefile"
+ sed -i "s:docrootdir:datadir:" doc/Makefile.in
+
+ epatch "${FILESDIR}/${P}-destdir.patch"
+ epatch "${FILESDIR}/${P}-amd64.patch"
+ epatch "${FILESDIR}/${P}-ffmpeg-struct.patch"
+ epatch "${FILESDIR}/${P}-automagic.patch"
+
+ AT_M4DIR="config" eaclocal
+ eautoconf
+}
+
+src_compile() {
+ myconf="--disable-fastmemcpy"
+ use mmx && use sse && use 3dnow && myconf="--enable-fastmemcpy"
+ # Doesnt detect gnome2 if sndfile is off
+ econf \
+ $(use_enable audiofile) \
+ $(use_enable lame) \
+ --enable-sndfile \
+ $(use_enable ogg) \
+ $(use_enable vorbis) \
+ $(use_enable ffmpeg) \
+ --disable-gmerlin \
+ $(use_enable flac) \
+ $(use_enable oss) \
+ $(use_enable alsa) \
+ $(use_enable jack) \
+ $(use_with libsamplerate) \
+ $(use_enable cpudetection) \
+ $(use_enable mmx fastminmax) \
+ ${myconf} \
+ --with-gnome2 \
+ || die "Configure failure"
+ emake CC=$(tc-getCC) || die "Make failure"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc README NOTES TODO CHANGES
+}