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/sdif/sdif-3.8.6.ebuild

50 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/sdif/sdif-3.8.6.ebuild,v 1.6 2013/11/06 04:37:51 patrick Exp $
IUSE="doc threads ftruncate debug"
inherit eutils
MY_PN="${PN/sdif/SDIF}"
MY_P=${MY_PN}-${PV}-src
S=${WORKDIR}/${MY_P}
DESCRIPTION="The Sound Description Interchange Format Library deals with audio and wave processing."
HOMEPAGE="http://www.ircam.fr/anasyn/sdif"
SRC_URI="http://www.ircam.fr/anasyn/sdif/download/${MY_P}.tar.gz
doc? ( http://www.ircam.fr/anasyn/sdif/download/${MY_PN}-doc.tar.gz )"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
DEPEND=""
src_unpack() {
# a hack that I need to bother upstream about
# they don't want to use the "Package-Name-Docs/file1.html" format
# instead it's just file1.html :|
unpack "${MY_P}.tar.gz"
mkdir "${WORKDIR}/SDIF-doc"
use doc && tar xfz "${DISTDIR}/${MY_PN}-doc.tar.gz" -C "${WORKDIR}/SDIF-doc"
cd "${S}"
#custom cflags...
epatch "${FILESDIR}/${P}-cflags.patch"
}
src_compile() {
econf $(use_enable debug) \
$(use_enable ftruncate) \
$(use_enable threads pthreads) \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die
use doc && dohtml -r "${WORKDIR}/SDIF-doc"
}