From 3356240074fe1f40592f17b466bf1ad47554400a Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 10 Nov 2020 22:24:10 +0100 Subject: [PATCH] New package: geonkick-2.7.0 closes https://github.com/void-linux/void-packages/issues/20957 --- srcpkgs/geonkick/patches/musl.patch | 39 +++++++++++++++++++++++++++++ srcpkgs/geonkick/template | 24 ++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 srcpkgs/geonkick/patches/musl.patch create mode 100644 srcpkgs/geonkick/template diff --git a/srcpkgs/geonkick/patches/musl.patch b/srcpkgs/geonkick/patches/musl.patch new file mode 100644 index 00000000000..281752a92ec --- /dev/null +++ b/srcpkgs/geonkick/patches/musl.patch @@ -0,0 +1,39 @@ +diff --git dsp/src/compressor.h dsp/src/compressor.h +index 2b246be..e6cac5d 100644 +--- dsp/src/compressor.h ++++ dsp/src/compressor.h +@@ -26,6 +26,8 @@ + + #include "geonkick_internal.h" + ++#include ++ + struct gkick_compressor { + int enabled; + +diff --git dsp/src/distortion.h dsp/src/distortion.h +index 4e42f11..b06e6e5 100644 +--- dsp/src/distortion.h ++++ dsp/src/distortion.h +@@ -26,6 +26,8 @@ + + #include "geonkick_internal.h" + ++#include ++ + struct gkick_distortion { + int enabled; + /* Input limiter for distortion. */ +diff --git dsp/src/synthesizer.h dsp/src/synthesizer.h +index 303f810..d4d4f9b 100644 +--- dsp/src/synthesizer.h ++++ dsp/src/synthesizer.h +@@ -31,6 +31,8 @@ + + #include + ++#include ++ + struct gkick_synth { + atomic_size_t id; + char name[30]; diff --git a/srcpkgs/geonkick/template b/srcpkgs/geonkick/template new file mode 100644 index 00000000000..e611fe0dd92 --- /dev/null +++ b/srcpkgs/geonkick/template @@ -0,0 +1,24 @@ +# Template file for 'geonkick' +pkgname=geonkick +version=2.7.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config tar xz redkite" +makedepends="redkite-devel jack-devel libsndfile-devel rapidjson + lv2 libX11-devel cairo-devel" +short_desc="Free software percussion synthesizer" +maintainer="teldra " +license="GPL-3.0-or-later" +homepage="https://github.com/iurie-sw/geonkick" +distfiles="https://github.com/iurie-sw/geonkick/archive/v${version}.tar.gz" +checksum=c333da9f8db3eb71519a8920e8cc05525754c3a71f9c68ae16b55690d03fb9d4 +make_check=extended # No target to "ninja test". + +if [[ ! ${XBPS_TARGET_MACHINE} == "x86_64" ]]; then + configure_args+=" -DGKICK_ARCHITECTURE=$XBPS_TARGET_MACHINE" +fi + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + configure_args+=" -DCMAKE_EXE_LINKER_FLAGS='-latomic'" +fi