aboutsummaryrefslogtreecommitdiffstats
path: root/games/freesweep/Makefile
blob: a710a99d7297d4ff7da855ed17bb4ec035e04dec (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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   freesweep
PORTVERSION=    0.92
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= ports@FreeBSD.org
COMMENT=    Minesweeper-style game for text-mode terminals

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

USES=       gmake ncurses
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-prefsdir=${DATADIR} \
        --with-scoresdir=${DATADIR} \
        --disable-debug-log
ALL_TARGET= ${PORTNAME}

PORTDOCS=   CHANGES README
PLIST_FILES=    "@(,games,2555) bin/${PORTNAME}" man/man6/${PORTNAME}.6.gz \
        %%DATADIR%%/sweeprc "@(,games,0664) %%DATADIR%%/sweeptimes"
PLIST_DIRS= %%DATADIR%%

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/freesweep ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${TOUCH} ${STAGEDIR}${DATADIR}/sweeptimes
    ${INSTALL_DATA} ${WRKSRC}/sweeprc ${STAGEDIR}${DATADIR}
    ${INSTALL_MAN} ${WRKSRC}/freesweep.6 ${STAGEDIR}${PREFIX}/man/man6
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>