diff options
Diffstat (limited to 'media-libs/libfishsound/libfishsound-0.9.2.ebuild')
-rw-r--r-- | media-libs/libfishsound/libfishsound-0.9.2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/libfishsound/libfishsound-0.9.2.ebuild b/media-libs/libfishsound/libfishsound-0.9.2.ebuild new file mode 100644 index 000000000000..9bd02f25aa1a --- /dev/null +++ b/media-libs/libfishsound/libfishsound-0.9.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libfishsound/libfishsound-0.9.2.ebuild,v 1.1 2009/11/04 11:23:08 aballier Exp $ + +DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex" +HOMEPAGE="http://www.annodex.net/software/libfishsound/html/" +SRC_URI="http://www.annodex.net/software/libfishsound/download/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc speex" + +RDEPEND="media-libs/libvorbis media-libs/libogg + speex? ( media-libs/speex )" +# flac? ( media-libs/flac )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base )" + +src_unpack() { + unpack ${A} + cd "${S}" + use doc || sed -i -e "s/doxygen/doxygen-dummy/" configure + rm -rf "${S}/doc/libfishsound" +} + +src_compile() { + local myconf="" + # use flac || + # disable it for now, it causes compile failures in sonic-visualiser because + # it adds -I/usr/include/FLAC to pkgconfig cflags... + myconf="$myconf --disable-flac" + use speex || myconf="$myconf --disable-speex" + econf $myconf + + emake || die "emake failed" + if use doc; then + export VARTEXFONTS="${T}/fonts" + cd "${S}/doc/libfishsound/latex" + emake refman.ps || die "failed to create refman.ps" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog README +} |