Skip to content

Commit

Permalink
Ports: add libvorbis
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectrodeYT authored and awesomekling committed Apr 1, 2021
1 parent 1ea8d73 commit 86ecbd8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ports/AvailablePorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://www.libtiff.org/ |
| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
| [`links`](links/) | Links web browser | 2.22 | http:https://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/ |
Expand Down
7 changes: 7 additions & 0 deletions Ports/libvorbis/package.sh
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions Ports/libvorbis/patches/01-add-serenity-system.patch
Original file line number Diff line number Diff line change
@@ -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*)

0 comments on commit 86ecbd8

Please sign in to comment.