Skip to content

Commit

Permalink
Ports: Add libogg
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
AnicJov authored and awesomekling committed Mar 9, 2021
1 parent 389dddd commit 68f2ef1
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 @@ -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 | https://www.libtiff.org/ |
Expand Down
6 changes: 6 additions & 0 deletions Ports/libogg/package.sh
Original file line number Diff line number Diff line change
@@ -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}"
12 changes: 12 additions & 0 deletions Ports/libogg/patches/configure.patch
Original file line number Diff line number Diff line change
@@ -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* \

0 comments on commit 68f2ef1

Please sign in to comment.