diff --git a/srcpkgs/ardour/patches/6.0-fix-runtime.patch b/srcpkgs/ardour/patches/6.0-fix-runtime.patch index 3b60f99f31..debae965a9 100644 --- a/srcpkgs/ardour/patches/6.0-fix-runtime.patch +++ b/srcpkgs/ardour/patches/6.0-fix-runtime.patch @@ -1,16 +1,11 @@ -diff --git libs/pbd/pbd/pthread_utils.h libs/pbd/pbd/pthread_utils.h -index 6eedbd9..c459a97 100644 ---- libs/pbd/pbd/pthread_utils.h -+++ libs/pbd/pbd/pthread_utils.h -@@ -49,7 +49,7 @@ - #include "pbd/signals.h" +--- libs/pbd/pbd/pthread_utils.h.orig 2020-09-18 22:30:18.353441907 +0700 ++++ libs/pbd/pbd/pthread_utils.h 2020-09-18 22:37:07.059363532 +0700 +@@ -54,7 +54,7 @@ + # define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB + #endif - #define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB -#define PBD_RT_STACKSIZE_HELP 0x08000 // 32kB -+#define PBD_RT_STACKSIZE_HELP PBD_RT_STACKSIZE_PROC ++#define PBD_RT_STACKSIZE_HELP PBD_RT_STACKSIZE_PROC // 32kB /* these are relative to sched_get_priority_max() * see pbd_absolute_rt_priority() --- -2.26.2 - diff --git a/srcpkgs/ardour/patches/do-not-install-wscript.patch b/srcpkgs/ardour/patches/do-not-install-wscript.patch deleted file mode 100644 index c2403e8e09..0000000000 --- a/srcpkgs/ardour/patches/do-not-install-wscript.patch +++ /dev/null @@ -1,22 +0,0 @@ -From a5ec4fa3acd4837e5c5914d9ce67b7bc32d4fcfb Mon Sep 17 00:00:00 2001 -From: Guido Aulisi -Date: Wed, 27 May 2020 17:23:04 +0200 -Subject: [PATCH] Do not install wscript - ---- - share/plugin_metadata/wscript | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git share/plugin_metadata/wscript share/plugin_metadata/wscript -index b7aaa92ac1..9f2559095c 100644 ---- share/plugin_metadata/wscript -+++ share/plugin_metadata/wscript -@@ -9,7 +9,7 @@ def configure(conf): - pass - - def build(bld): -- maps = bld.path.ant_glob ('*') -+ maps = bld.path.ant_glob ('plugin*') - bld.install_files (os.path.join(bld.env['DATADIR'], 'plugin_metadata'), - maps) - diff --git a/srcpkgs/ardour/patches/ppc64.patch b/srcpkgs/ardour/patches/ppc64.patch deleted file mode 100644 index f6344acd95..0000000000 --- a/srcpkgs/ardour/patches/ppc64.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 2a456c19214ce82c257a222e8de31af6113aa8d7 Mon Sep 17 00:00:00 2001 -From: Nils Philippsen -Date: Wed, 3 Jun 2020 10:23:03 +0200 -Subject: [PATCH] Add `cycles_t` type definition on ppc64 - -Signed-off-by: Nils Philippsen ---- - libs/ardour/ardour/cycles.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/libs/ardour/ardour/cycles.h b/libs/ardour/ardour/cycles.h -index 646dd9d67a..ee0f926534 100644 ---- libs/ardour/ardour/cycles.h -+++ libs/ardour/ardour/cycles.h -@@ -74,6 +74,7 @@ static inline cycles_t get_cycles (void) - - #elif defined(__powerpc64__) - -+typedef uint64_t cycles_t; - static inline cycles_t get_cycles(void) - { - #warning You are compiling libardour on a platform for which ardour/cycles.h needs work diff --git a/srcpkgs/ardour/template b/srcpkgs/ardour/template index e9ec7f5562..2b1cbff6d1 100644 --- a/srcpkgs/ardour/template +++ b/srcpkgs/ardour/template @@ -1,22 +1,49 @@ # Template file for 'ardour' pkgname=ardour -version=6.0 +version=6.3.0 revision=1 +wrksrc="Ardour-${version}" build_style=waf3 configure_args="--cxx11 --no-phone-home --with-backends=jack,alsa,dummy - --libjack=weak --optimize --docs --use-external-libs" -hostmakedepends="python3 git graphviz doxygen pkg-config clang perl" + --libjack=weak --optimize --docs --use-external-libs --freedesktop" +hostmakedepends="python3 graphviz doxygen pkg-config clang perl + itstool gettext tar readline-devel" makedepends="boost-devel liblrdf-devel liblo-devel lilv-devel suil-devel taglib-devel aubio-devel rubberband-devel alsa-lib-devel libsndfile-devel vamp-plugin-sdk-devel fftw-devel jack-devel libsamplerate-devel lv2 sratom-devel gtkmm2-devel libarchive-devel fluidsynth-devel hidapi-devel - libltc-devel" + libltc-devel glibmm-devel" short_desc="Professional-grade digital audio workstation" -maintainer="Andrea Brancaleoni " +maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://ardour.org" -nocross="executes test binaries during configure" +distfiles="https://community.ardour.org/src/Ardour-${version}.tar.bz2" +checksum=93418636d7d93f66bdf479ed5bf3c6b0cc0198dc8f76c5555110d3147e4ec74b -do_fetch() { - git clone --depth 1 --branch=$version https://github.com/Ardour/ardour $pkgname-$version +case "$XBPS_TARGET_MACHINE" in + x86_64*) configure_args+=" --dist-target=x86_64" ;; + i686*) configure_args+=" --dist-target=i686" ;; + aarch64*) configure_args+=" --dist-target=aarch64" ;; + ppc64*) configure_args+=" --dist-target=ppc64" ;; + ppc) configure_args+=" --dist-target=ppc" ;; + # Seriously, build system for arm is broken + # They don't use cflags from pkg-config + # We need to append output of + # pkg-config --cflags glibmm-2.4 libxml-2.0 + # into both CFLAGS and CXXFLAGS, and it's still run into failure. + # Maybe better with NEON on, I don't know + arm*) broken="You are compiling libardour on a platform for which ardour/cycles.h needs work" ;; + *) broken="Don't know build target" ;; +esac + +post_install() { + vinstall build/gtk2_ardour/ardour.xml 644 usr/share/mime/packages + vinstall "build/gtk2_ardour/ardour${version%%.*}.desktop" \ + 644 usr/share/applications + for size in 16 22 32 48 256 512; do + vinstall gtk2_ardour/resources/Ardour-icon_${size}px.png 644 \ + usr/share/icons/hicolor/${size}x${size}/apps \ + ardour${version%%.*}.png + done + vman ardour.1 }