# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libsidplay/libsidplay-2.1.1.ebuild,v 1.16 2009/08/16 14:22:58 armin76 Exp $ inherit libtool eutils MY_PN="sidplay-libs" MY_P="${MY_PN}-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="C64 SID player library" HOMEPAGE="http://sidplay2.sourceforge.net/" SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="2" KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86 ~x86-fbsd" IUSE="" DEPEND="virtual/libc" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/libsidplay2-gcc41.patch" || die epatch "${FILESDIR}/${P}-fbsd.patch" || die epatch "${FILESDIR}/${P}-gcc43.patch" || die elibtoolize } src_compile() { econf --with-pic || die emake || die } src_install() { make DESTDIR="${D}" install || die cd "${S}/libsidplay" docinto libsidplay dodoc AUTHORS ChangeLog README TODO cd "${S}/libsidutils" docinto libsidutils dodoc AUTHORS ChangeLog README TODO cd "${S}/resid" docinto resid dodoc AUTHORS ChangeLog NEWS README THANKS TODO }