summaryrefslogtreecommitdiff
blob: f6e2cabb917c982ded2d59dfe08a5b8c2449d7be (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/musicbrainz/musicbrainz-2.0.1.ebuild,v 1.11 2004/06/18 05:41:09 eradicator Exp $

IUSE=""

inherit libtool

S="${WORKDIR}/lib${P}"
DESCRIPTION="Client library to access free metadata about mp3/vorbis/CD media"
SRC_URI="ftp://ftp.musicbrainz.org/pub/musicbrainz/lib${P}.tar.gz"
HOMEPAGE="http://www.musicbrainz.org/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-x86 -sparc ~ppc alpha -amd64 ia64"

DEPEND=">=sys-devel/autoconf-2.58"
RDEPEND=""

src_unpack() {
	unpack ${A}

	cd ${S}
	# Get it to build with our CFLAGS (need Reconf part below)
	cp configure.in configure.in.orig
	sed -e 's:^CFLAGS:#CFLAGS:g' \
		-e 's:^CPPFLAGS:#CPPFLAGS:g' \
		configure.in.orig > configure.in

	# Fix problems with later versions of automake.  Please do not
	# remove .. if there are any issues, let me know.
	# <azarah@gentoo.org> (30 Mar 2003)
	einfo "Reconfiguring..."
	export WANT_AUTOCONF=2.5
	aclocal
	autoconf
	automake

	elibtoolize
}

src_compile() {
	econf || die
	emake || die "compile problem"
}

src_install() {
	dodir /usr/lib/pkgconfig
	make DESTDIR=${D} install || die

	dodoc AUTHORS COPYING ChangeLog INSTALL README TODO docs/mb_howto.txt
}