mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-02-12 23:06:10 +00:00
These modules encapsulate individual pieces of functionality and make the code far more maintainable. This is a pretty big refactoring but overall a big win.
16 lines
398 B
Bash
16 lines
398 B
Bash
PACKAGE_VERSION=1.2.8
|
|
|
|
check_pkgconfig zlib
|
|
fetch_download http://zlib.net/zlib-${PACKAGE_VERSION}.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
|
|
}
|
|
|