blob: 0f42f2d38843c441f6d1d2be4b5fa69dc4c539ae (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/id3lib/id3lib-3.8.3-r3.ebuild,v 1.1 2004/09/13 02:18:06 eradicator Exp $
IUSE="doc"
inherit eutils
MY_P=${P/_/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Id3 library for C/C++"
HOMEPAGE="http://id3lib.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ppc sparc ~mips alpha hppa amd64 ~ia64 ppc64"
RDEPEND="sys-libs/zlib"
DEPEND="sys-devel/autoconf
sys-devel/libtool"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-zlib.patch
export WANT_AUTOMAKE=1.6
export WANT_AUTOCONF=2.5
libtoolize --force --copy || die
aclocal || die
automake || die
autoconf || die
}
src_compile() {
export CPPFLAGS="${CPPFLAGS} -Wno-deprecated"
econf || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die "Install failed"
dosym /usr/lib/libid3-3.8.so.3 /usr/lib/libid3-3.8.so.0.0.0
dosym /usr/lib/libid3-3.8.so.0.0.0 /usr/lib/libid3-3.8.so.0
dodoc AUTHORS ChangeLog HISTORY INSTALL README THANKS TODO
# some example programs to be placed in docs dir.
if use doc; then
cp -a examples ${D}/usr/share/doc/${PF}/examples
cd ${D}/usr/share/doc/${PF}/examples
make distclean
fi
}
|