61debb00e5
Otherwise the entire build cache effectively invalidates the moment one script changes..
37 lines
672 B
Bash
Executable file
37 lines
672 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/madler/zlib.git"
|
|
SCRIPT_COMMIT="04f42ceca40f73e2978b50e93806c2a18c1281fc"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--static
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
export CC="${FFBUILD_CROSS_PREFIX}gcc"
|
|
export AR="${FFBUILD_CROSS_PREFIX}ar"
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-zlib
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-zlib
|
|
}
|