git: 269099429035 - main - games/tinycols: jewel matching game

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Wed, 04 Oct 2023 20:03:13 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26909942903594722227910fa0f21216b557be8c

commit 26909942903594722227910fa0f21216b557be8c
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-10-04 19:24:04 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-04 20:02:31 +0000

    games/tinycols: jewel matching game
    
    A jewels matching game for the Linux terminal.
    Three difficulties are provided.
    
    WWW: https://github.com/zedr/tinycols
---
 games/Makefile           |  1 +
 games/tinycols/Makefile  | 33 +++++++++++++++++++++++++++++++++
 games/tinycols/distinfo  |  3 +++
 games/tinycols/pkg-descr |  2 ++
 4 files changed, 39 insertions(+)

diff --git a/games/Makefile b/games/Makefile
index a1355e9a2330..d0130af5b7cd 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -966,6 +966,7 @@
     SUBDIR += textmaze
     SUBDIR += thegrind
     SUBDIR += tileworld
+    SUBDIR += tinycols
     SUBDIR += tkmoo
     SUBDIR += tmatrix
     SUBDIR += tomatoes
diff --git a/games/tinycols/Makefile b/games/tinycols/Makefile
new file mode 100644
index 000000000000..fc378fa8cc92
--- /dev/null
+++ b/games/tinycols/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	tinycols
+DISTVERSION=	0.6.1
+CATEGORIES=	games
+
+MAINTAINER=	fuz@FreeBSD.org
+COMMENT=	Jewels matching game for the terminal
+WWW=		https://github.com/zedr/tinycols
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		ncurses
+USE_GITHUB=	yes
+GH_ACCOUNT=	zedr
+
+CPPFLAGS+=	-I${NCURSESINC:/ncurses=}
+LDFLAGS+=	-L${NCURSESLIB}
+LIBS+=		${NCURSESLIBS}
+
+PLIST_FILES=	bin/tinycols \
+		share/man/man6/tinycols.6.gz
+
+do-build:
+	${MKDIR} ${WRKSRC}/build
+	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/build/tinycols \
+	    ${WRKSRC}/src/main.c ${WRKSRC}/src/gfx.c ${WRKSRC}/src/tinycols/*.c \
+	    ${WRKSRC}/src/queue.c ${LIBS}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/build/tinycols ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_MAN} ${WRKSRC}/doc/man/tinycols.6 ${STAGEDIR}${PREFIX}/share/man/man6/
+
+.include <bsd.port.mk>
diff --git a/games/tinycols/distinfo b/games/tinycols/distinfo
new file mode 100644
index 000000000000..840ba6956729
--- /dev/null
+++ b/games/tinycols/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696446639
+SHA256 (zedr-tinycols-0.6.1_GH0.tar.gz) = c571cf428c5aa4070239cb3fc29bb7165f914cbb853afcd99d194b21482dd321
+SIZE (zedr-tinycols-0.6.1_GH0.tar.gz) = 35352
diff --git a/games/tinycols/pkg-descr b/games/tinycols/pkg-descr
new file mode 100644
index 000000000000..f167ee560a08
--- /dev/null
+++ b/games/tinycols/pkg-descr
@@ -0,0 +1,2 @@
+A jewels matching game for the Linux terminal.
+Three difficulties are provided.