diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-04-27 22:00:52 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-04-27 22:31:07 +0200 |
commit | c1c6002e281bc0f9866ead8ceb8f052683c911f9 (patch) | |
tree | 3da4546e284651e8b69e45274f18f8c4eb6ab9f3 | |
parent | 504d62286452b5537b723ee3baf3f85867fcd690 (diff) | |
download | serenity-c1c6002e281bc0f9866ead8ceb8f052683c911f9.zip |
Ports: Add libtheora
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/libtheora/package.sh | 21 | ||||
-rw-r--r-- | Ports/libtheora/patches/config.sub.patch | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 799113699f..0242092937 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -57,6 +57,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`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 | +| [`libtheora`](libtheora/) | libtheora | 1.1.1 | https://www.theora.org/ | | [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ | | [`libtool`](libtool/) | libtool | 2.4 | https://www.gnu.org/software/libtool/ | | [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis | diff --git a/Ports/libtheora/package.sh b/Ports/libtheora/package.sh new file mode 100755 index 0000000000..85f704d917 --- /dev/null +++ b/Ports/libtheora/package.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=libtheora +version=1.1.1 +useconfigure=true +files="https://downloads.xiph.org/releases/theora/libtheora-${version}.tar.bz2 libtheora-${version}.tar.bz2 b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc" +auth_type="sha256" +depends="libvorbis" +configopts="--disable-examples" + +build_shared() { + local name=$1 + ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/${name}.so -Wl,-soname,${name}.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/${name}.a -Wl,--no-whole-archive + rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/${name}.la +} + +install() { + run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install + build_shared libtheora + build_shared libtheoradec + build_shared libtheoraenc +} diff --git a/Ports/libtheora/patches/config.sub.patch b/Ports/libtheora/patches/config.sub.patch new file mode 100644 index 0000000000..30d8c160c8 --- /dev/null +++ b/Ports/libtheora/patches/config.sub.patch @@ -0,0 +1,11 @@ +--- libtheora-1.1.1/config.sub 2009-02-24 04:50:50.000000000 +0100 ++++ libtheora-1.1.1-patched/config.sub 2021-04-27 21:07:46.414544609 +0200 +@@ -1093,7 +1093,7 @@ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ +- | -aos* \ ++ | -aos* | -serenity* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |