1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

games/2048: Add a port for command line version of 2048

This commit is contained in:
Steve Wills 2014-08-15 13:42:26 +00:00
parent 2864718a59
commit a8788a80ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364973
5 changed files with 52 additions and 0 deletions

32
games/2048/Makefile Normal file
View File

@ -0,0 +1,32 @@
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= 2048
PORTVERSION= 0.0.0.2014081501
CATEGORIES= games
MASTER_SITES= GH
MAINTAINER= swills@FreeBSD.org
COMMENT= Command line version of 2048
LICENSE= MIT
LICENSE_FILES= LICENSE
USE_GITHUB= yes
GH_ACCOUNT= Tiehuis
GH_PROJECT= 2048-cli
GH_COMMIT= 73d328c
GH_TAGNAME= ${GH_COMMIT}
PLIST_FILES= bin/2048 bin/2048_no_curses \
%%DOCSDIR%%/LICENSE %%DOCSDIR%%/README.md
PLIST_DIRS= %%DOCSDIR%%
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/2048 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/2048_no_curses ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

2
games/2048/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (2048-0.0.0.2014081501.tar.gz) = 8ef1c52057d1208c7e4c1d0c6049f42188909a9129ea44691c033e68f7902d54
SIZE (2048-0.0.0.2014081501.tar.gz) = 5224

View File

@ -0,0 +1,14 @@
--- ./Makefile.orig 2014-08-15 13:00:51.378870503 +0000
+++ ./Makefile 2014-08-15 13:01:08.321869127 +0000
@@ -1,4 +1,4 @@
-CC=gcc
+CC?=cc
CCARGS=
all: 2048 2048_no_curses
@@ -7,4 +7,4 @@
$(CC) $(CCARGS) 2048_curses.c -lcurses -o 2048
2048_no_curses: 2048_no_curses.c
- gcc 2048_no_curses.c -o 2048_no_curses
+ ${CC} 2048_no_curses.c -o 2048_no_curses

3
games/2048/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
A CLI version of the game 2048 for your terminal.
WWW: https://github.com/Tiehuis/2048-cli

View File

@ -5,6 +5,7 @@
SUBDIR += 0ad
SUBDIR += 0verkill
SUBDIR += 2048
SUBDIR += 3dc
SUBDIR += 3dpong
SUBDIR += 3omns