2021-04-27 23:00:52 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=libtheora
|
|
|
|
version=1.1.1
|
|
|
|
useconfigure=true
|
2022-01-08 16:32:29 +03:00
|
|
|
use_fresh_config_sub=true
|
2021-11-03 15:33:04 +03:00
|
|
|
files="https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-${version}.tar.bz2 libtheora-${version}.tar.bz2 b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc"
|
2021-04-27 23:00:52 +03:00
|
|
|
auth_type="sha256"
|
2021-09-27 01:16:18 +03:00
|
|
|
depends=("libvorbis")
|
|
|
|
configopts=("--disable-examples")
|
2021-04-27 23:00:52 +03:00
|
|
|
|
|
|
|
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() {
|
2021-09-27 01:16:18 +03:00
|
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
2021-04-27 23:00:52 +03:00
|
|
|
build_shared libtheora
|
|
|
|
build_shared libtheoradec
|
|
|
|
build_shared libtheoraenc
|
|
|
|
}
|