mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 04:35:41 +03:00
c07f91474d
We may need entries with spaces in makeopts, installopts, and configopts, and at that point we should also convert depends and auth_opts to avoid confusion.
22 lines
799 B
Bash
Executable File
22 lines
799 B
Bash
Executable File
#!/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
|
|
}
|