2013-01-07 03:07:26 +01:00
|
|
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
2005-10-04 20:43:18 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= darkplaces
|
2011-10-25 18:46:11 +02:00
|
|
|
PORTVERSION= 20110628
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 2
|
2005-10-04 20:43:18 +02:00
|
|
|
CATEGORIES= games
|
2009-01-31 22:59:35 +01:00
|
|
|
MASTER_SITES= http://offload1.icculus.org:9090/twilight/darkplaces/files/
|
2005-10-04 20:43:18 +02:00
|
|
|
DISTNAME= ${PORTNAME}engine${PORTVERSION}
|
|
|
|
|
2011-11-11 14:45:26 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2005-10-04 20:43:18 +02:00
|
|
|
COMMENT= Quake engine modification
|
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= dos2unix gmake zip:infozip
|
2008-03-28 18:49:29 +01:00
|
|
|
USE_XORG= xxf86dga xpm
|
2014-03-10 15:49:26 +01:00
|
|
|
DOS2UNIX_FILES= darkplaces.txt
|
2007-09-06 00:55:33 +02:00
|
|
|
MAKE_ENV= DP_FS_BASEDIR="${Q1DIR}"
|
2006-07-24 05:19:09 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2005-10-04 20:43:18 +02:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
ALL_TARGET= #
|
|
|
|
|
2013-05-12 13:48:49 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-07-27 13:03:38 +02:00
|
|
|
OPTIONS_MULTI= MODULE
|
|
|
|
OPTIONS_MULTI_MODULE= CLIENT DEDICATED SDL
|
|
|
|
OPTIONS_DEFAULT= ${OPTIONS_MULTI_MODULE}
|
|
|
|
|
|
|
|
CLIENT_DESC= Build GLX client
|
|
|
|
DEDICATED_DESC= Build dedicated server
|
|
|
|
SDL_DESC= Build SDL client
|
2005-10-04 20:43:18 +02:00
|
|
|
|
2006-03-16 10:12:28 +01:00
|
|
|
PLIST_FILES= %%DATADIR%%/dummy
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2007-09-06 00:55:33 +02:00
|
|
|
PORTDOCS= darkplaces.txt
|
2006-03-16 10:12:28 +01:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
2005-10-04 20:43:18 +02:00
|
|
|
|
2011-10-25 18:46:11 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-10-04 20:43:18 +02:00
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSDL}
|
|
|
|
USE_GL= glu
|
2006-03-16 10:12:28 +01:00
|
|
|
# Loads libraries at run-time, thus RUN_DEPENDS.
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2005-10-04 20:43:18 +02:00
|
|
|
.endif
|
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
2005-10-04 20:43:18 +02:00
|
|
|
ALL_TARGET+= cl-release
|
2006-03-16 10:12:28 +01:00
|
|
|
EXE_TARGETS+= ${PORTNAME}-glx
|
2005-10-04 20:43:18 +02:00
|
|
|
PLIST_SUB+= CLIENT=""
|
2006-03-16 10:12:28 +01:00
|
|
|
PLIST_FILES+= bin/${PORTNAME}-glx
|
2011-10-25 18:46:11 +02:00
|
|
|
DESKTOP_ENTRIES+="Darkplaces GLX Client" "" "" "darkplaces-glx" \
|
2013-01-07 03:07:26 +01:00
|
|
|
"" "false"
|
2006-03-16 10:12:28 +01:00
|
|
|
.endif
|
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
2006-03-16 10:12:28 +01:00
|
|
|
ALL_TARGET+= sv-release
|
|
|
|
EXE_TARGETS+= ${PORTNAME}-dedicated
|
|
|
|
PLIST_FILES+= bin/${PORTNAME}-dedicated
|
|
|
|
.endif
|
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2005-10-04 20:43:18 +02:00
|
|
|
USE_SDL= sdl
|
|
|
|
ALL_TARGET+= sdl-release
|
2006-03-16 10:12:28 +01:00
|
|
|
EXE_TARGETS+= ${PORTNAME}-sdl
|
|
|
|
PLIST_FILES+= bin/${PORTNAME}-sdl
|
2011-10-25 18:46:11 +02:00
|
|
|
DESKTOP_ENTRIES+="Darkplaces SDL Client" "" "" "darkplaces-sdl" \
|
2013-01-07 03:07:26 +01:00
|
|
|
"" "false"
|
2005-10-04 20:43:18 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
2010-06-03 17:54:29 +02:00
|
|
|
@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
|
2005-10-04 20:43:18 +02:00
|
|
|
-d ${WRKDIR}
|
|
|
|
|
|
|
|
do-install:
|
2013-10-23 15:08:41 +02:00
|
|
|
${INSTALL_PROGRAM} ${EXE_TARGETS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@${TOUCH} ${STAGEDIR}${DATADIR}/dummy
|
2012-07-31 15:25:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-23 15:08:41 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/darkplaces.txt ${STAGEDIR}${DOCSDIR}
|
2007-09-06 00:55:33 +02:00
|
|
|
.endif
|
2005-10-04 20:43:18 +02:00
|
|
|
|
2013-10-23 15:08:41 +02:00
|
|
|
BROKEN_ia64= does not compile: unrecognized command line option "-msse2"
|
|
|
|
BROKEN_powerpc= ${BROKEN_ia64}
|
|
|
|
BROKEN_sparc64= ${BROKEN_ia64}
|
2011-12-22 12:05:55 +01:00
|
|
|
|
2013-10-23 15:08:41 +02:00
|
|
|
.include <bsd.port.mk>
|