summaryrefslogtreecommitdiff
path: root/games/bzflag/Makefile
blob: 2ef9d4c610b38dfede7527a3be62110201896c9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for: bzflag
# Date created:		2000/08/12
# Whom:			makeport.pl
#
# $FreeBSD$
#

PORTNAME=	bzflag
PORTVERSION=	1.7g.0
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A multiplayer 3D tank battle game

USE_XLIB=	yes
USE_MESA=	yes
USE_REINPLACE=	yes

MAKE_ENV=	PORTCFLAGS="${CFLAGS}" PORTCXXFLAGS="${CXXFLAGS}" \
		PORTPREFIX="${PREFIX}" PTHREAD_LIBS="${PTHREAD_LIBS}" \
		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"

MAN6=	bzflag.6 bzfrelay.6 bzfls.6 bzfs.6

do-configure:
	@${CP} ${FILESDIR}/config-sys ${WRKSRC}/
	${REINPLACE_CMD} "s,libusb.h,libusbhid.h,g" \
		${WRKSRC}/src/platform/XWindow.h
	${REINPLACE_CMD} "s,malloc.h,stdlib.h,g" \
		${WRKSRC}/src/bzflag/HUDRenderer.cxx

post-build:
	@(cd ${WRKSRC}/man && ${MAKE} targets)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/man/*.6 ${MANPREFIX}/man/man6/
	@${MKDIR} ${DATADIR}/data
	${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data/

.include <bsd.port.mk>