From 4eaac2ff1e59d210bffe10e9bb2cfd5b21b6132f Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Thu, 4 May 2023 17:34:01 +0200 Subject: [PATCH] Ports: Add opusfile 0.12 --- Ports/AvailablePorts.md | 1 + Ports/opusfile/package.sh | 11 ++++++++ .../0001-http.c-Remove-include-ctype.h.patch | 26 +++++++++++++++++++ Ports/opusfile/patches/ReadMe.md | 12 +++++++++ 4 files changed, 50 insertions(+) create mode 100755 Ports/opusfile/package.sh create mode 100644 Ports/opusfile/patches/0001-http.c-Remove-include-ctype.h.patch create mode 100644 Ports/opusfile/patches/ReadMe.md diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index a3532dbc3db..08e0759f25b 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 00000000000..2906185eb71 --- /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 00000000000..70923c5ef1e --- /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 +Date: Thu, 4 May 2023 08:36:51 +0200 +Subject: [PATCH] [http.c] Remove #include + +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 + #include + #include + #include diff --git a/Ports/opusfile/patches/ReadMe.md b/Ports/opusfile/patches/ReadMe.md new file mode 100644 index 00000000000..1788e2a8676 --- /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 + +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. +