Date: Saturday, February 19, 2022 @ 12:20:56 Author: dvzrv Revision: 1134858
archrelease: copy trunk to community-x86_64 Added: pd-gem/repos/community-x86_64/PKGBUILD (from rev 1134857, pd-gem/trunk/PKGBUILD) pd-gem/repos/community-x86_64/pd-gem-0.94-error.patch (from rev 1134857, pd-gem/trunk/pd-gem-0.94-error.patch) Deleted: pd-gem/repos/community-x86_64/PKGBUILD -------------------------+ PKGBUILD | 90 ++++++++++----------- pd-gem-0.94-error.patch | 195 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 240 insertions(+), 45 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-19 12:20:47 UTC (rev 1134857) +++ PKGBUILD 2022-02-19 12:20:56 UTC (rev 1134858) @@ -1,45 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=Gem -pkgname=pd-gem -pkgver=0.94 -pkgrel=9 -pkgdesc="Graphics Environment for Multimedia" -arch=(x86_64) -url="https://github.com/umlaeute/Gem" -license=(GPL2) -groups=(pd-externals) -# TODO: potentially add gmerlin, libmpeg3 and glewmx (if that's still a thing) -depends=(assimp ftgl glew libdv libiec61883 pd sdl2 ttf-dejavu zlib) -makedepends=(imagemagick libvncserver vlc) -optdepends=('vlc: video capture support' - 'libvncserver: video capture support' - 'imagemagick: image processing support') -source=( - "$pkgname-$pkgver.tar.gz::https://github.com/umlaeute/${_name}/archive/v${pkgver}.tar.gz" - "$pkgname-0.94-error.patch::https://salsa.debian.org/multimedia-team/pd/gem/-/raw/master/debian/patches/pd_error.patch" -) -sha512sums=('356e4f2a27131f927cd5d20ba9010088cc22930f313f61f54dd107db041b6cb2042ab5d530bae069e3ccdccd0a8fed1152631c6f187f4f4602f37d763356d316' - '7a5cb47fdf33cdfb0a9879b1bfc56861c7c3f802b2b8c50226bedda101e46bb7c998054e9c80a84747712ed0222062208f1568076fe8d839902d3a792c8c6c08') -b2sums=('1ca45c5a71e094aef04778538e6d0c83f4b13f233e6038507d5510ca904476f19ed1e70c011796e66e3688f8a8b40b13f823678b6b1baba877ac0b67eb9c6698' - 'd3f07dc907f381480e1e0309883b658fe1a6647bd52b0146b3849c76cf0274c3878d1b5ba134956c31b9b15543ac7508a1985ae056571f649c18c7ed37ee3e4c') - -prepare() { - cd "${_name}-${pkgver}" - # fix issues with error() calls: https://github.com/umlaeute/Gem/issues/287 - patch -Np1 -i ../"$pkgname-0.94-error.patch" - autoreconf -fiv -} - -build() { - cd "${_name}-${pkgver}" - ./configure --prefix=/usr \ - --with-default-font=/usr/share/fonts/TTF/DejaVuSans.ttf - # prevent excessive overlinking due to libtool - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make -} - -package() { - make DESTDIR="$pkgdir/" install -C "${_name}-${pkgver}" -} Copied: pd-gem/repos/community-x86_64/PKGBUILD (from rev 1134857, pd-gem/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-19 12:20:56 UTC (rev 1134858) @@ -0,0 +1,45 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=Gem +pkgname=pd-gem +pkgver=0.94 +pkgrel=10 +pkgdesc="Graphics Environment for Multimedia" +arch=(x86_64) +url="https://github.com/umlaeute/Gem" +license=(GPL2) +groups=(pd-externals) +# TODO: potentially add gmerlin, libmpeg3 and glewmx (if that's still a thing) +depends=(assimp ftgl glew libdv libiec61883 pd sdl2 ttf-dejavu zlib) +makedepends=(imagemagick libvncserver vlc) +optdepends=('vlc: video capture support' + 'libvncserver: video capture support' + 'imagemagick: image processing support') +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/umlaeute/${_name}/archive/v${pkgver}.tar.gz" + "$pkgname-0.94-error.patch" +) +sha512sums=('356e4f2a27131f927cd5d20ba9010088cc22930f313f61f54dd107db041b6cb2042ab5d530bae069e3ccdccd0a8fed1152631c6f187f4f4602f37d763356d316' + '314fab766e93edfb41b3a97dce4d570dacb04390caf7e7f8aac86a2ad927029cad529d58302d65fb3453a2f9c6a03d361521a28db1933a6973087ea5f6f0320a') +b2sums=('1ca45c5a71e094aef04778538e6d0c83f4b13f233e6038507d5510ca904476f19ed1e70c011796e66e3688f8a8b40b13f823678b6b1baba877ac0b67eb9c6698' + '2fab38f8ecaf99dc092017fef9a137943a66a9e5d8700455689f52a5ec485c997283abe81c892769671daf580820894ad78b62b9615ca92e6901919f55a33250') + +prepare() { + cd "${_name}-${pkgver}" + # fix issues with error() calls: https://github.com/umlaeute/Gem/issues/287 + patch -Np1 -i ../"$pkgname-0.94-error.patch" + autoreconf -fiv +} + +build() { + cd "${_name}-${pkgver}" + ./configure --prefix=/usr \ + --with-default-font=/usr/share/fonts/TTF/DejaVuSans.ttf + # prevent excessive overlinking due to libtool + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +package() { + make DESTDIR="$pkgdir/" install -C "${_name}-${pkgver}" +} Copied: pd-gem/repos/community-x86_64/pd-gem-0.94-error.patch (from rev 1134857, pd-gem/trunk/pd-gem-0.94-error.patch) =================================================================== --- pd-gem-0.94-error.patch (rev 0) +++ pd-gem-0.94-error.patch 2022-02-19 12:20:56 UTC (rev 1134858) @@ -0,0 +1,195 @@ +From: Debian Multimedia Maintainers <debian-multime...@lists.debian.org> +Date: Mon, 14 Feb 2022 13:43:21 +0100 +Subject: error() -> pd_error() + +Origin: upstream +Forwarded: not-needed +Last-Update: 2021-12-20 + +Pd>=0.52 has dropped error() from its public API +Last-Update: 2021-12-20 +--- + plugins/modelOBJ/model_loader.cpp | 2 +- + plugins/recordQT/recordQT.cpp | 2 +- + plugins/videoVNC/videoVNC.cpp | 2 +- + src/Base/GemWinCreateXWin.cpp | 2 +- + src/Gem/Event.cpp | 2 +- + src/Gem/Exception.cpp | 2 +- + src/Gem/Image.cpp | 2 +- + src/Gem/PixConvertSSE2.cpp | 2 +- + src/Gem/RTE.h | 3 +++ + src/Gem/Setup.cpp | 2 +- + src/Gem/VertexBuffer.cpp | 2 +- + src/RTE/RTE.h | 4 ++++ + src/Utils/GemString.cpp | 2 +- + 13 files changed, 18 insertions(+), 11 deletions(-) + +diff --git a/plugins/modelOBJ/model_loader.cpp b/plugins/modelOBJ/model_loader.cpp +index b6bb4cc..8b36b02 100644 +--- a/plugins/modelOBJ/model_loader.cpp ++++ b/plugins/modelOBJ/model_loader.cpp +@@ -13,7 +13,7 @@ + #define _CRT_SECURE_NO_WARNINGS + #include "model_loader.h" + /* for post(), error(),... */ +-#include "m_pd.h" ++#include "Gem/RTE.h" + #include "Gem/GemGL.h" + + #include <string> +diff --git a/plugins/recordQT/recordQT.cpp b/plugins/recordQT/recordQT.cpp +index 62b1963..8e33f95 100644 +--- a/plugins/recordQT/recordQT.cpp ++++ b/plugins/recordQT/recordQT.cpp +@@ -33,7 +33,7 @@ using namespace gem::plugins; + #include <stdio.h> + + /* for post() and error() */ +-#include "m_pd.h" ++#include "Gem/RTE.h" + + static char* FourCC2Str(int code, char*char5) { + char5[0] = (code >> 24) & 0xFF; +diff --git a/plugins/videoVNC/videoVNC.cpp b/plugins/videoVNC/videoVNC.cpp +index 190886a..1b48d9a 100644 +--- a/plugins/videoVNC/videoVNC.cpp ++++ b/plugins/videoVNC/videoVNC.cpp +@@ -1,7 +1,7 @@ + #include "videoVNC.h" + #include "plugins/PluginFactory.h" + +-#include <m_pd.h> ++#include "Gem/RTE.h" + + using namespace gem::plugins; + +diff --git a/src/Base/GemWinCreateXWin.cpp b/src/Base/GemWinCreateXWin.cpp +index 6aa2c94..002ae4e 100644 +--- a/src/Base/GemWinCreateXWin.cpp ++++ b/src/Base/GemWinCreateXWin.cpp +@@ -23,7 +23,7 @@ + + #include "GemWinCreate.h" + +-#include <m_pd.h> ++#include "Gem/RTE.h" + #include <X11/cursorfont.h> + #include <stdio.h> + #include <stdlib.h> +diff --git a/src/Gem/Event.cpp b/src/Gem/Event.cpp +index 979cd3c..14ad116 100644 +--- a/src/Gem/Event.cpp ++++ b/src/Gem/Event.cpp +@@ -18,7 +18,7 @@ + #include "Event.h" + + #include <stdlib.h> +-#include "m_pd.h" ++#include "Gem/RTE.h" + + ///////////////////////////////////////////////////////// + // The callbacks +diff --git a/src/Gem/Exception.cpp b/src/Gem/Exception.cpp +index 6bc0346..d9858db 100644 +--- a/src/Gem/Exception.cpp ++++ b/src/Gem/Exception.cpp +@@ -17,7 +17,7 @@ + #include "Exception.h" + + // for error() +-#include "m_pd.h" ++#include "Gem/RTE.h" + #include <string.h> + #include <stdlib.h> + +diff --git a/src/Gem/Image.cpp b/src/Gem/Image.cpp +index 4c6d1e0..b2ee1e8 100644 +--- a/src/Gem/Image.cpp ++++ b/src/Gem/Image.cpp +@@ -23,7 +23,7 @@ + # pragma warning( disable : 4091 ) + #endif + +-#include "m_pd.h" ++#include "Gem/RTE.h" + #include "Image.h" + #include "GemGL.h" + #include "PixConvert.h" +diff --git a/src/Gem/PixConvertSSE2.cpp b/src/Gem/PixConvertSSE2.cpp +index 50e95ce..e30a840 100644 +--- a/src/Gem/PixConvertSSE2.cpp ++++ b/src/Gem/PixConvertSSE2.cpp +@@ -35,7 +35,7 @@ + + + /* for post() */ +-#include "m_pd.h" ++#include "Gem/RTE.h" + + /* just some debugging stuff ... */ + +diff --git a/src/Gem/RTE.h b/src/Gem/RTE.h +index a9820b9..e6e89ee 100644 +--- a/src/Gem/RTE.h ++++ b/src/Gem/RTE.h +@@ -27,5 +27,8 @@ + + #define GEMMARK() verbose(2, "%s:%d[%s]", __FILE__, __LINE__, __FUNCTION__) + ++#if (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION >= 52) ++extern "C" { EXTERN void error(const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2); }; ++#endif + + #endif /* _INCLUDE__GEM_GEM_RTE_H_ */ +diff --git a/src/Gem/Setup.cpp b/src/Gem/Setup.cpp +index 3e28e3c..72bd789 100644 +--- a/src/Gem/Setup.cpp ++++ b/src/Gem/Setup.cpp +@@ -68,7 +68,7 @@ static const char *GEM_AUTHORS[] = { + static const char GEM_OTHERAUTHORS[] = + "Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al."; + +-# include "m_pd.h" ++# include "Gem/RTE.h" + # include "RTE/RTE.h" + + #if defined HAVE_M_IMP_H +diff --git a/src/Gem/VertexBuffer.cpp b/src/Gem/VertexBuffer.cpp +index 2fd64da..772c035 100644 +--- a/src/Gem/VertexBuffer.cpp ++++ b/src/Gem/VertexBuffer.cpp +@@ -17,7 +17,7 @@ + #include "VertexBuffer.h" + + /* for post(), error(),... */ +-#include "m_pd.h" ++#include "Gem/RTE.h" + + gem::VertexBuffer:: VertexBuffer() : + size(0), +diff --git a/src/RTE/RTE.h b/src/RTE/RTE.h +index 1f28c60..86f41d5 100644 +--- a/src/RTE/RTE.h ++++ b/src/RTE/RTE.h +@@ -64,4 +64,8 @@ public: + }; + }; + }; ++ ++#if (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION >= 52) ++extern "C" { EXTERN void error(const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2); }; ++#endif + #endif /* _INCLUDE__GEM_RTE_RTE_H_ */ +diff --git a/src/Utils/GemString.cpp b/src/Utils/GemString.cpp +index 07b0591..2e08380 100644 +--- a/src/Utils/GemString.cpp ++++ b/src/Utils/GemString.cpp +@@ -12,7 +12,7 @@ typedef unsigned __int8 uint8_t; + #ifdef HAVE_FRIBIDI_H + # include <fribidi.h> + +-#include "m_pd.h" ++#include "Gem/RTE.h" + + namespace gem + {