mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-05 11:08:49 +08:00
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
VERSION=2.6.6
|
|
TAR=http://files.freeciv.org/stable/freeciv-$VERSION.tar.bz2
|
|
BUILD_DEPENDS=(curl freetype libiconv liborbital libpng openssl nghttp2 sdl sdl_gfx sdl_image sdl_mixer sdl_ttf zlib)
|
|
|
|
function recipe_version {
|
|
echo "$VERSION"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
wget -O bootstrap/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
|
sysroot="$(realpath ../sysroot)"
|
|
export CFLAGS="-I$sysroot/include"
|
|
export LDFLAGS="-L$sysroot/lib --static"
|
|
export SDL_CONFIG="$sysroot/bin/sdl-config"
|
|
./configure \
|
|
--build=${BUILD} \
|
|
--host="$HOST" \
|
|
--prefix='' \
|
|
--disable-server \
|
|
--enable-ipv6=no \
|
|
--enable-client=sdl \
|
|
--enable-fcmp=cli \
|
|
--with-ft-prefix="$sysroot" \
|
|
--with-sdl-prefix="$sysroot" \
|
|
ac_cv_lib_SDL_image_IMG_Load=yes \
|
|
ac_cv_lib_SDL_ttf_TTF_OpenFont=yes \
|
|
ac_cv_lib_SDL_gfx_rotozoomSurface=yes \
|
|
gui_sdl_cflags="${CFLAGS}" \
|
|
gui_sdl_ldflags="${LDFLAGS}"
|
|
"$REDOX_MAKE" -j"$($NPROC)" V=1
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
"$REDOX_MAKE" clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
"$REDOX_MAKE" DESTDIR="$dest" install
|
|
skip=1
|
|
}
|