50 lines
2.0 KiB
Bash
50 lines
2.0 KiB
Bash
# Template file for 'ardour'
|
|
pkgname=ardour
|
|
version=6.3.0
|
|
revision=1
|
|
wrksrc="Ardour-${version}"
|
|
build_style=waf3
|
|
configure_args="--cxx11 --no-phone-home --with-backends=jack,alsa,dummy
|
|
--libjack=weak --optimize --docs --use-external-libs --freedesktop"
|
|
hostmakedepends="python3 graphviz doxygen pkg-config clang perl
|
|
itstool gettext tar readline-devel"
|
|
makedepends="boost-devel liblrdf-devel liblo-devel lilv-devel suil-devel
|
|
taglib-devel aubio-devel rubberband-devel alsa-lib-devel libsndfile-devel
|
|
vamp-plugin-sdk-devel fftw-devel jack-devel libsamplerate-devel lv2
|
|
sratom-devel gtkmm2-devel libarchive-devel fluidsynth-devel hidapi-devel
|
|
libltc-devel glibmm-devel"
|
|
short_desc="Professional-grade digital audio workstation"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://ardour.org"
|
|
distfiles="https://community.ardour.org/src/Ardour-${version}.tar.bz2"
|
|
checksum=93418636d7d93f66bdf479ed5bf3c6b0cc0198dc8f76c5555110d3147e4ec74b
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) configure_args+=" --dist-target=x86_64" ;;
|
|
i686*) configure_args+=" --dist-target=i686" ;;
|
|
aarch64*) configure_args+=" --dist-target=aarch64" ;;
|
|
ppc64*) configure_args+=" --dist-target=ppc64" ;;
|
|
ppc*) configure_args+=" --dist-target=ppc" ;;
|
|
# Seriously, build system for arm is broken
|
|
# They don't use cflags from pkg-config
|
|
# We need to append output of
|
|
# pkg-config --cflags glibmm-2.4 libxml-2.0
|
|
# into both CFLAGS and CXXFLAGS, and it's still run into failure.
|
|
# Maybe better with NEON on, I don't know
|
|
arm*) broken="You are compiling libardour on a platform for which ardour/cycles.h needs work" ;;
|
|
*) broken="Don't know build target" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
vinstall build/gtk2_ardour/ardour.xml 644 usr/share/mime/packages
|
|
vinstall "build/gtk2_ardour/ardour${version%%.*}.desktop" \
|
|
644 usr/share/applications
|
|
for size in 16 22 32 48 256 512; do
|
|
vinstall gtk2_ardour/resources/Ardour-icon_${size}px.png 644 \
|
|
usr/share/icons/hicolor/${size}x${size}/apps \
|
|
ardour${version%%.*}.png
|
|
done
|
|
vman ardour.1
|
|
}
|