Improvements to freeciv recipe, still not working

This commit is contained in:
Jeremy Soller 2022-12-01 18:00:15 -07:00
parent 4878346939
commit 05e0b93c6e
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE

View File

@ -1,4 +1,4 @@
VERSION=2.6.0
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)
@ -11,7 +11,8 @@ 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"
export LDFLAGS="-L$sysroot/lib --static"
export SDL_CONFIG="$sysroot/bin/sdl-config"
./configure \
--build=${BUILD} \
--host="$HOST" \
@ -24,7 +25,9 @@ function recipe_build {
--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
ac_cv_lib_SDL_gfx_rotozoomSurface=yes \
gui_sdl_cflags="${CFLAGS}" \
gui_sdl_ldflags="${LDFLAGS}"
"$REDOX_MAKE" -j"$($NPROC)" V=1
skip=1
}