aboutsummaryrefslogtreecommitdiffstats
path: root/games/xpilot-ng-client/Makefile
blob: 653ba7f66ce6ff4308a48cdb2de8ecfb20652be0 (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
46
47
48
49
# New ports collection makefile for:    xpilot-ng
# Date created:         11 Sep 2003
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=       xpilot-ng
PORTVERSION=        4.6.4
CATEGORIES=     games
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xpilot

MAINTAINER=     jylefort@brutele.be
COMMENT=        An enhanced version of XPilot

LIB_DEPENDS=        expat:${PORTSDIR}/textproc/expat2

USE_X_PREFIX=       yes
GNU_CONFIGURE=      yes
USE_REINPLACE=      yes

MAN6=           xpilot-ng-replay.6 \
            xpilot-ng-sdl.6 \
            xpilot-ng-server.6 \
            xpilot-ng-x11.6

CONFIGURE_ENV=      CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
            LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS=     --program-prefix=""

OPTIONS=        SDL "SDL/OpenGL client" on

.include <bsd.port.pre.mk>

.if defined(WITH_SDL)
USE_SDL=        image sdl ttf
CONFIGURE_ARGS+=    --enable-sdl-client
PLIST_SUB+=     WITH_SDL=""
USE_GCC=        3.2
.else
PLIST_SUB+=     WITH_SDL="@comment "
.endif

pre-patch:
    @${REINPLACE_CMD} -e 's,#include "SDL/,#include "SDL11/,g' \
        ${WRKSRC}/configure

.include <bsd.port.post.mk>