1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:27:46 +00:00

Ports: Add nethack

This commit is contained in:
Gunnar Beutner 2021-04-11 23:15:42 +02:00 committed by Andreas Kling
parent 5a4206ef2e
commit 509c5c6577
7 changed files with 452 additions and 0 deletions

24
Ports/nethack/package.sh Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=nethack
version=3.6.6
workdir=NetHack-NetHack-${version}_Released
files="https://www.nethack.org/download/${version}/nethack-${version//.}-src.tgz nethack-${version//.}-src.tgz"
depends="ncurses bash"
build() {
run sys/unix/setup.sh sys/unix/hints/serenity
if [ ! -f ${workdir}/util/makedefs.host ]; then
host_env
run make -C util makedefs $makeopts
run cp util/makedefs util/makedefs.host
run make -C util dgn_comp $makeopts
run cp util/dgn_comp util/dgn_comp.host
run make -C util lev_comp $makeopts
run cp util/lev_comp util/lev_comp.host
run make -C util dlb $makeopts
run cp util/dlb util/dlb.host
target_env
run make clean
fi
run make $makeopts
}