1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 09:47:45 +00:00

Ports: Replace manually linking libtheora with a libtool patch

This commit is contained in:
Tim Schumacher 2022-06-03 17:03:35 +02:00 committed by Linus Groh
parent 6d20f2aaa1
commit bd7bcd2407
3 changed files with 94 additions and 14 deletions

View file

@ -2,21 +2,9 @@
port=libtheora
version=1.1.1
useconfigure=true
configopts=()
use_fresh_config_sub=true
files="https://ftp.osuosl.org/pub/xiph/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
}
configopts=("--disable-examples" "--disable-static" "--enable-shared")