summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorAnicJov <contact.andrija@gmail.com>2021-03-08 16:04:27 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-09 07:29:35 +0100
commit68f2ef10973ba61941585ba83b4c1c68d4c31208 (patch)
tree5c6eb34b6031d29d6e40fe021ec849eb54b53ff8 /Ports
parent389dddd4b372b3d29e1629a97315e7432e3f04f1 (diff)
downloadserenity-68f2ef10973ba61941585ba83b4c1c68d4c31208.zip
Ports: Add libogg
This library will allow us to port more multimedia programs and games, since it's a common dependency of such projects. I was looking at Scummvm's dependencies in particular, with a goal of porting them all eventually, so that we can have Myst running in Serenity!
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rw-r--r--Ports/libogg/package.sh6
-rw-r--r--Ports/libogg/patches/configure.patch12
3 files changed, 19 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index b5d2fe2a13..3b66754b06 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -39,6 +39,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`libffi`](libffi/) | libffi | 3.3 | https://www.sourceware.org/libffi/ |
| [`libiconv`](libiconv/) | GNU libiconv | 1.16 | https://www.gnu.org/software/libiconv/ |
| [`libjpeg`](libjpeg/) | libjpeg | 9d | https://ijg.org/ |
+| [`libogg`](libogg/) | libogg | 1.3.4 | https://github.com/xiph/ogg |
| [`libpng`](libpng/) | libpng | 1.6.37 | https://libpng.org/ |
| [`libpuffy`](libpuffy/) | libpuffy | 1.0 | https://github.com/ibara/libpuffy |
| [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ |
diff --git a/Ports/libogg/package.sh b/Ports/libogg/package.sh
new file mode 100644
index 0000000000..89d14ff95a
--- /dev/null
+++ b/Ports/libogg/package.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=libogg
+version=1.3.4
+useconfigure=true
+files="https://github.com/xiph/ogg/releases/download/v${version}/libogg-${version}.tar.gz libogg-${version}.tar.gz"
+workdir="libogg-${version}"
diff --git a/Ports/libogg/patches/configure.patch b/Ports/libogg/patches/configure.patch
new file mode 100644
index 0000000000..5796357d63
--- /dev/null
+++ b/Ports/libogg/patches/configure.patch
@@ -0,0 +1,12 @@
+diff -ru libogg-1.3.4/config.sub libogg-1.3.4-patched/config.sub
+--- libogg-1.3.4/config.sub 2021-03-08 15:40:56.932153900 +0100
++++ libogg-1.3.4-patched/config.sub 2021-03-08 15:40:43.633856800 +0100
+@@ -1333,7 +1333,7 @@
+ # The portable systems comes first.
+ # Each alternative MUST end in a * to match a version number.
+ # sysv* is not here because it comes later, after sysvr4.
+- gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
++ gnu* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \
+ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
+ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+ | sym* | kopensolaris* | plan9* \