From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001
From: davidovski <david@davidovski.xyz>
Date: Thu, 2 Feb 2023 14:10:02 +0000
Subject: Work

---
 repo/pvoc/fix-cstdint-missing.patch | 33 +++++++++++++++++++++++++++++++++
 repo/pvoc/pvoc.xibuild              | 22 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 repo/pvoc/fix-cstdint-missing.patch
 create mode 100644 repo/pvoc/pvoc.xibuild

(limited to 'repo/pvoc')

diff --git a/repo/pvoc/fix-cstdint-missing.patch b/repo/pvoc/fix-cstdint-missing.patch
new file mode 100644
index 0000000..785288c
--- /dev/null
+++ b/repo/pvoc/fix-cstdint-missing.patch
@@ -0,0 +1,33 @@
+--- build.orig/basics.h	2023-01-28 23:45:55.808091774 +0000
++++ build/basics.h	2023-01-28 23:47:00.731096985 +0000
+@@ -38,6 +38,7 @@
+ #define _ISOC99_SOURCE 1
+ #define _ISOC9X_SOURCE 1
+ 
++#include <cstdint>
+ #include <malloc.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -77,14 +78,14 @@
+ #define MIN_GAIN .000001 /* -120 dB */
+ #define NOISE_FLOOR .00000000000005 /* -266 dB */
+ 
+-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;
+ 
+ typedef struct {
+ 	const char * name;
diff --git a/repo/pvoc/pvoc.xibuild b/repo/pvoc/pvoc.xibuild
new file mode 100644
index 0000000..133ead0
--- /dev/null
+++ b/repo/pvoc/pvoc.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="pvoc"
+DESC="LADSPLA plugins and a tool for time compression/expansion using phase-vocoding"
+
+MAKEDEPS="make fftw libsndfile ladspa "
+
+PKG_VER=0.1.12
+SOURCE="http://quitte.de/dsp/pvoc_${PKG_VER}.tar.gz"
+ADDITIONAL="fix-cstdint-missing.patch"
+
+prepare () {
+    apply_patches
+}
+
+build () {
+    make PREFIX=/usr
+}
+
+package () {
+    make PREFIX=$PKG_DEST/usr install
+}
-- 
cgit v1.2.1