2013-01-07 02:07:26 +00:00
|
|
|
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
|
2003-09-28 12:03:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
PORTNAME= xpilot-ng
|
2010-11-18 11:46:45 +00:00
|
|
|
PORTVERSION= 4.7.3
|
2017-05-23 05:03:14 +00:00
|
|
|
PORTREVISION?= 5
|
2005-05-15 01:17:05 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/xpilot/xpilot_ng/${PORTNAME}-${PORTVERSION}
|
2005-05-15 01:17:05 +00:00
|
|
|
PKGNAMESUFFIX?= -server
|
2003-09-28 12:03:06 +00:00
|
|
|
|
2006-10-31 14:22:37 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-01-07 02:07:26 +00:00
|
|
|
COMMENT?= Enhanced version of XPilot (server program)
|
2003-09-28 12:03:06 +00:00
|
|
|
|
2016-01-12 16:20:31 +00:00
|
|
|
LICENSE= GPLv2+
|
2014-11-24 14:06:54 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2010-11-18 11:46:45 +00:00
|
|
|
|
2016-04-01 14:00:51 +00:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2
|
2003-09-28 12:03:06 +00:00
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-09-28 12:03:06 +00:00
|
|
|
|
2013-06-11 16:15:53 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -Wno-return-type
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-01-30 10:09:20 +00:00
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
CONFIGURE_ARGS= --program-prefix=""
|
2003-09-28 12:03:06 +00:00
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
PKGFILESUFFIX= ${PKGNAMESUFFIX:S/-/./}
|
|
|
|
DESCR= ${PKGDIR}/pkg-descr${PKGFILESUFFIX}
|
|
|
|
PLIST= ${PKGDIR}/pkg-plist${PKGFILESUFFIX}
|
|
|
|
|
|
|
|
.if ${PKGNAMESUFFIX} == "-server"
|
|
|
|
CONFIGURE_ARGS+=--disable-replay \
|
|
|
|
--disable-xp-mapedit \
|
|
|
|
--disable-x11-client \
|
|
|
|
--disable-sdl-client
|
|
|
|
.else # client
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -I${LOCALBASE}/include
|
2005-05-15 01:17:05 +00:00
|
|
|
|
2010-11-18 11:46:45 +00:00
|
|
|
DESKTOP_ENTRIES= "Xpilot-ng X11" "Xpilot game client program" \
|
|
|
|
"" "xpilot-ng-x11" "Game;ArcadeGame;" false \
|
|
|
|
"Xpilot-ng Map Editor" "Xpilot Map Editor" \
|
|
|
|
"" "xpilot-ng-xp-mapedit" "Game;ArcadeGame;" false
|
2014-07-06 10:31:55 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= SDL SOUND
|
|
|
|
OPTIONS_DEFAULT= SDL
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
SOUND_DESC= Enable sound support
|
|
|
|
SOUND_CONFIGURE_ENABLE= sound
|
|
|
|
SOUND_USES= openal:al,alut
|
|
|
|
|
|
|
|
SDL_CONFIGURE_ENABLE= sdl-client
|
|
|
|
SDL_USE= SDL=image,sdl,ttf GL=yes
|
2005-05-15 01:17:05 +00:00
|
|
|
.endif
|
2004-05-02 04:41:36 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2004-05-02 04:41:36 +00:00
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
.if ${PKGNAMESUFFIX} == "-server"
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|xpilot-ng-sdl\.man||; \
|
|
|
|
s|xpilot-ng-x11\.man||; \
|
|
|
|
s|xpilot-ng-replay\.man||; \
|
|
|
|
s|xpilot-ng-xp-mapedit\.man||' ${WRKSRC}/doc/man/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's| fonts||; s| textures||; s| shipshapes\.txt||' \
|
|
|
|
${WRKSRC}/lib/Makefile.in
|
|
|
|
.else # client
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2010-11-18 11:46:45 +00:00
|
|
|
DESKTOP_ENTRIES+= "Xpilot-ng SDL" "Xpilot game client program" \
|
|
|
|
"" "xpilot-ng-sdl" "Game;ArcadeGame;" false
|
2004-05-02 04:41:36 +00:00
|
|
|
.endif
|
|
|
|
|
2005-05-15 01:17:05 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|mapconvert\.py||' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|xpilot-ng-server\.man||' \
|
|
|
|
${WRKSRC}/doc/man/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's| maps||; s|defaults\.txt password\.txt robots\.txt||' \
|
|
|
|
${WRKSRC}/lib/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's| server||' ${WRKSRC}/src/Makefile.in
|
2012-06-12 16:35:45 +00:00
|
|
|
.if empty(PORT_OPTIONS:MSDL)
|
2005-05-15 01:17:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|xpilot-ng-sdl\.man||' \
|
|
|
|
${WRKSRC}/doc/man/Makefile.in
|
|
|
|
.endif
|
|
|
|
.endif
|
2004-05-02 04:41:36 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.mk>
|