From d045baa741139122c7a5359497ae7d5244654077 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Sat, 26 Jun 2021 04:00:10 +0300 Subject: [PATCH] New package: zam-plugins-3.14 --- .../zam-plugins/patches/00-fix-cross.patch | 26 +++++++++++++++++ srcpkgs/zam-plugins/template | 28 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 srcpkgs/zam-plugins/patches/00-fix-cross.patch create mode 100644 srcpkgs/zam-plugins/template diff --git a/srcpkgs/zam-plugins/patches/00-fix-cross.patch b/srcpkgs/zam-plugins/patches/00-fix-cross.patch new file mode 100644 index 000000000000..23f705f1e7e5 --- /dev/null +++ b/srcpkgs/zam-plugins/patches/00-fix-cross.patch @@ -0,0 +1,26 @@ +--- a/zam-plugins/dpf/utils/lv2-ttl-generator/GNUmakefile ++++ b/zam-plugins/dpf/utils/lv2-ttl-generator/GNUmakefile +@@ -20,8 +20,22 @@ endif + + build: ../lv2_ttl_generator + ++ifdef CROSS_BUILD ++ ++HOST_CC := gcc ++HOST_CFLAGS := $(XBPS_CFLAGS) ++HOST_LDFLAGS := $(patsubst -L%, -L/usr/lib, $(LDFLAGS)) ++ ++else ++ ++HOST_CC := $(CC) ++HOST_CFLAGS := $(CFLAGS) ++HOST_LDFLAGS := $(LDFLAGS) ++ ++endif ++ + ../lv2_ttl_generator: lv2_ttl_generator.c +- $(CC) $< $(CFLAGS) -o $@ $(LDFLAGS) ++ $(HOST_CC) $< $(HOST_CFLAGS) -o $@ $(HOST_LDFLAGS) + + endif # WINDOWS + diff --git a/srcpkgs/zam-plugins/template b/srcpkgs/zam-plugins/template new file mode 100644 index 000000000000..a433dce9d35e --- /dev/null +++ b/srcpkgs/zam-plugins/template @@ -0,0 +1,28 @@ +# Template file for 'zam-plugins' +pkgname=zam-plugins +version=3.14 +revision=1 +create_wrksrc=yes +build_wrksrc=${pkgname} +build_style=gnu-makefile +make_use_env=yes +make_build_args="HAVE_ZITA_CONVOLVER=true" +hostmakedepends="pkg-config" +makedepends="libX11-devel libglvnd-devel liblo-devel jack-devel ladspa-sdk + libsamplerate-devel zita-convolver-devel" +# Use system zita-convolver instead of the vendored one +short_desc="LADSPA/LV2/VST/JACK audio plugins for high-quality processing" +maintainer="Artur Sinila " +license="GPL-2.0-or-later" +homepage="http://zamaudio.com/" +changelog="https://raw.githubusercontent.com/zamaudio/zam-plugins/master/changelog" +_dpf_commit="08669d1bc30c6e971fde800eade4ca40104ba8b2" +distfiles="https://github.com/zamaudio/zam-plugins/archive/refs/tags/${version}.tar.gz + https://github.com/DISTRHO/DPF/archive/${_dpf_commit}.tar.gz" +checksum="4a73a73fa03cc6d7faf2d65840349d2a33e7aaef5a13c6345f534b6c434e7b42 + c4359020d1defb7ae2547b5dbdc0cf33f6e0e9cdd3ef75300533b4c4c9f1b9f4" + +post_extract() { + mv ${pkgname}-${version} $pkgname + mv DPF-${_dpf_commit}/* $build_wrksrc/dpf +}