Ports: Add frotz port (#1859)
This commit is contained in:
parent
1c44ae6d19
commit
3c9a870b8f
Notes:
sideshowbarker
2024-07-19 07:29:15 +09:00
Author: https://github.com/Ivoah Commit: https://github.com/SerenityOS/serenity/commit/3c9a870b8fb Pull-request: https://github.com/SerenityOS/serenity/pull/1859
2 changed files with 34 additions and 0 deletions
18
Ports/frotz/package.sh
Executable file
18
Ports/frotz/package.sh
Executable 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
|
||||
}
|
16
Ports/frotz/patches/frotz.patch
Normal file
16
Ports/frotz/patches/frotz.patch
Normal 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
|
||||
|
Loading…
Add table
Reference in a new issue