Ports: Add opusfile 0.12

This commit is contained in:
Kenneth Myhra 2023-05-04 17:34:01 +02:00 committed by Jelle Raaijmakers
parent 748289211a
commit 4eaac2ff1e
4 changed files with 50 additions and 0 deletions

View file

@ -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/ |

11
Ports/opusfile/package.sh Executable file
View file

@ -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'
)

View file

@ -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>

View file

@ -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.