void-packages/srcpkgs/guitarix2/template

41 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'guitarix2'
pkgname=guitarix2
version=0.37.3
revision=4
wrksrc="guitarix-${version}"
build_style=waf
configure_args="--cxxflags-release=-DNDEBUG --ladspa --new-ladspa --no-faust --no-lv2
$(vopt_if avahi '' '--no-avahi') $(vopt_if bluez '' '--no-bluez')"
make_build_args="--progress"
hostmakedepends="gperf intltool pkg-config"
makedepends="boost-devel eigen fftw-devel gtkmm2-devel jack-devel
ladspa-sdk liblrdf-devel libsndfile-devel lilv-devel sratom-devel
zita-convolver-devel zita-resampler-devel
$(vopt_if avahi avahi-glib-libs-devel) $(vopt_if bluez libbluetooth-devel)"
depends="desktop-file-utils"
short_desc="Virtual guitar amplifier running on Jack Audio Connection Kit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://guitarix.org"
distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz"
checksum=4ca93bd4226cd175456f37612acd28b46e13133db61c0f235917dbcc3347d5f1
build_options="avahi bluez"
desc_option_avahi="Build with avahi support"
desc_option_bluez="Build with bluez support"
CXXFLAGS="-fpermissive"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) ;;
*) configure_args+=" --disable-sse" ;;
esac
if [ -n "$CROSS_BUILD" ]; then
post_extract() {
# dont test load the ladspa plugin when cross compiling
sed -i "s/\(features='cxx cshlib\) test_loadable/\1/" src/ladspa/wscript
}
fi