2021-12-24 14:24:16 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=tuxracer
|
|
|
|
useconfigure="true"
|
|
|
|
version="0.61"
|
2023-07-10 11:10:29 +00:00
|
|
|
files=(
|
2023-09-02 04:32:27 +00:00
|
|
|
"http://ftp.e.kth.se/pub/mpkg/distfiles/tuxracer/${version}/tuxracer-${version}.tar.gz#a311d09080598fe556134d4b9faed7dc0c2ed956ebb10d062e5d4df022f91eff"
|
|
|
|
"http://ftp.e.kth.se/pub/mpkg/distfiles/tuxracer/${version}/tuxracer-data-${version}.tar.gz#3783d204b7bb1ed16aa5e5a1d5944de10fbee05bc7cebb8f616fce84301f3651"
|
2023-07-10 11:10:29 +00:00
|
|
|
)
|
2022-05-28 15:25:25 +00:00
|
|
|
depends=("glu" "SDL_mixer" "sdl12-compat" "tcl")
|
2021-12-24 14:24:16 +00:00
|
|
|
configopts=(
|
|
|
|
"--with-gl-inc=${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
|
|
|
|
"--with-gl-lib-name=gl"
|
|
|
|
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--with-tcl-lib-name=tcl8.6"
|
|
|
|
"--without-x"
|
|
|
|
)
|
|
|
|
launcher_name="Tux Racer"
|
|
|
|
launcher_category="Games"
|
|
|
|
launcher_command="/usr/local/bin/tuxracer"
|
|
|
|
|
2022-05-28 15:25:25 +00:00
|
|
|
# isnan() is a macro -> not linkable
|
|
|
|
export ac_cv_func_isnan=yes
|
2021-12-24 14:24:16 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
resourcePath="${SERENITY_INSTALL_ROOT}/usr/local/share/tuxracer"
|
|
|
|
mkdir -p "${resourcePath}"
|
|
|
|
cp -r tuxracer-data-${version}/* "${resourcePath}/"
|
|
|
|
}
|