43 lines
1015 B
Makefile
43 lines
1015 B
Makefile
PORTNAME= freesweep
|
|
PORTVERSION= 1.0.2
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= fuz@FreeBSD.org
|
|
COMMENT= Minesweeper-style game for text-mode terminals
|
|
WWW= https://github.com/rwestlund/freesweep
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= gmake ncurses
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rwestlund
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-prefsdir=${DATADIR} \
|
|
--with-scoresdir=/var/games
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
MAKE_ARGS= VERSION='"${PORTVERSION}"'
|
|
|
|
PORTDOCS= README.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/freesweep ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}/var/games
|
|
${TOUCH} ${STAGEDIR}/var/games/sweeptimes.sample
|
|
${INSTALL_DATA} ${WRKSRC}/sweeprc ${STAGEDIR}${DATADIR}
|
|
${INSTALL_MAN} ${WRKSRC}/freesweep.6 ${STAGEDIR}${PREFIX}/share/man/man6
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|