zlib-ng: cross build

This commit is contained in:
Ella Stanforth 2022-04-21 21:03:11 +00:00
parent 8899af9d0e
commit 1f6f51b9be

View file

@ -10,12 +10,21 @@ fetch() {
build() {
cd $pkgname-$pkgver
cd build
PREFIX=/usr
[ -z "$WITH_CROSS" ] || cmake_extra_flags="-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSROOT=$WITH_CROSS_DIR \
-DCMAKE_C_COMPILER_TARGET=$ARCH-linux-musl"
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZLIB_COMPAT=ON
-DZLIB_COMPAT=ON \
$cmake_extra_flags
samu
}
@ -29,3 +38,7 @@ license() {
cd $pkgname-$pkgver
cat LICENSE.md
}
backup() {
return
}