You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/libfishsound/libfishsound-0.9.1.ebuild

43 lines
1.1 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libfishsound/libfishsound-0.9.1.ebuild,v 1.4 2010/03/08 06:35:48 sping Exp $
DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex"
HOMEPAGE="http://www.xiph.org/fishsound/"
SRC_URI="http://downloads.xiph.org/releases/libfishsound/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc vorbis"
RDEPEND="vorbis? ( media-libs/libvorbis media-libs/libogg )
media-libs/speex"
DEPEND="${RDEPEND}
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 vorbis || myconf="--disable-vorbis"
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
}