Enable stage support

This commit is contained in:
Johan van Selst 2013-12-29 13:51:52 +00:00
parent 00336d5574
commit 59fe823710
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337984

View file

@ -7,12 +7,11 @@ CATEGORIES= games net ipv6
MASTER_SITES= http://tetrinet.or.cz/download/
MAINTAINER= johans@FreeBSD.org
COMMENT= A console tetrinet client
COMMENT= Console tetrinet client
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DHAVE_IPV6 -fno-builtin-log"
PLIST_FILES= bin/tetrinet bin/tetrinet-server
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@ -20,21 +19,16 @@ PORTDOCS= README tetrinet.txt
.endif
post-patch:
${REINPLACE_CMD} -e '/-log/n; s/[[:<:]]log[[:>:]]/dolog/g' \
@${REINPLACE_CMD} -e '/-log/n; s/[[:<:]]log[[:>:]]/dolog/g' \
${WRKSRC}/tetrinet.h ${WRKSRC}/tetrinet.c ${WRKSRC}/sockets.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet-server ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/tetrinet ${WRKSRC}/tetrinet-server \
${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${PREFIX}/share/doc/tetrinet
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tetrinet
${INSTALL_DATA} ${WRKSRC}/tetrinet.txt ${PREFIX}/share/doc/tetrinet
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tetrinet.txt \
${STAGEDIR}${DOCSDIR}
.endif
post-install:
@${ECHO}
@${CAT} ${PKGMESSAGE}
@${ECHO}
.include <bsd.port.mk>