ports/doom: Use SDL2 instead of our own frontend
This allows doom to play sounds!
This commit is contained in:
@@ -2,20 +2,22 @@
|
||||
|
||||
NAME='doom'
|
||||
VERSION='git'
|
||||
DOWNLOAD_URL="https://github.com/ozkl/doomgeneric.git#613f870b6fa83ede448a247de5a2571092fa729d"
|
||||
DOWNLOAD_URL="https://github.com/ozkl/doomgeneric.git#5041246e859052e2e258ca6edb4e1e9bbd98fcf5"
|
||||
DEPENDENCIES=('SDL2' 'SDL2_mixer' 'timidity')
|
||||
|
||||
configure() {
|
||||
make --directory doomgeneric clean
|
||||
rm -rf doomgeneric/build
|
||||
}
|
||||
|
||||
build() {
|
||||
if [ ! -f ../doom1.wad ]; then
|
||||
wget https://distro.ibiblio.org/slitaz/sources/packages/d/doom1.wad -O ../doom1.wad || exit 1
|
||||
fi
|
||||
make --directory doomgeneric --file Makefile.banan_os -j$(nproc) || exit 1
|
||||
|
||||
CFLAGS='-std=c11' make --directory doomgeneric --file Makefile.sdl CC="$CC" SDL_PATH="$BANAN_SYSROOT/usr/bin/" || exit 1
|
||||
}
|
||||
|
||||
install() {
|
||||
cp doomgeneric/build/doom "${BANAN_SYSROOT}/bin/" || exit 1
|
||||
cp doomgeneric/doomgeneric "${BANAN_SYSROOT}/bin/doom" || exit 1
|
||||
cp ../doom1.wad "$BANAN_SYSROOT/home/user/" || exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user