1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/games/nsnake/Makefile
Muhammad Moinur Rahman 90661901cc games/nsnake: Sanitize MANPREFIX
Approved by:	portmgr (blanket)
2024-01-21 16:26:54 +01:00

34 lines
813 B
Makefile

PORTNAME= nsnake
DISTVERSION= 2.2.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://releases.malikania.fr/nsnake/${PORTVERSION}/
MAINTAINER= markand@malikania.fr
COMMENT= Snake game written in C and ncurses
WWW= https://projects.malikania.fr/nsnake/
LICENSE= ISCL
USES= ncurses tar:xz
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
MAKE_ENV= CC="$CC" \
CFLAGS+="$CFLAGS" \
LDFLAGS+="$LDFLAGS"
post-patch:
@${REINPLACE_CMD} -e 's|VARDIR=.*|VARDIR=/var|' \
${WRKSRC}/config.mk
do-install:
(cd ${WRKSRC} \
&& ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin \
&& ${INSTALL_MAN} ${PORTNAME}.6 ${STAGEDIR}${PREFIX}/share/man/man6)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGES.md ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}/var/db/nsnake
.include <bsd.port.mk>