Tweak games/blinken version 4.14.3
[dports.git] / games / freesweep / Makefile
1 # Created by: Andrey Zakhvatov
2 # $FreeBSD$
3
4 PORTNAME=       freesweep
5 PORTVERSION=    1.0.1
6 DISTVERSIONPREFIX=      v
7 CATEGORIES=     games
8
9 MAINTAINER=     rwestlun@gmail.com
10 COMMENT=        Minesweeper-style game for text-mode terminals
11
12 LICENSE=        GPLv2+
13
14 USE_GITHUB=     yes
15 GH_ACCOUNT=     rwestlund
16
17 USES=           gmake ncurses
18 GNU_CONFIGURE=  yes
19 CONFIGURE_ARGS= --with-prefsdir=${DATADIR} \
20                 --with-scoresdir=${DATADIR} \
21                 --disable-debug-log
22 ALL_TARGET=     ${PORTNAME}
23
24 PORTDOCS=       README.md
25 PLIST_FILES=    "@(,games,2555) bin/${PORTNAME}" man/man6/${PORTNAME}.6.gz \
26                 %%DATADIR%%/sweeprc "@(,games,0664) %%DATADIR%%/sweeptimes"
27 PLIST_DIRS=     %%DATADIR%%
28
29 OPTIONS_DEFINE= DOCS
30
31 do-install:
32         ${INSTALL_PROGRAM} ${WRKSRC}/freesweep ${STAGEDIR}${PREFIX}/bin
33         @${MKDIR} ${STAGEDIR}${DATADIR}
34         ${TOUCH} ${STAGEDIR}${DATADIR}/sweeptimes
35         ${INSTALL_DATA} ${WRKSRC}/sweeprc ${STAGEDIR}${DATADIR}
36         ${INSTALL_MAN} ${WRKSRC}/freesweep.6 ${STAGEDIR}${PREFIX}/man/man6
37
38 do-install-DOCS-on:
39         @${MKDIR} ${STAGEDIR}${DOCSDIR}
40 .for file in ${PORTDOCS}
41         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
42 .endfor
43
44 .include <bsd.port.mk>