aboutsummaryrefslogtreecommitdiffstats
path: root/games/bzflag/Makefile
blob: 399eb497c1ac5fc37acf9827415bba2d6b31cb50 (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
# $FreeBSD$

PORTNAME=   bzflag
PORTVERSION=    2.4.2
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}%20source/${PORTVERSION}

MAINTAINER= kevinz5000@gmail.com
COMMENT?=   Multiplayer 3D tank battle game

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libcurl.so:ftp/curl

GNU_CONFIGURE=  yes
USES=       libtool tar:bzip2

.ifndef SERVER_ONLY
USE_GL=     glew
USE_SDL=    sdl
.endif

MAKE_JOBS_UNSAFE=   yes

CONFIGURE_ARGS= --enable-ares-build
CPPFLAGS+=  -I ${LOCALBASE}/include

.ifdef SERVER_ONLY
CONFIGURE_ARGS+=    --disable-client
PLIST_SUB+=     CLIENT="@comment "
.else
DESKTOP_ENTRIES=    "BZFlag" "Battle enemy tanks" \
            "${DATADIR}/bzflag-256x256.png" \
            "bzflag" "Game;ActionGame;" false
PLIST_SUB+=     CLIENT=""
.endif

.include <bsd.port.mk>