diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template new file mode 100644 index 00000000000..f4320a1eb11 --- /dev/null +++ b/srcpkgs/guitarix2/template @@ -0,0 +1,35 @@ +# Template file for 'guitarix2' +pkgname=guitarix2 +version=0.36.1 +revision=1 +wrksrc="guitarix-${version}" +build_style=waf +configure_args="--no-faust --no-lv2" +hostmakedepends="python pkg-config intltool gperf" +makedepends="boost-devel gtkmm2-devel liblrdf-devel eigen + libbluetooth-devel zita-convolver-devel zita-resampler-devel jack-devel + libsndfile-devel fftw-devel ladspa-sdk lilv-devel sratom-devel avahi-glib-libs-devel" +depends="desktop-file-utils" +maintainer="cr6git " +short_desc="Virtual guitar amplifier running on Jack Audio Connection Kit" +homepage="http://guitarix.org" +license="GPL-2" +distfiles="${SOURCEFORGE_SITE}/guitarix/guitarix/guitarix2-${version}.tar.xz" +checksum=608d641bebed88691b2f2154606bc99d0785565b6c0e2d7b29c70ac86522a9bc + +CFLAGS="-fpermissive" +CXXFLAGS="-fpermissive" + +case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*) ;; + *) configure_args+=" --disable-sse" ;; +esac + +if [ -n "$CROSS_BUILD" ]; then + CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/raptor2" + post_extract() { + # don’t test load the ladspa plugin when cross compiling + sed -i -e "s/\(features='cxx cshlib\) test_loadable/\1/" src/ladspa/wscript + } +fi +