59 lines
1.9 KiB
Bash
59 lines
1.9 KiB
Bash
# Template file for 'libffado'
|
|
pkgname=libffado
|
|
version=2.4.1
|
|
revision=2
|
|
build_style=scons
|
|
make_build_args="PREFIX=/usr MANDIR=/usr/share/man
|
|
UDEVDIR=/usr/lib/udev/rules.d CUSTOM_ENV=1 BUILD_TESTS=0
|
|
ENABLE_OPTIMIZATIONS=0 DEBUG=0 PYTHON_INTERPRETER=/usr/bin/python3
|
|
DETECT_USERSPACE_ENV=0 PYPKGDIR=/${py3_sitelib}"
|
|
make_install_args="$make_build_args WILL_DEAL_WITH_XDG_MYSELF=1"
|
|
hostmakedepends="pkg-config xdg-utils python3-PyQt5-devel-tools which"
|
|
makedepends="libxml++-devel libdbus-c++-devel libsigc++-devel libconfig++-devel
|
|
jack-devel libavc1394-devel libiec61883-devel libraw1394-devel alsa-lib-devel
|
|
python3-PyQt5-dbus"
|
|
depends="libffado-python"
|
|
short_desc="Library for accessing BeBoB IEEE1394 devices"
|
|
maintainer="Duncaen <mail@duncano.de>"
|
|
license="GPL-2.0-only, GPL-3.0-only"
|
|
homepage="http://www.ffado.org"
|
|
distfiles="http://www.ffado.org/files/libffado-${version}.tgz"
|
|
checksum=3ee19b6841c436dc48a230e127e89e8e7e645073c9e40d8cf7393454f61cd92f
|
|
nocross="Tries to run compiled code to test features"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" argp-standalone" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Requires argp functions
|
|
vsed -i 's;-lffado";-lffado -largp";' support/tools/SConscript
|
|
vsed -i 's;-lpthread";-lpthread -largp";' support/firmware/SConscript
|
|
vsed -i 's;"pthread";"pthread", "argp";' support/dbus/SConscript
|
|
esac
|
|
}
|
|
|
|
post_install() {
|
|
vinstall support/xdg/ffado.org-ffadomixer.desktop 644 usr/share/applications ffadomixer.desktop
|
|
vinstall support/xdg/hi64-apps-ffado.png 644 usr/share/pixmaps ffado.png
|
|
}
|
|
|
|
libffado-python_package() {
|
|
depends="python3-PyQt5-dbus python3-dbus"
|
|
short_desc+=" - python3 bindings"
|
|
pycompile_module="ffado"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
|
|
libffado-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|