summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/jack-rack/jack-rack-1.4.5.ebuild')
-rw-r--r--media-sound/jack-rack/jack-rack-1.4.5.ebuild32
1 files changed, 28 insertions, 4 deletions
diff --git a/media-sound/jack-rack/jack-rack-1.4.5.ebuild b/media-sound/jack-rack/jack-rack-1.4.5.ebuild
index 96c7273590e9..c290c96fa5ea 100644
--- a/media-sound/jack-rack/jack-rack-1.4.5.ebuild
+++ b/media-sound/jack-rack/jack-rack-1.4.5.ebuild
@@ -1,6 +1,10 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-rack/jack-rack-1.4.5.ebuild,v 1.1 2007/01/14 02:20:58 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-rack/jack-rack-1.4.5.ebuild,v 1.2 2007/06/29 14:40:27 flameeyes Exp $
+
+WANT_AUTOMAKE="1.9"
+
+inherit autotools
IUSE="alsa gnome lash nls xml"
@@ -12,17 +16,36 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-DEPEND=">=x11-libs/gtk+-2
+RDEPEND=">=x11-libs/gtk+-2
>=media-libs/ladspa-sdk-1.12
media-sound/jack-audio-connection-kit
alsa? ( media-libs/alsa-lib )
lash? ( >=media-sound/lash-0.5 )
gnome? ( >=gnome-base/libgnomeui-2 )
- nls? ( sys-devel/gettext )
+ nls? ( virtual/libintl )
xml? ( dev-libs/libxml2
media-libs/liblrdf )"
-MAKEOPTS="-j1"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
+ eerror ""
+ eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you"
+ eerror "need to have built media-libs/alsa-lib with midi USE flag."
+ die "Missing midi USE flag on media-libs/alsa-lib"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-asneeded.patch"
+ eautomake
+}
src_compile() {
local myconf
@@ -35,6 +58,7 @@ src_compile() {
$(use_enable nls) \
$(use_enable xml) \
$(use_enable xml lrdf ) \
+ --disable-dependency-tracking \
${myconf} || die "econf failed"
emake || die "emake failed"
}