summaryrefslogtreecommitdiff
blob: bebbe7fc3187642aeebff49a3fd843042252ba04 (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
# 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.1.ebuild,v 1.3 2004/09/05 22:25:00 eradicator Exp $

IUSE=""

inherit eutils

DESCRIPTION="Musepack decoder library"
HOMEPAGE="http://www.musepack.net"
SRC_URI="http://perso.wanadoo.fr/reservoir/mpc/${S}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"

src_unpack () {
	unpack ${A}

	cd ${S}
	sed -i 's:-O2 -march=i686 -pipe:${CFLAGS}:g' Makefile
}

src_compile() {
	emake || die "make failed"
}


src_install() {
	dodir /usr/include/musepack
	insinto /usr/include/musepack
	doins *.h
	dolib.so libmusepack.so.1.0.1
	dosym libmusepack.so.1.0.1 /usr/$(get_libdir)/libmusepack.so.1
	dosym libmusepack.so.1.0.1 /usr/$(get_libdir)/libmusepack.so
}