Fix packaging

This commit is contained in:
Antoine Brodin 2014-11-01 09:48:47 +00:00
parent 268e053c8d
commit 36a068a9b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371998

View File

@ -6,18 +6,17 @@ PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://releases.malikania.fr/nsnake/
EXTRACT_SUFX= .tgz
MAINTAINER= demelier.david@gmail.com
COMMENT= Snake game written in C and ncurses
LICENSE= MIT
USES= tar:tgz
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c -lcurses)
@ -25,9 +24,8 @@ do-install:
(cd ${WRKSRC} \
&& ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin \
&& ${INSTALL_MAN} ${PORTNAME}.6 ${STAGEDIR}${MANPREFIX}/man/man6)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${STAGEDIR}${DOCSDIR})
.endif
@${MKDIR} ${STAGEDIR}/var/db/nsnake
.include <bsd.port.mk>