mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 14:57:35 +00:00
Ports: Fix tuxracer port to use sdl12-compat instead of SDL2
This commit is contained in:
parent
d10071ce42
commit
f578247cdf
7 changed files with 131 additions and 459 deletions
|
@ -5,7 +5,7 @@ version="0.61"
|
|||
files="http://ftp.e.kth.se/pub/mpkg/distfiles/tuxracer/${version}/tuxracer-${version}.tar.gz tuxracer-${version}.tar.gz a311d09080598fe556134d4b9faed7dc0c2ed956ebb10d062e5d4df022f91eff
|
||||
http://ftp.e.kth.se/pub/mpkg/distfiles/tuxracer/${version}/tuxracer-data-${version}.tar.gz tuxracer-data-${version}.tar.gz 3783d204b7bb1ed16aa5e5a1d5944de10fbee05bc7cebb8f616fce84301f3651"
|
||||
auth_type=sha256
|
||||
depends=("glu" "SDL2" "SDL2_mixer" "tcl")
|
||||
depends=("glu" "SDL_mixer" "sdl12-compat" "tcl")
|
||||
configopts=(
|
||||
"--with-gl-inc=${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
|
||||
"--with-gl-lib-name=gl"
|
||||
|
@ -17,17 +17,8 @@ launcher_name="Tux Racer"
|
|||
launcher_category="Games"
|
||||
launcher_command="/usr/local/bin/tuxracer"
|
||||
|
||||
pre_configure() {
|
||||
export CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
|
||||
export CXXFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
|
||||
export LIBS="-lSDL2"
|
||||
}
|
||||
|
||||
post_configure() {
|
||||
unset LIBS
|
||||
unset CXXFLAGS
|
||||
unset CFLAGS
|
||||
}
|
||||
# isnan() is a macro -> not linkable
|
||||
export ac_cv_func_isnan=yes
|
||||
|
||||
post_install() {
|
||||
resourcePath="${SERENITY_INSTALL_ROOT}/usr/local/share/tuxracer"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue