git: 2ba9f4ad2035 - main - games/fakesteak: Add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Mon, 17 Apr 2023 08:50:55 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ba9f4ad2035e6e3fba36aa76a0bd66e29042d85

commit 2ba9f4ad2035e6e3fba36aa76a0bd66e29042d85
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-04-17 08:50:02 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-04-17 08:50:51 +0000

    games/fakesteak: Add new port
    
    Implementation of the digital character rain as seen in "The Matrix".
    
    Some things you might like about fakesteak:
    
      * Small footprint (low on RAM and disk usage)
      * Good performance (low on CPU usage)
      * Looks pretty close to the original (fading, glitches)
      * Basic customization via command line options
      * No dependencies (not even ncurses)
---
 games/Makefile                       |  1 +
 games/fakesteak/Makefile             | 18 ++++++++++++++++++
 games/fakesteak/distinfo             |  3 +++
 games/fakesteak/files/patch-Makefile | 28 ++++++++++++++++++++++++++++
 games/fakesteak/pkg-descr            |  9 +++++++++
 5 files changed, 59 insertions(+)

diff --git a/games/Makefile b/games/Makefile
index 8d6f40dea66f..b30422838bc5 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -256,6 +256,7 @@
     SUBDIR += ezquake
     SUBDIR += f1spirit-remake
     SUBDIR += fairymax
+    SUBDIR += fakesteak
     SUBDIR += falconseye
     SUBDIR += fargoal
     SUBDIR += fbg2
diff --git a/games/fakesteak/Makefile b/games/fakesteak/Makefile
new file mode 100644
index 000000000000..0beb705ed264
--- /dev/null
+++ b/games/fakesteak/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	fakesteak
+PORTVERSION=	0.2.4
+DISTVERSIONPREFIX=	v
+CATEGORIES=	games
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Implementation of the digital character rain as seen in "The Matrix"
+WWW=		https://github.com/domsson/fakesteak
+
+LICENSE=	CC0-1.0
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	domsson
+
+PLIST_FILES=	bin/fakesteak
+
+.include <bsd.port.mk>
diff --git a/games/fakesteak/distinfo b/games/fakesteak/distinfo
new file mode 100644
index 000000000000..1f4d40146aff
--- /dev/null
+++ b/games/fakesteak/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1681711262
+SHA256 (domsson-fakesteak-v0.2.4_GH0.tar.gz) = 0f183a2727e84d2e128e3192d4cff3e180393c9c39b598fa1c4bfe8c70a4eb1a
+SIZE (domsson-fakesteak-v0.2.4_GH0.tar.gz) = 55848
diff --git a/games/fakesteak/files/patch-Makefile b/games/fakesteak/files/patch-Makefile
new file mode 100644
index 000000000000..d00ee7b59cd7
--- /dev/null
+++ b/games/fakesteak/files/patch-Makefile
@@ -0,0 +1,28 @@
+--- Makefile.orig	2020-11-18 09:14:32 UTC
++++ Makefile
+@@ -1,7 +1,7 @@
+-CC := cc
+-CFLAGS += -Wall -O3
+-LDLIBS := -lm
+-PREFIX := /usr/local/
++CC ?= cc
++CFLAGS ?= -Wall -O3
++LDLIBS += -lm
++PREFIX ?= /usr/local/
+ NAME := fakesteak
+ 
+ all bin/$(NAME):
+@@ -12,9 +12,10 @@ debug: CFLAGS += -g
+ debug: all
+ 
+ install: bin/$(NAME)
+-	mkdir -p $(PREFIX)/bin
+-	cp bin/$(NAME) $(PREFIX)/bin
+-	chmod +x $(PREFIX)/bin/$(NAME)
++	mkdir -p $(DESTDIR)$(PREFIX)/bin
++	cp bin/$(NAME) $(DESTDIR)$(PREFIX)/bin
++	chmod +x $(DESTDIR)$(PREFIX)/bin/$(NAME)
++	strip $(DESTDIR)$(PREFIX)/bin/$(NAME)
+ 
+ uninstall:
+ 	rm $(PREFIX)/bin/$(NAME)     
diff --git a/games/fakesteak/pkg-descr b/games/fakesteak/pkg-descr
new file mode 100644
index 000000000000..d6f87a078274
--- /dev/null
+++ b/games/fakesteak/pkg-descr
@@ -0,0 +1,9 @@
+Implementation of the digital character rain as seen in "The Matrix".
+
+Some things you might like about fakesteak:
+
+  * Small footprint (low on RAM and disk usage)
+  * Good performance (low on CPU usage)
+  * Looks pretty close to the original (fading, glitches)
+  * Basic customization via command line options
+  * No dependencies (not even ncurses)