diff options
author | 2004-08-19 23:01:08 +0000 | |
---|---|---|
committer | 2004-08-19 23:01:08 +0000 | |
commit | 719c95c51d9fcf4963941b489def13afc4e172f7 (patch) | |
tree | 0a4a4fe18df32e5fc966e0bd412009fccd066b7b /media-libs/libdsp/libdsp-4.9.2-r1.ebuild | |
parent | fix QA nitpicking (Manifest recommit) (diff) | |
download | gentoo-2-719c95c51d9fcf4963941b489def13afc4e172f7.tar.gz gentoo-2-719c95c51d9fcf4963941b489def13afc4e172f7.tar.bz2 gentoo-2-719c95c51d9fcf4963941b489def13afc4e172f7.zip |
Bumped to -r1 with some additions mentioned in Bug #58587.
Diffstat (limited to 'media-libs/libdsp/libdsp-4.9.2-r1.ebuild')
-rw-r--r-- | media-libs/libdsp/libdsp-4.9.2-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/media-libs/libdsp/libdsp-4.9.2-r1.ebuild b/media-libs/libdsp/libdsp-4.9.2-r1.ebuild new file mode 100644 index 000000000000..ba293f4bb17a --- /dev/null +++ b/media-libs/libdsp/libdsp-4.9.2-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdsp/libdsp-4.9.2-r1.ebuild,v 1.1 2004/08/19 23:01:08 chriswhite Exp $ + +IUSE="doc" + +inherit eutils + +DESCRIPTION="C++ class library of common digital signal processing functions." +HOMEPAGE="http://libdsp.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz + doc? mirror://sourceforge/${PN}/${PN}-doc-html.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +DEPEND="" + +S=${WORKDIR}/${PN}-src-${PV} + +src_unpack() { + unpack ${A} + cd ${S} +} + +src_compile() { + # fixes some Makefile weirdness + epatch ${FILESDIR}/Makefile.patch + + # use our CFLAGS/CXXFLAGS instead + sed -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" -i libDSP/Makefile + sed -e "s:^CXXFLAGS.*:CXXFLAGS = ${CXXFLAGS}:" -i DynThreads/Makefile + + # use our PREFIX too + sed -e "s:^PREFIX.*:PREFIX = ${D}/usr:" -i Inlines/Makefile + sed -e "s:^PREFIX.*:PREFIX = ${D}/usr:" -i libDSP/Makefile + sed -e "s:^PREFIX.*:PREFIX = ${D}/usr:" -i DynThreads/Makefile + + # libtool only supports the --tag option from v1.5 onwards + if ! has_version >= sys-devel/libtool-1.5.0; then + sed -e "s/^LIBTOOL = libtool --tag=CXX/LIBTOOL = libtool/" -i libDSP/Makefile + fi + + cd ${S}/DynThreads + emake || die "DynThreads make failed!" + + cd ${S}/libDSP + emake || die "libDSP make failed!" +} + +src_install() { + + mkdir -p ${D}/usr/include + cd ${S}/Inlines + make install || die "Inlines install failed!" + + cd ${S}/DynThreads + make install || die "DynThreads install failed!" + + cd ${S}/libDSP + make install || die "libDSP install failed!" + + if use doc; then + dohtml ${WORKDIR}/${PN}-doc-html/* + docinto samples + dodoc ${S}/libDSP/work/* + fi +} |