1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/tetrinet/Makefile
2021-04-06 16:31:07 +02:00

40 lines
922 B
Makefile

# Created by: Fredrik Carlsson <fredrik@wasadata.com>
PORTNAME= tetrinet
PORTVERSION= 0.11
PORTREVISION= 1
CATEGORIES= games net
MASTER_SITES= http://tetrinet.or.cz/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Console tetrinet client
LICENSE= PD
USES= ncurses
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DHAVE_IPV6 -fno-builtin-log"
PLIST_FILES= bin/tetrinet bin/tetrinet-server
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README tetrinet.txt
.endif
pre-build:
@${REINPLACE_CMD} -e '/-log/n; s/[[:<:]]log[[:>:]]/dolog/g' \
${WRKSRC}/tetrinet.h ${WRKSRC}/tetrinet.c ${WRKSRC}/sockets.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet ${WRKSRC}/tetrinet-server \
${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tetrinet.txt \
${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>