mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
77d9a764e3
Previously when installing libtiff as a dependency for another port it would not find the entry in `packages.db` as the ports that depend on libtiff would use the folder name rather than the port name in the dependency list. They did this because there was is a bug in `.port_include.sh` that cds to the port name and not the folder the port lives in. This is a workaround for that issue.
15 lines
937 B
Bash
Executable file
15 lines
937 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libtiff
|
|
version=4.3.0
|
|
useconfigure=true
|
|
workdir="tiff-$version"
|
|
files="http://download.osgeo.org/libtiff/tiff-${version}.tar.gz tiff-${version}.tar.gz 0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8"
|
|
auth_type="sha256"
|
|
depends=("libjpeg" "zstd" "xz")
|
|
|
|
install() {
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiff.so -Wl,-soname,libtiff.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiff.a -Wl,--no-whole-archive -lzstd -llzma -ljpeg
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiffxx.so -Wl,-soname,libtiffxx.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiffxx.a -Wl,--no-whole-archive -lzstd -llzma -ljpeg
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiff.la ${SERENITY_INSTALL_ROOT}/usr/local/lib/libtiffxx.la
|
|
}
|