ports/tuxracer: Add sound support and fix compiling

This commit is contained in:
Bananymous 2025-11-16 03:48:52 +02:00
parent b678541427
commit dc0fa49de2
1 changed files with 10 additions and 4 deletions

View File

@ -3,17 +3,23 @@
NAME='tuxracer' NAME='tuxracer'
VERSION='0.61' VERSION='0.61'
DOWNLOAD_URL="http://download.sourceforge.net/tuxracer/tuxracer-$VERSION.tar.gz#a311d09080598fe556134d4b9faed7dc0c2ed956ebb10d062e5d4df022f91eff" DOWNLOAD_URL="http://download.sourceforge.net/tuxracer/tuxracer-$VERSION.tar.gz#a311d09080598fe556134d4b9faed7dc0c2ed956ebb10d062e5d4df022f91eff"
DEPENDENCIES=('tcl' 'mesa' 'glu' 'sdl12-compat') DEPENDENCIES=('tcl' 'mesa' 'glu' 'sdl12-compat' 'SDL_mixer')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'--with-data-dir=/usr/share/tuxracer' '--with-data-dir=/usr/share/tuxracer'
"--with-sdl-prefix=$BANAN_SYSROOT/usr" "--with-sdl-prefix=$BANAN_SYSROOT/usr"
'--without-gl-libs'
'--with-tcl-lib-name=tcl8.6' '--with-tcl-lib-name=tcl8.6'
'--without-x' '--without-x'
'ac_cv_func_isnan=yes'
'CFLAGS="-std=c99 -Wno-implicit-int -Wno-incompatible-pointer-types'
) )
pre_configure() {
export CFLAGS="-std=c99 -Wno-implicit-int -Wno-incompatible-pointer-types"
export ac_cv_func_isnan='yes'
}
post_configure() {
unset CFLAGS ac_cv_func_isnan
}
post_install() { post_install() {
pushd .. pushd ..