2021-04-11 21:15:42 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=nethack
|
|
|
|
version=3.6.6
|
|
|
|
workdir=NetHack-NetHack-${version}_Released
|
2021-04-25 10:20:15 +00:00
|
|
|
files="https://www.nethack.org/download/${version}/nethack-${version//.}-src.tgz nethack-${version//.}-src.tgz cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2"
|
|
|
|
auth_type=sha256
|
2021-09-26 22:16:18 +00:00
|
|
|
depends=("ncurses" "bash")
|
2021-04-11 21:15:42 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
run sys/unix/setup.sh sys/unix/hints/serenity
|
|
|
|
if [ ! -f ${workdir}/util/makedefs.host ]; then
|
|
|
|
host_env
|
2021-09-26 22:16:18 +00:00
|
|
|
run make -C util makedefs "${makeopts[@]}"
|
2021-04-11 21:15:42 +00:00
|
|
|
run cp util/makedefs util/makedefs.host
|
2021-09-26 22:16:18 +00:00
|
|
|
run make -C util dgn_comp "${makeopts[@]}"
|
2021-04-11 21:15:42 +00:00
|
|
|
run cp util/dgn_comp util/dgn_comp.host
|
2021-09-26 22:16:18 +00:00
|
|
|
run make -C util lev_comp "${makeopts[@]}"
|
2021-04-11 21:15:42 +00:00
|
|
|
run cp util/lev_comp util/lev_comp.host
|
2021-09-26 22:16:18 +00:00
|
|
|
run make -C util dlb "${makeopts[@]}"
|
2021-04-11 21:15:42 +00:00
|
|
|
run cp util/dlb util/dlb.host
|
|
|
|
target_env
|
|
|
|
run make clean
|
|
|
|
fi
|
2021-09-26 22:16:18 +00:00
|
|
|
run make "${makeopts[@]}"
|
2021-04-11 21:15:42 +00:00
|
|
|
}
|