2021-01-23 05:44:05 +13:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2019-10-05 21:34:19 +01:00
|
|
|
port=zlib
|
|
|
|
version=1.2.11
|
|
|
|
useconfigure=true
|
2020-02-04 01:11:35 +01:00
|
|
|
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz
|
|
|
|
https://www.zlib.net/zlib-${version}.tar.gz.asc zlib-${version}.tar.gz.asc"
|
|
|
|
|
|
|
|
auth_type="sig"
|
|
|
|
auth_import_key="783FCD8E58BCAFBA"
|
|
|
|
auth_opts="zlib-${version}.tar.gz.asc"
|
2019-10-05 21:34:19 +01:00
|
|
|
|
|
|
|
configure() {
|
2021-04-15 15:46:40 +02:00
|
|
|
run ./configure
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2021-04-20 18:42:04 +03:00
|
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
2021-04-25 08:42:41 +02:00
|
|
|
${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
|
2021-04-20 18:42:04 +03:00
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.la
|
2019-10-05 21:34:19 +01:00
|
|
|
}
|