mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
34 lines
773 B
Makefile
34 lines
773 B
Makefile
# Created by: markand
|
|
|
|
PORTNAME= nsnake
|
|
PORTVERSION= 2.2.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://releases.malikania.fr/nsnake/${PORTVERSION}/
|
|
|
|
MAINTAINER= markand@malikania.fr
|
|
COMMENT= Snake game written in C and ncurses
|
|
|
|
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}${MANPREFIX}/man/man6)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGES.md ${STAGEDIR}${DOCSDIR})
|
|
@${MKDIR} ${STAGEDIR}/var/db/nsnake
|
|
|
|
.include <bsd.port.mk>
|