2003-09-28 14:03:06 +02:00
|
|
|
# New ports collection makefile for: xpilot-ng
|
|
|
|
# Date created: 11 Sep 2003
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xpilot-ng
|
2004-05-02 06:41:36 +02:00
|
|
|
PORTVERSION= 4.6.4
|
2003-09-28 14:03:06 +02:00
|
|
|
CATEGORIES= games
|
2004-05-02 06:41:36 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= xpilot
|
2003-09-28 14:03:06 +02:00
|
|
|
|
2005-04-13 00:10:43 +02:00
|
|
|
MAINTAINER= jylefort@FreeBSD.org
|
2003-09-28 14:03:06 +02:00
|
|
|
COMMENT= An enhanced version of XPilot
|
|
|
|
|
|
|
|
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-05-02 06:41:36 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-09-28 14:03:06 +02:00
|
|
|
|
2004-05-02 06:41:36 +02:00
|
|
|
MAN6= xpilot-ng-replay.6 \
|
|
|
|
xpilot-ng-sdl.6 \
|
|
|
|
xpilot-ng-server.6 \
|
|
|
|
xpilot-ng-x11.6
|
2004-01-30 11:09:20 +01:00
|
|
|
|
2003-09-28 14:03:06 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2004-05-02 06:41:36 +02:00
|
|
|
CONFIGURE_ARGS= --program-prefix=""
|
2003-09-28 14:03:06 +02:00
|
|
|
|
2004-05-02 06:41:36 +02:00
|
|
|
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>
|