1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

Ports: Add an Angband port :^)

This commit is contained in:
Tim Schumacher 2021-09-27 00:33:31 +02:00 committed by Linus Groh
parent ed8c1e961c
commit e01c968d00
3 changed files with 30 additions and 0 deletions

17
Ports/angband/package.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=angband
version=4.2.3
workdir="Angband-${version}"
useconfigure=true
files="https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz 833c4f8cff2aee61ad015f9346fceaa4a8c739fe2dbe5bd1acd580c91818e6bb"
auth_type=sha256
depends=("ncurses")
configopts=(
"--prefix=/usr/local"
"--bindir=/usr/local/bin"
"--disable-x11"
"--enable-curses"
"--with-ncurses-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"CFLAGS=--sysroot=${SERENITY_INSTALL_ROOT} -I${SERENITY_INSTALL_ROOT}/usr/local/include/ncursesw"
"LIBS=-lncursesw"
)

View file

@ -0,0 +1,12 @@
diff -ur Angband-4.2.3-orig/config.sub Angband-4.2.3/config.sub
--- Angband-4.2.3-orig/config.sub 2021-08-01 01:29:20.000000000 +0200
+++ Angband-4.2.3/config.sub 2021-09-04 19:01:55.625519348 +0200
@@ -1337,7 +1337,7 @@
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -serenity* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* \