summaryrefslogtreecommitdiff
path: root/repo/caps
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/caps
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/caps')
-rw-r--r--repo/caps/caps.xibuild29
-rw-r--r--repo/caps/fix-cstdint-missing.patch33
2 files changed, 62 insertions, 0 deletions
diff --git a/repo/caps/caps.xibuild b/repo/caps/caps.xibuild
new file mode 100644
index 0000000..7e08c48
--- /dev/null
+++ b/repo/caps/caps.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="caps"
+DESC="The LADSPA C* Audio Plugin Suite"
+
+MAKEDEPS="make ladspa "
+
+PKG_VER=0.9.26
+SOURCE="http://quitte.de/dsp/caps_${PKG_VER}.tar.bz2"
+ADDITIONAL="
+fix-cstdint-missing.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make PREFIX=$PKG_DEST/usr install
+}
diff --git a/repo/caps/fix-cstdint-missing.patch b/repo/caps/fix-cstdint-missing.patch
new file mode 100644
index 0000000..1cb69fd
--- /dev/null
+++ b/repo/caps/fix-cstdint-missing.patch
@@ -0,0 +1,33 @@
+--- build/basics.h 2023-01-28 14:09:49.976317796 +0000
++++ build.orig/basics.h 2023-01-28 14:08:45.279312604 +0000
+@@ -38,6 +38,7 @@
+ #define _ISOC99_SOURCE 1
+ #define _ISOC9X_SOURCE 1
+
++#include <cstdint>
+ #include <stdlib.h>
+ #include <string.h>
+
+@@ -50,14 +49,14 @@
+
+ #include "ladspa.h"
+
+-typedef __int8_t int8;
+-typedef __uint8_t uint8;
+-typedef __int16_t int16;
+-typedef __uint16_t uint16;
+-typedef __int32_t int32;
+-typedef __uint32_t uint32;
+-typedef __int64_t int64;
+-typedef __uint64_t uint64;
++typedef int8_t int8;
++typedef uint8_t uint8;
++typedef int16_t int16;
++typedef uint16_t uint16;
++typedef int32_t int32;
++typedef uint32_t uint32;
++typedef int64_t int64;
++typedef uint64_t uint64;
+
+ #define MIN_GAIN 1e-6 /* -120 dB */
+ /* smallest non-denormal 32 bit IEEE float is 1.18e-38 */