2000-08-12 02:28:05 +02:00
|
|
|
# New ports collection makefile for: bzflag
|
|
|
|
# Date created: 2000/08/12
|
|
|
|
# Whom: makeport.pl
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bzflag
|
2003-01-03 21:16:07 +01:00
|
|
|
PORTVERSION= 1.7g.0
|
2000-08-12 02:28:05 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2003-01-03 21:16:07 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
|
2001-04-21 08:28:31 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2000-08-12 02:28:05 +02:00
|
|
|
|
2002-10-21 04:31:08 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2000-08-12 02:28:05 +02:00
|
|
|
|
2000-08-12 03:10:45 +02:00
|
|
|
USE_XLIB= yes
|
2000-11-04 00:48:03 +01:00
|
|
|
USE_MESA= yes
|
2002-09-19 05:38:11 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-08-12 03:10:45 +02:00
|
|
|
|
|
|
|
MAKE_ENV= PORTCFLAGS="${CFLAGS}" PORTCXXFLAGS="${CXXFLAGS}" \
|
2001-08-15 09:09:40 +02:00
|
|
|
PORTPREFIX="${PREFIX}" PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
2000-08-12 03:10:45 +02:00
|
|
|
|
2000-08-12 02:28:05 +02:00
|
|
|
MAN6= bzflag.6 bzfrelay.6 bzfls.6 bzfs.6
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${CP} ${FILESDIR}/config-sys ${WRKSRC}/
|
2002-09-19 05:38:11 +02:00
|
|
|
${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
|
2000-08-12 02:28:05 +02:00
|
|
|
|
2000-08-13 00:01:39 +02:00
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/man && ${MAKE} targets)
|
|
|
|
|
2000-08-12 02:28:05 +02:00
|
|
|
do-install:
|
2003-01-03 21:16:07 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/*.6 ${MANPREFIX}/man/man6/
|
|
|
|
@${MKDIR} ${DATADIR}/data
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data/
|
2000-08-12 02:28:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|