mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
428bb1470b
This fixes compilation on CURRENT
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# New ports collection makefile for: tetrinet
|
|
# Date created: 23 Februari 2001
|
|
# Whom: 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= A console tetrinet client
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DHAVE_IPV6 -fno-builtin-log"
|
|
PLIST_FILES= bin/tetrinet bin/tetrinet-server
|
|
|
|
.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 ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet-server ${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
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO}
|
|
|
|
.include <bsd.port.mk>
|