From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- skip/guitarix/guitarix-0.43.1-glib2.patch | 15 +++++++++++++++ skip/guitarix/guitarix.xibuild | 27 +++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 skip/guitarix/guitarix-0.43.1-glib2.patch create mode 100644 skip/guitarix/guitarix.xibuild (limited to 'skip/guitarix') diff --git a/skip/guitarix/guitarix-0.43.1-glib2.patch b/skip/guitarix/guitarix-0.43.1-glib2.patch new file mode 100644 index 0000000..41ae018 --- /dev/null +++ b/skip/guitarix/guitarix-0.43.1-glib2.patch @@ -0,0 +1,15 @@ +diff -ruN a/src/headers/gx_system.h b/src/headers/gx_system.h +--- a/src/headers/gx_system.h 2021-12-10 18:53:33.000000000 +0100 ++++ b/src/headers/gx_system.h 2022-04-28 11:23:16.176694581 +0200 +@@ -112,7 +112,11 @@ + } + + inline bool atomic_compare_and_exchange(volatile int *p, int oldv, int newv) { ++#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 68 && GLIB_MICRO_VERSION < 1) + return g_atomic_int_compare_and_exchange(p, oldv, newv); ++#else ++ return g_atomic_int_compare_and_exchange(const_cast(p), oldv, newv); ++#endif + } + + template diff --git a/skip/guitarix/guitarix.xibuild b/skip/guitarix/guitarix.xibuild new file mode 100644 index 0000000..ece8baa --- /dev/null +++ b/skip/guitarix/guitarix.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="guitarix" +DESC="A simple mono guitar amplifier and FX for JACK using Faust" + +MAKEDEPS="make atkmm cairo cairomm glibmm gtkmm3 libsigc++ libx11 pangomm lv2 fftw gperf gtk3 intltool liblo lilv waf " + +PKG_VER=0.44.1 +SOURCE="https://download.sourceforge.net/project/guitarix/guitarix/guitarix2-$PKG_VER.tar.xz" +ADDITIONAL="guitarix-0.43.1-glib2.patch " + +build () { + waf configure \ + --prefix=/usr \ + --enable-nls \ + --ladspa \ + --new-ladspa \ + --shared-lib \ + --lib-dev \ + --cxxflags='-flto' \ + --ldflags="$LDFLAGS" + waf build -vv +} + +package () { + waf install --destdir="$PKG_DEST" +} -- cgit v1.2.1