aboutsummaryrefslogtreecommitdiff
path: root/games/nbsdgames/Makefile
blob: e4f393633d904d00d310ae20cb42f9543f87e180 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PORTNAME=	nbsdgames
DISTVERSIONPREFIX=	v
DISTVERSION=	4.1.2
CATEGORIES=	games

MAINTAINER=	fuz@fuz.su
COMMENT=	17 text-based modern games

LICENSE=	CC0-1.0
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=	ncurses

USE_GITHUB=	yes
GH_ACCOUNT=	abakh

MAKE_ARGS+=	GAMES_DIR=${PREFIX}/bin \
		MAN_DIR=${PREFIX}/share/man/man6 \
		SCORES_DIR=/var/games/nbsdgames
CFLAGS+=	--std=c99 -I${NCURSESINC} -I${NCURSESBASE}/include

_GAMES=	battleship \
	checkers \
	darrt \
	fifteen \
	fisher \
	jewels \
	memoblocks \
	miketron \
	mines \
	muncher \
	pipes \
	rabbithole \
	redsquare \
	reversi \
	snakeduel \
	sos \
	sudoku \

post-install:
.for game in ${_GAMES}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${game}
.endfor

.include <bsd.port.mk>