Ports: Add frotz port (#1859)

This commit is contained in:
Noah Rosamilia 2020-04-18 20:10:41 -04:00 committed by GitHub
parent 1c44ae6d19
commit 3c9a870b8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 07:29:15 +09:00
2 changed files with 34 additions and 0 deletions

18
Ports/frotz/package.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash ../.port_include.sh
port=frotz
version=git
workdir=frotz-master
files="https://gitlab.com/DavidGriffith/frotz/-/archive/master/frotz-master.zip frotz-master.zip"
depends="ncurses"
build() {
run make \
AR=i686-pc-serenity-ar \
RANLIB=i686-pc-serenity-ranlib \
PKG_CONFIG_CURSES=no \
CURSES_CFLAGS="-I${SERENITY_ROOT}/Root/usr/local/include/ncurses" \
CURSES_LDFLAGS="-lncurses -ltinfo" \
CURSES=ncurses \
USE_UTF8=no \
nosound
}

View File

@ -0,0 +1,16 @@
diff -Naur frotz-master/Makefile frotz-master.serenity/Makefile
--- frotz-master/Makefile 2020-04-09 00:48:12.000000000 -0400
+++ frotz-master.serenity/Makefile 2020-04-18 15:58:39.000000000 -0400
@@ -235,9 +235,9 @@
GIT_HASH_SHORT = $(shell git rev-parse --short HEAD)
GIT_DATE = $(shell git show -s --format=%ci)
else
-GIT_HASH = "$16e70d08f8a1aa1a4ebca1117ab84ba180809708$"
-GIT_HASH_SHORT = "$16e70d0$"
-GIT_DATE = "$2020-04-08 21:48:12 -0700$"
+GIT_HASH = 16e70d08f8a1aa1a4ebca1117ab84ba180809708
+GIT_HASH_SHORT = 16e70d0
+GIT_DATE = 2020-04-08 21:48:12 -0700
endif
export CFLAGS