openbsd-ports/games/tetrinetx/Makefile

52 lines
1.1 KiB
Makefile
Raw Normal View History

2011-12-02 09:36:13 -05:00
# $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
2010-11-08 13:14:21 -05:00
WANTLIB= c adns
2010-11-16 06:23:25 -05:00
LIB_DEPENDS= net/adns
WRKSRC= ${WRKDIST}/src
NO_REGRESS= Yes
FLAVORS= ipv6
FLAVOR?=
2011-12-02 09:36:13 -05:00
.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>