summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/dssi/dssi-0.9.ebuild')
-rw-r--r--media-libs/dssi/dssi-0.9.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/media-libs/dssi/dssi-0.9.ebuild b/media-libs/dssi/dssi-0.9.ebuild
new file mode 100644
index 000000000000..089ced6bd9f4
--- /dev/null
+++ b/media-libs/dssi/dssi-0.9.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/dssi/dssi-0.9.ebuild,v 1.1 2005/10/09 01:12:02 matsuu Exp $
+
+inherit eutils multilib
+
+IUSE="qt"
+
+DESCRIPTION="DSSI Soft Synth Interface"
+HOMEPAGE="http://dssi.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=">=media-libs/alsa-lib-1.0
+ >=media-libs/liblo-0.12
+ >=media-sound/jack-audio-connection-kit-0.99.0-r1
+ >=media-libs/ladspa-sdk-1.12-r2
+ >=media-libs/libsndfile-1.0.11
+ >=media-libs/libsamplerate-0.1.1-r1
+ sys-apps/sed
+ dev-util/pkgconfig
+ qt? ( >=x11-libs/qt-3 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+ sed -i -e "s@^prefix=.*@prefix='/usr'@" \
+ -e "s@^libdir=.*@libdir='/usr/$(get_libdir)'@" dssi.pc || die
+}
+
+src_compile() {
+ emake OPTFLAGS="${CFLAGS}" -C jack-dssi-host || die "emake failed"
+ if use qt; then
+ emake OPTFLAGS="${CFLAGS}" -C examples || die "emake faild"
+ fi
+}
+
+src_install() {
+ dobin jack-dssi-host/jack-dssi-host
+ insinto /usr/include; doins dssi/dssi.h
+ insinto /usr/$(get_libdir)/pkgconfig; doins dssi.pc
+
+ if use qt; then
+ emake -C examples \
+ PREFIX=${D}/usr \
+ LIBDIR=${D}/usr/$(get_libdir) \
+ install || die
+ fi
+
+ dodoc README doc/TODO doc/*.txt
+}