blob: b081104fe55f4d927c2f4519da9abada87c887a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2005 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.15u.ebuild,v 1.2 2005/03/19 14:06:14 chainsaw Exp $
IUSE="static 16bit"
inherit eutils 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"
RDEPEND="media-sound/esound
media-libs/id3lib"
DEPEND="${RDEPEND}
x86? ( dev-lang/nasm )
amd64? ( dev-lang/nasm )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-Makefile.patch
epatch ${FILESDIR}/${P}-gcc4.patch
# Replace 1.15t with 1.15u
sed -i 's/\(MPP..._VERSION=1.15\)t/\1u/' version
sed -i 's/#define USE_IRIX_AUDIO/#undef USE_IRIX_AUDIO/' mpp.h
if ! use esd ; then
sed -i 's/#define USE_ESD_AUDIO/#undef USE_ESD_AUDIO/' mpp.h
else
sed -i 's/#LDADD += -lesd/LDADD += -lesd/' Makefile
fi
if ! use x86 ; then
sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h
fi
use 16bit && sed -i 's|//#define MAKE_16BIT|#define MAKE_16BIT|' mpp.h
}
src_compile() {
filter-flags "-fprefetch-loop-arrays"
filter-flags "-mfpmath=sse" "-mfpmath=sse,387"
use static && export BLD_STATIC=1
ARCH= emake mppenc mppdec replaygain || die
}
src_install() {
dobin mppenc mppdec replaygain
dodoc COPYING* README doc/ChangeLog doc/MANUAL.TXT doc/NEWS doc/SV7.txt doc/TODO*
}
|