summaryrefslogtreecommitdiff
path: root/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
diff options
context:
space:
mode:
author(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
committer(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
commitf1e95daae05c57d935b00e611c624c5e75cd21ec (patch)
tree4065ab51d9e64882d9001a59ede7d9a4e372a4a6 /media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
uploading my overlay ), initial commit
git-svn-id: http://172.18.13.13/svn/sss_overlay@1 4d9a9b59-111c-4e0b-8f7a-7640551abb98
Diffstat (limited to 'media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild')
-rw-r--r--media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild b/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
new file mode 100644
index 0000000..4cedf29
--- /dev/null
+++ b/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild,v 1.2 2007/05/14 21:21:37 beandog Exp $
+
+IUSE="static 16bit esd"
+
+inherit eutils flag-o-matic flag-o-matic
+
+S="${WORKDIR}/sv7"
+
+DESCRIPTION="Musepack audio compression tools"
+HOMEPAGE="http://www.musepack.net"
+SRC_URI="http://files.musepack.net/source/mpcsv7-src-${PV}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+RDEPEND="esd? ( media-sound/esound )
+ media-libs/id3lib
+ !media-sound/mppenc"
+
+DEPEND="${RDEPEND}
+ x86? ( dev-lang/nasm )
+ x86-fbsd? ( dev-lang/nasm )
+ amd64? ( dev-lang/nasm )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+ epatch "${FILESDIR}/${P}-gcc4.patch"
+ use esd && epatch "${FILESDIR}/${P}-Makefile-esd.patch"
+
+ sed -i 's/#define USE_IRIX_AUDIO/#undef USE_IRIX_AUDIO/' mpp.h
+
+ if ! use esd ; then
+ sed -i -e 's/#define USE_ESD_AUDIO/#undef USE_ESD_AUDIO/' mpp.h
+ else
+ sed -i -e 's/^LDADD = -lm$/LDADD = $(shell esd-config --libs)/' \
+ Makefile
+ fi
+
+ if [[ $(tc-arch) != "x86" ]] ; then
+ sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h
+ fi
+
+ if [[ "$(tc-arch)" == "amd64" ]] ; then
+ sed -i 's/-f elf$/-f elf64/' Makefile
+ fi
+
+ use 16bit && sed -i 's|//#define MAKE_16BIT|#define MAKE_16BIT|' mpp.h
+
+ # Bug #109699; console redirection to /dev/tty makes no sense
+ sed -i -e 's/$(LDADD) &> $(LOGFILE)/$(LDADD)/' Makefile
+
+ epatch "${FILESDIR}/${P}-execstack.patch"
+ epatch "${FILESDIR}/${P}-fbsd.patch"
+}
+
+src_compile() {
+ filter-flags "-fprefetch-loop-arrays"
+ filter-flags "-mfpmath=sse" "-mfpmath=sse,387"
+ use static && export BLD_STATIC=1
+
+ append-flags "-I${S}"
+
+ emake CC="$(tc-getCC)" clean || die
+
+ ARCH= emake CC="$(tc-getCC)" mppenc mppdec replaygain || die
+}
+
+src_install() {
+ dobin mppenc mppdec replaygain
+ dodoc README doc/ChangeLog doc/MANUAL.TXT doc/NEWS doc/SV7.txt doc/TODO*
+}