# Created by: Alejandro Pulver # $FreeBSD$ PORTNAME= darkplaces PORTVERSION= 20110628 PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://offload1.icculus.org:9090/twilight/darkplaces/files/ DISTNAME= ${PORTNAME}engine${PORTVERSION} MAINTAINER= makc@FreeBSD.org COMMENT= Quake engine modification USES= dos2unix gmake zip:infozip USE_XORG= xxf86dga xpm DOS2UNIX_FILES= darkplaces.txt MAKE_ENV= DP_FS_BASEDIR="${Q1DIR}" WRKSRC= ${WRKDIR}/${PORTNAME} MAKEFILE= makefile ALL_TARGET= # OPTIONS_DEFINE= DOCS 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 PLIST_FILES= %%DATADIR%%/dummy PLIST_DIRS= %%DATADIR%% PORTDOCS= darkplaces.txt .include "${.CURDIR}/../quake-data/Makefile.include" .include .if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSDL} USE_GL= glu # Loads libraries at run-time, thus RUN_DEPENDS. RUN_DEPENDS+= ${LOCALBASE}/lib/libjpeg.so:${PORTSDIR}/graphics/jpeg \ ${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis .endif .if ${PORT_OPTIONS:MCLIENT} ALL_TARGET+= cl-release EXE_TARGETS+= ${PORTNAME}-glx PLIST_SUB+= CLIENT="" PLIST_FILES+= bin/${PORTNAME}-glx DESKTOP_ENTRIES+="Darkplaces GLX Client" "" "" "darkplaces-glx" \ "" "false" .endif .if ${PORT_OPTIONS:MDEDICATED} ALL_TARGET+= sv-release EXE_TARGETS+= ${PORTNAME}-dedicated PLIST_FILES+= bin/${PORTNAME}-dedicated .endif .if ${PORT_OPTIONS:MSDL} USE_SDL= sdl ALL_TARGET+= sdl-release EXE_TARGETS+= ${PORTNAME}-sdl PLIST_FILES+= bin/${PORTNAME}-sdl DESKTOP_ENTRIES+="Darkplaces SDL Client" "" "" "darkplaces-sdl" \ "" "false" .endif post-extract: @${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \ ${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \ -d ${WRKDIR} do-install: ${INSTALL_PROGRAM} ${EXE_TARGETS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} @${TOUCH} ${STAGEDIR}${DATADIR}/dummy .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/darkplaces.txt ${STAGEDIR}${DOCSDIR} .endif BROKEN_ia64= does not compile: unrecognized command line option "-msse2" BROKEN_powerpc= ${BROKEN_ia64} BROKEN_sparc64= ${BROKEN_ia64} .include