# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit libtool eutils autotools DESCRIPTION="An Open Source implementation of the OpenMAX Integration Layer" HOMEPAGE="http://omxil.sourceforge.net" SRC_URI="http://downloads.sourceforge.net/omxil/libomxil-B-${PV}.tar.gz" S="${WORKDIR}/libomxil-B-${PV}" LICENSE="LGLP-2.1" SLOT="0" KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd" IUSE="ffmpeg mad vorbis" RDEPEND="media-libs/alsa-lib mad? ( media-libs/libmad ) vorbis? ( media-libs/libvorbis ) ffmpeg? ( media-video/ffmpeg )" DEPEND="${RDEPEND} sys-devel/autoconf sys-devel/automake" WANT_AUTOCONF="1.5.22" src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}-dontinstallcomponentheaders.patch epatch ${FILESDIR}/${P}-configure.patch cd ${S} eautoreconf } src_compile() { econf \ $(use_enable ffmpeg ffmpegcomponents) \ $(use_enable mad madcomponents) \ $(use_enable vorbis vorbiscomponents) make } src_install() { make DESTDIR="${D}" install || die "make install failed" }