summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2004-08-19 22:46:18 +0000
committerChris White <chriswhite@gentoo.org>2004-08-19 22:46:18 +0000
commit321996cdb0f69eb592c571ac02587deb5228a800 (patch)
tree5aee75576d69410fef2c809f31e3609e3e8da250 /media-libs/libdsp/libdsp-4.9.2.ebuild
parentdep fix & longdescr (Manifest recommit) (diff)
downloadgentoo-2-321996cdb0f69eb592c571ac02587deb5228a800.tar.gz
gentoo-2-321996cdb0f69eb592c571ac02587deb5228a800.tar.bz2
gentoo-2-321996cdb0f69eb592c571ac02587deb5228a800.zip
Moved from media-sound/libdsp to media-libs/libdsp.
Diffstat (limited to 'media-libs/libdsp/libdsp-4.9.2.ebuild')
-rw-r--r--media-libs/libdsp/libdsp-4.9.2.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/libdsp/libdsp-4.9.2.ebuild b/media-libs/libdsp/libdsp-4.9.2.ebuild
new file mode 100644
index 000000000000..de61544259cc
--- /dev/null
+++ b/media-libs/libdsp/libdsp-4.9.2.ebuild
@@ -0,0 +1,61 @@
+# 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.ebuild,v 1.1 2004/08/19 22:46:18 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 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() {
+
+ 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/*
+ fi
+}