openbsd-ports/games/tetrinetx/Makefile
2011-12-02 14:36:13 +00:00

52 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2011/12/02 14:36:14 espie Exp $
COMMENT= tetrinet server
DISTNAME= tetrinetx-1.13.16+qirc-1.40c
PKGNAME= tetrinetx-1.13.16
CATEGORIES= games
HOMEPAGE= http://tetrinetx.sourceforge.net/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tetrinetx/}
MAINTAINER= Simon Bertrang <simon@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c adns
LIB_DEPENDS= net/adns
WRKSRC= ${WRKDIST}/src
NO_REGRESS= Yes
FLAVORS= ipv6
FLAVOR?=
.if ${FLAVOR:Mipv6}
CFLAGS+= -DUSE_IPV6
.endif
CFLAGS+= -fno-strength-reduce -DCONFDIR="\"${SYSCONFDIR}/tetrinetx\""
post-patch:
@rm -f ${WRKDIST}/bin/game.*.orig
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include \
main.c -o tetrinetx -L${LOCALBASE}/lib -ladns
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/tetrinetx ${PREFIX}/bin
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tetrinetx
@${INSTALL_DATA} ${WRKDIST}/README* ${PREFIX}/share/doc/tetrinetx
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tetrinetx
@${INSTALL_DATA} ${WRKDIST}/bin/game.* ${PREFIX}/share/examples/tetrinetx
.include <bsd.port.mk>