diff options
Diffstat (limited to 'media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild')
-rw-r--r-- | media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild b/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild new file mode 100644 index 000000000000..c2e9e36cf3cf --- /dev/null +++ b/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.11-r4.ebuild,v 1.1 2007/03/25 12:51:44 drac Exp $ + +WANT_AUTOMAKE="1.5" + +inherit flag-o-matic eutils libtool autotools + +DESCRIPTION="A library to play a wide range of module formats" +HOMEPAGE="http://mikmod.raphnet.net/" +SRC_URI="http://mikmod.raphnet.net/files/${P}.tar.gz + mirror://gentoo/${P}-esdm4.patch.bz2" + +LICENSE="|| ( LGPL-2.1 LGPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="oss esd alsa" + +DEPEND=">=media-libs/audiofile-0.2.3 + alsa? ( >=media-libs/alsa-lib-0.5.9 ) + esd? ( >=media-sound/esound-0.2.19 )" + +src_unpack() { + unpack ${A} + + epatch "${DISTDIR}"/${P}-esdm4.patch.bz2 + + cd "${S}" + epatch "${FILESDIR}"/${P}-m4.patch + epatch "${FILESDIR}"/${P}-amd64-ppc64-archdef.patch + epatch "${FILESDIR}"/${P}-respectflags.patch + epatch "${FILESDIR}"/${P}-alsa.patch + AT_M4DIR="${S}/m4" eautoreconf +} + +src_compile() { + econf --enable-af \ + $(use_enable esd) \ + $(use_enable alsa) \ + $(use_enable oss) + emake || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS NEWS README TODO + dohtml docs/*.html +} |