summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/opusfile/package.sh11
-rw-r--r--Ports/opusfile/patches/0001-http.c-Remove-include-ctype.h.patch26
-rw-r--r--Ports/opusfile/patches/ReadMe.md12
4 files changed, 50 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index a3532dbc3d..08e0759f25 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -207,6 +207,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`opentyrian-data`](opentyrian-data/) | OpenTyrian graphics and audio | 1.0.0 | https://camanis.net/tyrian/tyrian21.zip |
| [`opfor`](opfor/) | Half-Life: Opposing Force | 2022.12.26 | https://github.com/FWGS/hlsdk-portable |
| [`optipng`](optipng/) | OptiPNG | 0.7.7 | http://optipng.sourceforge.net/ |
+| [`opusfile`](opusfile/) | opusfile | 0.12 | https://opus-codec.org/ |
| [`p7zip`](p7zip/) | p7zip | 17.04 | https://github.com/jinfeihan57/p7zip |
| [`pacman`](pacman/) | Pacman | b6241a3 | https://github.com/ebuc99/pacman |
| [`patch`](patch/) | patch (GNU) | 2.7.6 | https://savannah.gnu.org/projects/patch/ |
diff --git a/Ports/opusfile/package.sh b/Ports/opusfile/package.sh
new file mode 100755
index 0000000000..2906185eb7
--- /dev/null
+++ b/Ports/opusfile/package.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port='opusfile'
+version='0.12'
+useconfigure='true'
+use_fresh_config_sub='true'
+files="https://downloads.xiph.org/releases/opus/opusfile-${version}.tar.gz opusfile-${version}.tar.gz 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b"
+auth_type='sha256'
+depends=(
+ 'libogg'
+ 'libopus'
+)
diff --git a/Ports/opusfile/patches/0001-http.c-Remove-include-ctype.h.patch b/Ports/opusfile/patches/0001-http.c-Remove-include-ctype.h.patch
new file mode 100644
index 0000000000..70923c5ef1
--- /dev/null
+++ b/Ports/opusfile/patches/0001-http.c-Remove-include-ctype.h.patch
@@ -0,0 +1,26 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Kenneth Myhra <kennethmyhra@gmail.com>
+Date: Thu, 4 May 2023 08:36:51 +0200
+Subject: [PATCH] [http.c] Remove #include <ctype.h>
+
+This simply removes the include statement for ctype.h. opusfile is not
+very happy about our ctype.h because it contains static inline
+definitions.
+
+Also removing it does not hurt since we can compile fine without it.
+---
+ src/http.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/http.c b/src/http.c
+index bd0856270a2108db175f4c00508e221e616801dd..aca5b381df0fd2b4f18ad45a9f446a098d57c9f6 100644
+--- a/src/http.c
++++ b/src/http.c
+@@ -14,7 +14,6 @@
+ #endif
+
+ #include "internal.h"
+-#include <ctype.h>
+ #include <errno.h>
+ #include <limits.h>
+ #include <string.h>
diff --git a/Ports/opusfile/patches/ReadMe.md b/Ports/opusfile/patches/ReadMe.md
new file mode 100644
index 0000000000..1788e2a867
--- /dev/null
+++ b/Ports/opusfile/patches/ReadMe.md
@@ -0,0 +1,12 @@
+# Patches for opusfile on SerenityOS
+
+## `0001-http.c-Remove-include-ctype.h.patch`
+
+Remove #include <ctype.h>
+
+This simply removes the include statement for ctype.h. opusfile is not
+very happy about our ctype.h because it contains static inline
+definitions.
+
+Also removing it does not hurt since we can compile fine without it.
+