ladybird/Ports/zlib/package.sh

18 lines
702 B
Bash
Raw Normal View History

2021-01-22 16:44:05 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
2019-10-05 20:34:19 +00:00
port=zlib
2022-10-14 05:15:47 +00:00
version=1.2.13
2019-10-05 20:34:19 +00:00
useconfigure=true
2022-10-14 05:15:47 +00:00
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
2021-07-29 12:59:22 +00:00
auth_type="sha256"
2019-10-05 20:34:19 +00:00
configure() {
# Set uname to linux to prevent it finding the host's `libtool` on e.g. Darwin
run ./configure --uname=linux
}
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.so -Wl,-soname,libz.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.a -Wl,--no-whole-archive
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.la
2019-10-05 20:34:19 +00:00
}