1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/xpilot-ng-server/Makefile
Pete Fritchman b99634a9e9 - update to 4.6.4
- move to sourceforge
- add OPTIONS support for SDL

PR:		66002
Submitted by:	maintainer
2004-05-02 04:41:36 +00:00

50 lines
1.0 KiB
Makefile

# 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>