blob: d4f95f2cb13ce89f3e34a3c1315e4648aca10d4d (
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
46
47
48
49
50
51
|
PORTNAME= nbsdgames
DISTVERSIONPREFIX= v
DISTVERSION= 5
CATEGORIES= games
MAINTAINER= fuz@fuz.su
COMMENT= 17 text-based modern games
WWW= https://github.com/abakh/nbsdgames
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 \
nbsdgames \
pipes \
rabbithole \
redsquare \
reversi \
snakeduel \
sos \
sudoku \
tugow
post-install:
${INSTALL_DATA} ${WRKSRC}/nbsdgames.desktop ${STAGEDIR}${PREFIX}/share/applications/
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
${INSTALL_DATA} ${WRKSRC}/nbsdgames.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
.for game in ${_GAMES}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${game}
.endfor
.include <bsd.port.mk>
|