| # Copyright 1999-2012 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/media-libs/libid3tag/libid3tag-0.15.1b-r2.ebuild,v 1.10 2012/05/17 14:50:26 aballier Exp $ |
| |
| EAPI=2 |
| inherit eutils multilib libtool |
| |
| DESCRIPTION="The MAD id3tag library" |
| HOMEPAGE="http://www.underbit.com/products/mad/" |
| SRC_URI="mirror://sourceforge/mad/${P}.tar.gz" |
| |
| LICENSE="GPL-2" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="debug static-libs" |
| |
| RDEPEND=">=sys-libs/zlib-1.1.3" |
| DEPEND="${RDEPEND} |
| dev-util/gperf" |
| |
| src_prepare() { |
| epunt_cxx #74489 |
| epatch "${FILESDIR}/${PV}"/*.patch |
| elibtoolize #sane .so versionning on fbsd and .so -> .so.version symlink |
| } |
| |
| src_configure() { |
| econf \ |
| --disable-dependency-tracking \ |
| $(use_enable static-libs static) \ |
| $(use_enable debug debugging) |
| } |
| |
| src_install() { |
| emake DESTDIR="${D}" install || die |
| dodoc CHANGES CREDITS README TODO VERSION |
| |
| # This file must be updated with every version update |
| insinto /usr/$(get_libdir)/pkgconfig |
| doins "${FILESDIR}"/id3tag.pc |
| sed -i \ |
| -e "s:libdir=\${exec_prefix}/lib:libdir=/usr/$(get_libdir):" \ |
| -e "s:0.15.0b:${PV}:" \ |
| "${D}"/usr/$(get_libdir)/pkgconfig/id3tag.pc || die |
| |
| find "${D}" -name '*.la' -exec rm -f '{}' + |
| } |