5005b67362
OPTIONS_DEFINE. This policy has been implemented only recently that's why we have many ports violating this policy. This patch adds the default options specified in the Porter's Handbook to OPTIONS_DEFINE where they are being used. Ports maintained by gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded. Approved by: portmgr (bapt)
36 lines
900 B
Makefile
36 lines
900 B
Makefile
# Created by: Fredrik Carlsson <fredrik@wasadata.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tetrinet
|
|
PORTVERSION= 0.11
|
|
CATEGORIES= games net ipv6
|
|
MASTER_SITES= http://tetrinet.or.cz/download/
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= Console tetrinet client
|
|
|
|
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
|
|
|
|
post-patch:
|
|
@${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>
|