- Add games/tty-solitaire

Ncurses-based klondike solitaire game

WWW: https://github.com/mpereira/tty-solitaire
This commit is contained in:
Dmitry Marakasov 2017-11-03 17:09:20 +00:00
parent 50935dfbce
commit 7618bc6e1c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453416
5 changed files with 68 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@
SUBDIR += tt SUBDIR += tt
SUBDIR += ttraffic SUBDIR += ttraffic
SUBDIR += ttt SUBDIR += ttt
SUBDIR += tty-solitaire
SUBDIR += tux-aqfh SUBDIR += tux-aqfh
SUBDIR += tuxfighter SUBDIR += tuxfighter
SUBDIR += tuxkart SUBDIR += tuxkart

View File

@ -0,0 +1,31 @@
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= tty-solitaire
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Play solitaire in your terminal
LICENSE= MIT
USE_GITHUB= yes
GH_ACCOUNT= mpereira
USES= gmake ncurses
PORTDOCS= *
PLIST_FILES= bin/ttysolitaire
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttysolitaire ${STAGEDIR}${PREFIX}/bin/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1509721642
SHA256 (mpereira-tty-solitaire-v1.0.0_GH0.tar.gz) = d3512beb8844ffb295cbea03bb3515fec12851bce38692e05cd55494beb2cc1f
SIZE (mpereira-tty-solitaire-v1.0.0_GH0.tar.gz) = 277091

View File

@ -0,0 +1,30 @@
--- Makefile.orig 2017-01-07 22:39:19 UTC
+++ Makefile
@@ -1,14 +1,14 @@
-CC = gcc
-CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
+CC? = gcc
+CFLAGS+= -W -Wall -pedantic -ansi -std=c99
-LDFLAGS = -lncursesw
+LDFLAGS+= -lncursesw
# OS X installs ncurses with wide character support, but not as "libncurses"
ifeq ($(shell uname -s),Darwin)
LDFLAGS = -lncurses
endif
-PREFIX = /usr/local
+PREFIX? = /usr/local
EXECUTABLE = ttysolitaire
SRC_DIR = src
@@ -39,6 +39,8 @@ TESTS_OBJECTS = $(TESTS_DIR)/frame_test.
.PHONY: test clean install uninstall
+all: ttysolitaire
+
ttysolitaire: $(SRC_OBJECTS)
$(CC) $(CFLAGS) $(SRC) -o $(EXECUTABLE) $(SRC_OBJECTS) $(LDFLAGS)

View File

@ -0,0 +1,3 @@
Ncurses-based klondike solitaire game
WWW: https://github.com/mpereira/tty-solitaire