blob: e331ab88f24db9eec916cd744b11c8fe931e47b6 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmusepack/libmusepack-1.0.2.ebuild,v 1.2 2004/09/22 10:31:54 eradicator Exp $
IUSE=""
inherit eutils
DESCRIPTION="Musepack decoder library"
HOMEPAGE="http://www.musepack.net"
SRC_URI="http://www.musepack.net/downloads/source/${S}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
app-arch/unzip"
src_unpack () {
mkdir ${S}
cd ${S}
unpack ${A}
sed -i -e 's:-O2 -march=i686 -pipe:$(CFLAGS):' \
-e 's:libmusepack.so.1.0.1:libmusepack.so.1.0.2:' Makefile
}
src_compile() {
emake || die "make failed"
}
src_install() {
insinto /usr/include/musepack
doins *.h
dolib.so libmusepack.so.${PV}
dosym libmusepack.so.${PV} /usr/$(get_libdir)/libmusepack.so.1
dosym libmusepack.so.${PV} /usr/$(get_libdir)/libmusepack.so
}
|