mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-03-01 15:00:56 +00:00
The only place this is needed is when determining the directory name that the tar file will be extracted to. This can be done by examining the .tar file name without needing to know the version itself.
14 lines
362 B
Bash
14 lines
362 B
Bash
check_pkgconfig zlib
|
|
fetch_download http://zlib.net/zlib-1.2.8.tar.gz
|
|
build_autotools
|
|
|
|
# zlib's configure script is hand-rolled and doesn't support the normal
|
|
# --host option because, well, who knows.
|
|
do_build() {
|
|
if [ ! -z "$BUILD_HOST" ]; then
|
|
export CC="$BUILD_HOST-gcc"
|
|
fi
|
|
./configure --prefix="$PACKAGE_INSTALL_DIR" --static
|
|
make
|
|
}
|
|
|