From 3c9a870b8fb8f065a9ab584da39b91b5168e3c26 Mon Sep 17 00:00:00 2001 From: Noah Rosamilia Date: Sat, 18 Apr 2020 20:10:41 -0400 Subject: [PATCH] Ports: Add frotz port (#1859) --- Ports/frotz/package.sh | 18 ++++++++++++++++++ Ports/frotz/patches/frotz.patch | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 Ports/frotz/package.sh create mode 100644 Ports/frotz/patches/frotz.patch diff --git a/Ports/frotz/package.sh b/Ports/frotz/package.sh new file mode 100755 index 00000000000..e4010f79c08 --- /dev/null +++ b/Ports/frotz/package.sh @@ -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 +} diff --git a/Ports/frotz/patches/frotz.patch b/Ports/frotz/patches/frotz.patch new file mode 100644 index 00000000000..a0693a5a0a7 --- /dev/null +++ b/Ports/frotz/patches/frotz.patch @@ -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 +