diff options
Diffstat (limited to 'media-sound/adplay/adplay-1.4-r2.ebuild')
-rw-r--r-- | media-sound/adplay/adplay-1.4-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-sound/adplay/adplay-1.4-r2.ebuild b/media-sound/adplay/adplay-1.4-r2.ebuild new file mode 100644 index 000000000000..36551884fbf2 --- /dev/null +++ b/media-sound/adplay/adplay-1.4-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/adplay/adplay-1.4-r2.ebuild,v 1.1 2006/05/14 12:45:28 spock Exp $ + +inherit eutils + +IUSE="oss esd sdl" + +DESCRIPTION="A console player for AdLib music" +HOMEPAGE="http://adplug.sourceforge.net/" +SRC_URI="mirror://sourceforge/adplug/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND=">=media-libs/adplug-1.4.1-r2" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-libbinio.patch +} + +src_compile() { + local myconf + + use oss || myconf="${myconf} --disable-output-oss" + use esd || myconf="${myconf} --disable-output-esound" + use sdl || myconf="${myconf} --disable-output-sdl" + + # A simple hack to make adplay work with libbinio 1.4+ + export CXXFLAGS="${CXXFLAGS} -I/usr/include/libbinio" + + econf ${myconf} || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die +} |