summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <electrodeyt@gmail.com>2021-04-01 00:12:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-01 08:28:20 +0200
commit86ecbd809fd5282b8d5a2bd37e98e7ed83a8df04 (patch)
tree9e1c7744ed725e54be5ed2f9faf619da1a68c34d
parent1ea8d73628e64b49326247ed049a7607facc195f (diff)
downloadserenity-86ecbd809fd5282b8d5a2bd37e98e7ed83a8df04.zip
Ports: add libvorbis
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/libvorbis/package.sh7
-rw-r--r--Ports/libvorbis/patches/01-add-serenity-system.patch11
3 files changed, 19 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index ae85456ea0..6a76481168 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -44,6 +44,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`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/ |
+| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
| [`links`](links/) | Links web browser | 2.22 | http://links.twibright.com/ |
| [`lua`](lua/) | Lua | 5.3.5 | https://www.lua.org/ |
| [`m4`](m4/) | GNU M4 | 1.4.9 | https://www.gnu.org/software/m4/ |
diff --git a/Ports/libvorbis/package.sh b/Ports/libvorbis/package.sh
new file mode 100755
index 0000000000..7a47c1e467
--- /dev/null
+++ b/Ports/libvorbis/package.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=libvorbis
+version=1.3.7
+useconfigure=true
+configopts="--prefix=${SERENITY_BUILD_DIR}/Root/usr/local"
+files="https://github.com/xiph/vorbis/releases/download/v${version}/libvorbis-${version}.tar.gz libvorbis-${version}.tar.gz"
+depends=libogg
diff --git a/Ports/libvorbis/patches/01-add-serenity-system.patch b/Ports/libvorbis/patches/01-add-serenity-system.patch
new file mode 100644
index 0000000000..bc4aa117b5
--- /dev/null
+++ b/Ports/libvorbis/patches/01-add-serenity-system.patch
@@ -0,0 +1,11 @@
+--- libvorbis-1.3.7/config.sub 2020-07-04 08:20:15.000000000 +0200
++++ libvorbis-1.3.7.patched/config.sub 2021-03-30 18:28:04.784175977 +0200
+@@ -1390,7 +1390,7 @@
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
+ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
+- | -midnightbsd*)
++ | -midnightbsd* | -serenity*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)