From 1da0ef4a05a8fb5b3eb9ecde106c9b41e6f167c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 28 Sep 2015 12:42:23 +0200 Subject: [PATCH] ladspa-sdk: fix cross building --- srcpkgs/ladspa-sdk/patches/fix-cross.patch | 22 ++++++++++++++++++++++ srcpkgs/ladspa-sdk/template | 5 ++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/ladspa-sdk/patches/fix-cross.patch diff --git a/srcpkgs/ladspa-sdk/patches/fix-cross.patch b/srcpkgs/ladspa-sdk/patches/fix-cross.patch new file mode 100644 index 00000000000..5f58c1c8f56 --- /dev/null +++ b/srcpkgs/ladspa-sdk/patches/fix-cross.patch @@ -0,0 +1,22 @@ +--- src/makefile 2007-11-06 11:42:45.000000000 +0100 ++++ src/makefile 2015-09-28 12:37:57.171530771 +0200 +@@ -46,17 +46,8 @@ + # TARGETS + # + +-test: /tmp/test.wav ../snd/noise.wav always +- @echo --------------------------------------------- +- @echo First listen to the white noise input signal: +- @echo --------------------------------------------- +- -sndfile-play ../snd/noise.wav +- @echo ------------------------- +- @echo Compare to plugin output. +- @echo ------------------------- +- @echo Should be a noise band around 6000Hz, repeated quietly after 1s. +- -sndfile-play /tmp/test.wav +- @echo Test complete. ++test: targets ++ @echo No testing. + + install: targets + -mkdirhier $(INSTALL_PLUGINS_DIR) diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template index 1ded830f90b..e0724cd6dac 100644 --- a/srcpkgs/ladspa-sdk/template +++ b/srcpkgs/ladspa-sdk/template @@ -1,11 +1,10 @@ # Template file for 'ladspa-sdk' pkgname=ladspa-sdk version=1.13 -revision=5 +revision=6 noarch=yes wrksrc=ladspa_sdk makedepends="libsndfile-progs" -nocross=yes short_desc="Linux Audio Developer's Simple Plugin API (LADSPA)" maintainer="Juan RP " homepage="http://www.ladspa.org/" @@ -14,7 +13,7 @@ distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz" checksum=b5ed3f4f253a0f6c1b7a1f4b8cf62376ca9f51d999650dd822650c43852d306b do_build() { - make CC=$CC LD=$LD -C src + make CC=$CC CPP=$CXX LD=$LD -C src } do_install() {