# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/sidplay/sidplay-2.0.9.ebuild,v 1.3 2004/10/04 20:01:45 eradicator Exp $ inherit eutils IUSE="alsa" DESCRIPTION="C64 SID player" HOMEPAGE="http://sidplay2.sourceforge.net/" SRC_URI="mirror://sourceforge/sidplay2/${P}.tar.gz" RESTRICT="nomirror" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~sparc ~x86" RDEPEND=">=media-libs/libsidplay-2.1.0" DEPEND="${RDEPEND} sys-devel/libtool =sys-devel/automake-1.8* dev-util/pkgconfig" src_unpack () { unpack ${A} cd ${S} epatch ${FILESDIR}/sidplay-2.0.9-alsa-fix.patch export WANT_AUTOCONF=2.5 export WANT_AUTOMAKE=1.8 libtoolize --force --copy || die aclocal || die automake -a -f -c || die autoheader || die autoconf || die } src_compile() { econf $(use_with alsa) emake || die "emake failed" } src_install () { make DESTDIR=${D} install || die dodoc TODO AUTHORS ChangeLog }