Permalink
Browse files

add jack_capture utility

  • Loading branch information...
1 parent 5f16315 commit 9318451ec8ba349352fd094a1a38fe5259e2952d @nightmorph committed Mar 19, 2012
@@ -0,0 +1,3 @@
+AUX jack_capture-0.9.61-Makefile.patch 1324 RMD160 74ef5392efe3175ff35b82a135f764e078571475 SHA1 3028e1006df6cc814fa7bf81417c839666b4465e SHA256 caec4f8863c9635fc80562f281037c350c4f620977d7649ae7e42ad60ee761a4
+DIST jack_capture-0.9.61.tar.gz 48397 RMD160 8110764d6db57d281f915105d6738aa6313b5c1b SHA1 cba2a8af51242f2fd0f363f11636bdd611f1e1d3 SHA256 ddcc57f303cb8cb50947f82013faa795f61d82c50bb9b3f075deb69dda4cc0aa
+EBUILD jack_capture-0.9.61.ebuild 1047 RMD160 75299de690825d45cdb64629b6bc6fdd046c037b SHA1 4495ae1336658c9f8436cd90a41d2e8262714b19 SHA256 3eba788aa94342bf8c798109dfb480d154b6c3c4b749d41bdb538303b1386c5c
@@ -0,0 +1,45 @@
+--- jack_capture-0.9.61/Makefile.old 2010-11-09 17:27:14.000000000 +0000
++++ jack_capture-0.9.61/Makefile 2010-11-09 17:42:40.000000000 +0000
+@@ -1,14 +1,14 @@
+
+-DESTDIR =
+-prefix = /usr/local
++DESTDIR ?=
++prefix ?= /usr/local
+ bindir = $(prefix)/bin
+
+ VERSION=0.9.61
+
+-CC=gcc
+-CPP=g++
++CC ?= gcc
++CXX ?= g++
+
+-OPTIMIZE=-O3 -march=native
++OPTIMIZE ?= -O3 -march=native
+ #OPTIMIZE=-O0 -g
+
+ COMPILEFLAGS=$(OPTIMIZE) -DVERSION=\"$(VERSION)\" -Wall
+@@ -35,7 +35,7 @@
+ which install
+ which pkg-config
+ which $(CC)
+- which $(CPP)
++ which $(CXX)
+ $(CC) -E testsndfile.c >/dev/null
+ @echo "All seems good "
+ @echo
+@@ -54,11 +54,11 @@
+
+
+ jack_capture: setformat.c jack_capture.c vringbuffer.c Makefile das_config.h config_flags
+- $(CC) $(COMPILEFLAGS) jack_capture.c vringbuffer.c -o jack_capture $(LINKFLAGS) `cat config_flags`
++ $(CC) $(COMPILEFLAGS) jack_capture.c vringbuffer.c $(LDFLAGS) -o jack_capture $(LINKFLAGS) `cat config_flags`
+
+
+ jack_capture_gui2: jack_capture_gui2.cpp
+- $(CPP) $(OPTIMIZE) `pkg-config --libs --cflags gtk+-2.0` jack_capture_gui2.cpp -o jack_capture_gui2
++ $(CXX) $(OPTIMIZE) `pkg-config --libs --cflags gtk+-2.0` jack_capture_gui2.cpp $(LDFLAGS) -o jack_capture_gui2
+
+ config_flags: Makefile das_config.h
+ cat das_config.h |grep COMPILEFLAGS|sed s/\\/\\/COMPILEFLAGS// >config_flags
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Recording tool for JACK"
+HOMEPAGE="http://www.notam02.no/arkiv/src"
+SRC_URI="http://www.notam02.no/arkiv/src/${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gtk"
+
+RDEPEND=">=media-libs/libsndfile-1.0.17
+ >=media-sound/jack-audio-connection-kit-0.100
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ gtk? ( dev-util/pkgconfig )"
+
+src_compile() {
+ #epatch "${FILESDIR}/${P}-Makefile.patch"
+ tc-export CC CXX
+ make jack_capture prefix=/usr OPTIMIZE="${CFLAGS}" \
+ ${MAKEOPTS} || die "make jack_capture failed"
+ if use gtk; then
+ make jack_capture_gui2 CPP="${CXX}" \
+ prefix=/usr OPTIMIZE="${CXXFLAGS}" \
+ ${MAKEOPTS} || die "make jack_capture_gui2 failed"
+ fi
+}
+
+src_install() {
+ dobin jack_capture || die "dobin jack_capture failed"
+ if use gtk ; then
+ dobin jack_capture_gui2 || die "dobin jack_capture_gui2 failed"
+ fi
+ dodoc README
+}

0 comments on commit 9318451

Please sign in to comment.