jack: cross build support.
This commit is contained in:
parent
5579f682cc
commit
3d085cb777
1 changed files with 23 additions and 11 deletions
|
@ -1,12 +1,7 @@
|
||||||
# Template file for 'jack'
|
# Template file for 'jack'
|
||||||
pkgname=jack
|
pkgname=jack
|
||||||
version=1.9.9.5
|
version=1.9.9.5
|
||||||
build_style=waf
|
revision=3
|
||||||
revision=2
|
|
||||||
configure_args="--alsa --classic --dbus"
|
|
||||||
# XXX libffado (firewire)
|
|
||||||
makedepends="python pkg-config libsamplerate-devel readline-devel
|
|
||||||
dbus-devel celt-devel"
|
|
||||||
short_desc="JACK Audio Connection Kit low-latency sound server (pro audio)"
|
short_desc="JACK Audio Connection Kit low-latency sound server (pro audio)"
|
||||||
maintainer="davehome <davehome@redthumb.info.tm>"
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
||||||
license="GPL-2, LGPL-2.1"
|
license="GPL-2, LGPL-2.1"
|
||||||
|
@ -27,7 +22,25 @@ long_desc="
|
||||||
design focuses on two key areas: synchronous execution of all clients, and
|
design focuses on two key areas: synchronous execution of all clients, and
|
||||||
low latency operation."
|
low latency operation."
|
||||||
|
|
||||||
post_install() {
|
# XXX libffado (firewire)
|
||||||
|
hostmakedepends="pkg-config python"
|
||||||
|
makedepends="libsamplerate-devel readline-devel dbus-devel celt-devel"
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
|
||||||
|
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
||||||
|
fi
|
||||||
|
python waf configure --prefix=/usr --alsa --classic --dbus
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
python waf build ${makejobs}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
python waf install --destdir=${DESTDIR}
|
||||||
|
|
||||||
# pam_limits(8) support
|
# pam_limits(8) support
|
||||||
vinstall ${FILESDIR}/jack-limitsd.conf \
|
vinstall ${FILESDIR}/jack-limitsd.conf \
|
||||||
644 etc/security/limits.d jack.conf
|
644 etc/security/limits.d jack.conf
|
||||||
|
@ -37,7 +50,7 @@ post_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
libjack_package() {
|
libjack_package() {
|
||||||
short_desc="${short_desc} -- runtime library"
|
short_desc+=" - runtime library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so*"
|
vmove "usr/lib/*.so*"
|
||||||
vmove usr/lib/jack
|
vmove usr/lib/jack
|
||||||
|
@ -46,7 +59,7 @@ libjack_package() {
|
||||||
|
|
||||||
jack-devel_package() {
|
jack-devel_package() {
|
||||||
depends="libjack>=${version}"
|
depends="libjack>=${version}"
|
||||||
short_desc="${short_desc} -- development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
@ -55,7 +68,6 @@ jack-devel_package() {
|
||||||
|
|
||||||
jack_package() {
|
jack_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove etc
|
vmove all
|
||||||
vmove usr
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue