mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
47 lines
861 B
Bash
47 lines
861 B
Bash
VERSION=1.8
|
|
GIT=https://github.com/OpenTTD/OpenTTD.git
|
|
BRANCH=release/$VERSION
|
|
BUILD_DEPENDS=(freetype liborbital libpng sdl xz zlib)
|
|
|
|
function recipe_version {
|
|
echo "$VERSION"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
echo "skipping update"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
./configure \
|
|
--build=${BUILD} \
|
|
--host=${HOST} \
|
|
--prefix='' \
|
|
--enable-static \
|
|
--without-liblzo2 \
|
|
--disable-network \
|
|
--without-threads
|
|
make VERBOSE=1 -j"$(nproc)"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_test {
|
|
echo "skipping test"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
make clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
bundledir="$dest/bundle"
|
|
|
|
make VERBOSE=1 ROOT_DIR="$dest/../build/" BUNDLE_DIR="$bundledir" INSTALL_DIR="$dest" install
|
|
rm -rf "$bundledir"
|
|
skip=1
|
|
}
|