From 14238da08a27b13e8057336bdfce0234e937a8fb Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Fri, 29 Jun 2018 21:49:13 +0200 Subject: [PATCH] abGate: update to 1.1.9. (#457) --- srcpkgs/abGate/patches/Makefile.patch | 26 ++++++++++++++++++++++++++ srcpkgs/abGate/template | 16 ++++++++-------- 2 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/abGate/patches/Makefile.patch diff --git a/srcpkgs/abGate/patches/Makefile.patch b/srcpkgs/abGate/patches/Makefile.patch new file mode 100644 index 00000000000..eb30dae273c --- /dev/null +++ b/srcpkgs/abGate/patches/Makefile.patch @@ -0,0 +1,26 @@ +--- Makefile 2018-06-27 09:47:49.602920765 +0000 ++++ - 2018-06-27 09:48:44.684191018 +0000 +@@ -10,7 +10,7 @@ + cp $^ $(BUNDLE) + + abGateQt/libabGateQt.so: +- cd abGateQt; qmake; make ++ cd abGateQt; qmake-qt5 QMAKE_CC=$(CC) QMAKE_CXX=$(CXX) QMAKE_LINK=$(CXX); make CC=$(CC) CXX=$(CXX) LINK=$(CXX) + + gate.so: gate.cpp + g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `pkg-config --cflags --libs lv2` -o gate.so +--- Makefile 2018-06-27 09:50:25.705750049 +0000 ++++ - 2018-06-27 09:50:52.610670910 +0000 +@@ -13,10 +13,10 @@ + cd abGateQt; qmake-qt5 QMAKE_CC="$(CC)" QMAKE_CXX="$(CXX)" QMAKE_LINK="$(CXX)"; make CC="$(CC)" CXX="$(CXX)" LINK="$(CXX)" + + gate.so: gate.cpp +- g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `pkg-config --cflags --libs lv2` -o gate.so ++ $(CXX) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate.cpp `pkg-config --cflags --libs lv2` -o gate.so + + gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h plugin_configuration.h +- g++ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so ++ $(CXX) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -O3 -shared -fPIC -DPIC -Wl,--as-needed gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so + + all: $(BUNDLE) + diff --git a/srcpkgs/abGate/template b/srcpkgs/abGate/template index 6b77d612276..6cd8e491840 100644 --- a/srcpkgs/abGate/template +++ b/srcpkgs/abGate/template @@ -1,18 +1,18 @@ # Template file for 'abGate' pkgname=abGate -version=1.1.8 +version=1.1.9 revision=1 build_style=gnu-makefile -hostmakedepends="pkg-config" -makedepends="qt-devel gtkmm2-devel lv2" +hostmakedepends="pkg-config qt5-qmake qt5-host-tools" +makedepends="qt5-devel gtkmm2-devel lv2" depends="lv2" short_desc="LV2 Noise Gate plugin" maintainer="Juan RP " -license="GPL-3" +license="LGPL-3.0-or-later" homepage="http://abgate.sourceforge.net/" distfiles="https://github.com/antanasbruzas/abGate/archive/v${version}.tar.gz" -checksum=6313f60b3e137f68b24ce30612187101c63cbdbe6291361656472380b2b8f797 +checksum=898b50cce44dffedd82ec0e6d6d043a9d26534fbf07898d099575ea4c1057721 -pre_build() { - sed -e 's,qmake-qt4,qmake,g' -i Makefile -} +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-devel" +fi