diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-04-22 09:31:01 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-04-22 09:31:01 +0000 |
commit | ddd7d848539186e1119eb83ee5891725bd0ab132 (patch) | |
tree | 9b7d98c1d1506cb029c37b1180ee4306c4dc868e | |
parent | Added IUSE. (diff) | |
download | historical-ddd7d848539186e1119eb83ee5891725bd0ab132.tar.gz historical-ddd7d848539186e1119eb83ee5891725bd0ab132.tar.bz2 historical-ddd7d848539186e1119eb83ee5891725bd0ab132.zip |
Initial ebuild provided by 4nykey@nm.ru in bug #47615.
-rw-r--r-- | media-sound/musepack-tools/ChangeLog | 10 | ||||
-rw-r--r-- | media-sound/musepack-tools/Manifest | 5 | ||||
-rw-r--r-- | media-sound/musepack-tools/files/digest-musepack-tools-1.15r | 1 | ||||
-rw-r--r-- | media-sound/musepack-tools/files/musepack-tools-1.15r-Makefile.patch | 108 | ||||
-rw-r--r-- | media-sound/musepack-tools/metadata.xml | 5 | ||||
-rw-r--r-- | media-sound/musepack-tools/musepack-tools-1.15r.ebuild | 55 |
6 files changed, 184 insertions, 0 deletions
diff --git a/media-sound/musepack-tools/ChangeLog b/media-sound/musepack-tools/ChangeLog new file mode 100644 index 000000000000..a2c397044897 --- /dev/null +++ b/media-sound/musepack-tools/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-sound/musepack-tools +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/ChangeLog,v 1.1 2004/04/22 09:31:01 eradicator Exp $ + +*musepack-tools-1.15r (22 Apr 2004) + + 22 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org> + musepack-tools-1.15r.ebuild, files/musepack-tools-1.15r-Makefile.patch: + Initial ebuild provided by 4nykey@nm.ru in bug #47615. + diff --git a/media-sound/musepack-tools/Manifest b/media-sound/musepack-tools/Manifest new file mode 100644 index 000000000000..f1050a4b86b8 --- /dev/null +++ b/media-sound/musepack-tools/Manifest @@ -0,0 +1,5 @@ +MD5 1aac9fd6e76aa2d4e1d38aa939d2aeaa musepack-tools-1.15r.ebuild 1504 +MD5 559ced749af2877d9cdb55f63e81f3fd ChangeLog 464 +MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158 +MD5 1455d6a964f7627af39de693f68a6069 files/musepack-tools-1.15r-Makefile.patch 3459 +MD5 da322e6de9051b732f4d858efb9656e5 files/digest-musepack-tools-1.15r 68 diff --git a/media-sound/musepack-tools/files/digest-musepack-tools-1.15r b/media-sound/musepack-tools/files/digest-musepack-tools-1.15r new file mode 100644 index 000000000000..653a8cae944e --- /dev/null +++ b/media-sound/musepack-tools/files/digest-musepack-tools-1.15r @@ -0,0 +1 @@ +MD5 4ebf8573baf5ab176810052c16323b3a mpcsv7-src-1.15r.tar.gz 538420 diff --git a/media-sound/musepack-tools/files/musepack-tools-1.15r-Makefile.patch b/media-sound/musepack-tools/files/musepack-tools-1.15r-Makefile.patch new file mode 100644 index 000000000000..eebd5b596cbd --- /dev/null +++ b/media-sound/musepack-tools/files/musepack-tools-1.15r-Makefile.patch @@ -0,0 +1,108 @@ +diff -ru sv7/Makefile sv7_nu/Makefile +--- sv7/Makefile 2004-03-18 00:17:54.000000000 +0200 ++++ sv7_nu/Makefile 2004-04-16 20:41:00.842641680 +0300 +@@ -12,7 +12,7 @@ + + # Select the compiler. Normally gcc is used. + +-CC = cc -pipe -L/lib ++CC = gcc -pipe -L/lib + CC3 = gcc3 -pipe -L/lib + + +@@ -20,8 +20,7 @@ + # If unset Intel 386 with optimization for Pentium is selected. + + ifdef ARCH +-else +-ARCH = -march=i586 -mcpu=i386 ++ARCH = #-march=i586 -mcpu=i386 + endif + + +@@ -80,7 +79,7 @@ + # Name of libraries you need for linking + + LDADD = -lm +-LDADD += -lesd ++LDADD += `esd-config --libs` + #LDADD += -lossaudio + #LDADD += -lrt + #LDADD += -lsocket -lnsl +@@ -100,7 +99,7 @@ + # Warning options, unset if the compiler makes trouble because of unknown + # options + +-WARN = \ ++WARN = #\ + -Wall \ + -pedantic \ + -W \ +@@ -143,7 +142,7 @@ + -fstrength-reduce \ + -fexpensive-optimizations \ + -funroll-all-loops -fmove-all-movables -fstrength-reduce \ +- -mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5 ++ -mpreferred-stack-boundary=2 -falign-jumps=5 -falign-loops=0 -falign-functions=5 + + # -fcse-follow-jumps \ + +@@ -156,7 +155,7 @@ + -frerun-loop-opt \ + -fstrength-reduce \ + -fmove-all-movables -fstrength-reduce -fcse-follow-jumps \ +- -mpreferred-stack-boundary=2 -malign-jumps=5 -malign-loops=0 -malign-functions=5 ++ -mpreferred-stack-boundary=2 -falign-jumps=5 -falign-loops=0 -falign-functions=5 + + # Options to generate Assembly code for inspecting + +@@ -189,7 +188,7 @@ + + # Merge all options together for CFLAGS and CFLAG_SIZE + +-CFLAGS = $(ARCH) $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\" ++CFLAGS += $(ARCH) $(FEATURE) $(WARN) $(PROFILE) $(DEBUG) -DMAKE_$(BITS)BIT -DMPPDEC_VERSION=\"$(MPPDEC_VERSION)\" -DMPPENC_VERSION=\"$(MPPENC_VERSION)\" + CFLAGS += -I$(XINCLDIR) -L$(XLIBDIR) + #CFLAGS += $(ASSEM) + CFLAGS_SIZE = $(CFLAGS) $(OPTIM_SIZE) +@@ -275,10 +274,13 @@ + + + $(MPPDEC_TARGET): $(MPPDEC_OBJ) ++ifndef BLDSTATIC + $(CC) $(CFLAGS) $(MPPDEC_OBJ) -o $(MPPDEC_TARGET) $(LDADD) + -$(STRIP) $(STRIPOPT) $(MPPDEC_TARGET) +- $(CC) -static $(CFLAGS) $(MPPDEC_OBJ) -o $(MPPDEC_TARGET)-static $(LDADD) +- -$(STRIP) $(STRIPOPT) $(MPPDEC_TARGET)-static ++else ++ $(CC) -static $(CFLAGS) $(MPPDEC_OBJ) -o $(MPPDEC_TARGET) $(LDADD) ++ -$(STRIP) $(STRIPOPT) $(MPPDEC_TARGET) ++endif + + + $(MPPDEC_TARGET)16: $(MPPDEC_OBJ) +@@ -303,10 +305,13 @@ + + + $(MPPENC_TARGET): $(MPPENC_OBJ) ++ifndef BLDSTATIC + $(CC) $(CFLAGS) $(MPPENC_OBJ) -o $(MPPENC_TARGET) $(LDADD) + -$(STRIP) $(STRIPOPT) $(MPPENC_TARGET) +- $(CC) -static $(CFLAGS) $(MPPENC_OBJ) -o $(MPPENC_TARGET)-static $(LDADD) +- -$(STRIP) $(STRIPOPT) $(MPPENC_TARGET)-static ++else ++ $(CC) -static $(CFLAGS) $(MPPENC_OBJ) -o $(MPPENC_TARGET) $(LDADD) ++ -$(STRIP) $(STRIPOPT) $(MPPENC_TARGET) ++endif + + + $(MPPDEC_TARGET)-profiling: $(MPPDEC_OBJ) +@@ -344,7 +349,7 @@ + -$(STRIP) $(STRIPOPT) $(TAGGER_TARGET) + + +-$(CLIPSTAT_TARGET): ++$(CLIPSTAT_TARGET): $(CLIPSTAT_OBJ) + $(CC) $(CFLAGS) $(CLIPSTAT_OBJ) -o $(CLIPSTAT_TARGET) $(LDADD) + -$(STRIP) $(STRIPOPT) $(CLIPSTAT_TARGET) + diff --git a/media-sound/musepack-tools/metadata.xml b/media-sound/musepack-tools/metadata.xml new file mode 100644 index 000000000000..e1774e3d9ad7 --- /dev/null +++ b/media-sound/musepack-tools/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sound</herd> +</pkgmetadata> diff --git a/media-sound/musepack-tools/musepack-tools-1.15r.ebuild b/media-sound/musepack-tools/musepack-tools-1.15r.ebuild new file mode 100644 index 000000000000..85efd90f1ea3 --- /dev/null +++ b/media-sound/musepack-tools/musepack-tools-1.15r.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/musepack-tools-1.15r.ebuild,v 1.1 2004/04/22 09:31:01 eradicator Exp $ + +inherit eutils + +S="${WORKDIR}/sv7" + +DESCRIPTION="Musepack audio compression tools" +HOMEPAGE="http://www.uni-jena.de/~pfk/mpp/ http://corecodec.org/projects/mpc/" + +KEYWORDS="~x86" +SLOT="0" +LICENSE="GPL-2 LGPL-2.1" +RESTRICT="nomirror" +IUSE="static esd oss" +SRC_URI="http://corecodec.org/download.php/196/mpcsv7-src-${PV}.tar.gz" + +RDEPEND="media-sound/esound + media-libs/id3lib" + +DEPEND="${RDEPEND} + virtual/glibc" + +src_unpack() { + if (! use esd && ! use oss); then + die "You muse have either oss or esd active in your USE flags for xmms-musepack to work properly." + fi + + unpack ${A} + cd ${S} + + #Cosmetic changes mainly to allow using of custom CFLAGS + epatch ${FILESDIR}/${P}-Makefile.patch + + use oss || sed -i 's/#define USE_OSS_AUDIO/#undef USE_OSS_AUDIO/' mpp.h + + if ! use esd ; then + sed -i 's/#define USE_ESD_AUDIO/#undef USE_ESD_AUDIO/' mpp.h + sed -i 's/LDADD += -lesd/#LDADD += -lesd/' Makefile + fi + + use x86 || sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h +} + +src_compile() { + filter-flags "-fprefetch-loop-arrays" + use static && export BLDSTATIC=1 + emake mppenc mppdec replaygain tagger || die +} + +src_install() { + dobin mppenc mppdec replaygain tagger + dodoc COPYING* README doc/ChangeLog doc/MANUAL.TXT doc/NEWS doc/SV7.txt doc/TODO* +} |