summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/jack-audio-connection-kit
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/jack-audio-connection-kit
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core-testing/jack-audio-connection-kit')
-rw-r--r--abs/core-testing/jack-audio-connection-kit/PKGBUILD30
-rw-r--r--abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.conf.d42
-rw-r--r--abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.install34
-rw-r--r--abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.rc.d39
4 files changed, 145 insertions, 0 deletions
diff --git a/abs/core-testing/jack-audio-connection-kit/PKGBUILD b/abs/core-testing/jack-audio-connection-kit/PKGBUILD
new file mode 100644
index 0000000..f9d73eb
--- /dev/null
+++ b/abs/core-testing/jack-audio-connection-kit/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: tobias <tobias@archlinux.net>
+# Contributor: Robert Emil Berge <robert@rebi.no>
+
+pkgname=jack-audio-connection-kit
+pkgver=0.109.2
+pkgrel=1
+pkgdesc="a low-latency audio server"
+arch=(i686 x86_64)
+license=(GPL2 LGPL2)
+depends=('libsndfile' 'bash' 'readline' 'flac>=1.1.4')
+makedepends=('doxygen')
+install=jack-audio-connection-kit.install
+url="http://jackit.sourceforge.net/"
+backup=(etc/conf.d/jack-audio-connection-kit)
+options=('!libtool')
+source=(http://dl.sourceforge.net/sourceforge/jackit/${pkgname}-${pkgver}.tar.gz \
+ ${pkgname}.rc.d ${pkgname}.conf.d)
+md5sums=('4d8f795a6c566b9753a86038367e7e32' '4dcba5381e45bd449def164927854e48' \
+ '0517b67ef912e2a84b6a15dea2dc2680')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --enable-optimization-by-compiler \
+ --enable-mmx --enable-timestamps --enable-posix-shm --libdir=/usr/lib
+ make || return 1
+ make DESTDIR=${startdir}/pkg install
+ install -D -m 755 ../${pkgname}.rc.d ${startdir}/pkg/etc/rc.d/${pkgname}
+ install -D -m 644 ../${pkgname}.conf.d ${startdir}/pkg/etc/conf.d/${pkgname}
+}
diff --git a/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.conf.d b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.conf.d
new file mode 100644
index 0000000..2ae7ca9
--- /dev/null
+++ b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.conf.d
@@ -0,0 +1,42 @@
+# Jack Audio Connection Kit options
+
+
+################################################ general server options
+# output form `jackd --help`
+# extend the switches in the OPTIONS variable
+# usage: jackd [ --realtime OR -R [ --realtime-priority OR -P priority ] ]
+# [ --no-mlock OR -m ]
+# [ --timeout OR -t client-timeout-in-msecs ]
+# [ --port-max OR -p maximum-number-of-ports]
+# [ --verbose OR -v ]
+# [ --silent OR -s ]
+# [ --version OR -V ]
+# -d driver [ ... driver args ... ]
+# driver can be `alsa', `dummy', `oss' or `portaudio'
+
+SERVER_PARAMS="-s -d alsa"
+
+
+################################################# options passed to the driver
+# currently only options for alsa are available
+
+
+# Parameters for driver 'alsa' (all parameters are optional):
+# -C, --capture Provide only capture ports. Optionally set device (default: none)
+# -P, --playback Provide only playback ports. Optionally set device (default: none)
+# -d, --device ALSA device name (default: hw:0)
+# -r, --rate Sample rate (default: 48000)
+# -p, --period Frames per period (default: 1024)
+# -n, --nperiods Number of periods in hardware buffer (default: 2)
+# -H, --hwmon Hardware monitoring, if available (default: false)
+# -M, --hwmeter Hardware metering, if available (default: false)
+# -D, --duplex Provide both capture and playback ports (default: true)
+# -s, --softmode Soft-mode, no xrun handling (default: false)
+# -m, --monitor Provide monitor ports for the output (default: false)
+# -z, --dither Dithering mode (default: n)
+# -i, --inchannels Number of capture channels (defaults to hardware max) (default: 0)
+# -o, --outchannels Number of playback channels (defaults to hardware max) (default: 0)
+# -S, --shorts Try 16-bit samples before 32-bit (default: false)
+
+DRIVER_PARAMS="-d hw:0 -p 1024"
+
diff --git a/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.install b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.install
new file mode 100644
index 0000000..cdbedb8
--- /dev/null
+++ b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.install
@@ -0,0 +1,34 @@
+
+post_install() {
+ cat << EOM
+
+ --> It is recommended to use qjackctl as a controlling frontend for the
+ --> audio server. The extended rights for realtime capabilities can be
+ --> granted based on groups or a per user base in
+ --> /etc/security/limits.conf
+
+ --> The audio server comes with a daemon script that runs it as root.
+ --> Configuration happens in /etc/conf.d/jack-audio-connection-kit and is
+ --> documented there.
+ --> NOTE: Running jack as root to enable realtime capabilities isn't
+ --> needed any longer.
+
+EOM
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ /bin/true
+}
+
+post_remove() {
+ /bin/true
+}
+
+op=$1
+shift
+
+$op $*
diff --git a/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.rc.d b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.rc.d
new file mode 100644
index 0000000..b2f658e
--- /dev/null
+++ b/abs/core-testing/jack-audio-connection-kit/jack-audio-connection-kit.rc.d
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# source application-specific settings
+[ -f /etc/conf.d/jack-audio-connection-kit ] && . /etc/conf.d/jack-audio-connection-kit
+
+PID=`pidof -o %PPID /usr/bin/jackd`
+
+case "$1" in
+ start)
+ stat_busy "Starting Jack-audio-connection-kit Daemon"
+ [ -z "$PID" ] && /usr/bin/jackd $SERVER_PARAMS -d $DRIVER_PARAMS &> /dev/null &
+ if [ ! -z "$PID" -o $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon jack-audio-connection-kit
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Jack-audio-connection-kit Daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon jack-audio-connection-kit
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac