1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Dark Places is a Quake modification I have built over the course of 6 years on

and off experimenting, it got somewhat of an overhaul when the Quake engine
source code was released, and I began developing a custom OpenGL-only engine
for it and other mods, which supports Windows WGL and Linux GLX, and has
greatly improved graphics and image quality.

WWW: http://icculus.org/twilight/darkplaces/

PR:		ports/85325
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
This commit is contained in:
Renato Botelho 2005-10-04 18:43:18 +00:00
parent c3876a78f0
commit c3820eff95
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144198
7 changed files with 145 additions and 0 deletions

View File

@ -110,6 +110,7 @@
SUBDIR += cursive
SUBDIR += d2x
SUBDIR += daimonin-client
SUBDIR += darkplaces
SUBDIR += deal
SUBDIR += defendguin
SUBDIR += deng

103
games/darkplaces/Makefile Normal file
View File

@ -0,0 +1,103 @@
# New ports collection makefile for: darkplaces
# Date created: 25 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= darkplaces
PORTVERSION= 20050818
CATEGORIES= games
MASTER_SITES= http://offload1.icculus.org/twilight/darkplaces/files/
DISTNAME= ${PORTNAME}engine${PORTVERSION}
MAINTAINER= alejandro@varnet.biz
COMMENT= Quake engine modification
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_REINPLACE= yes
USE_ZIP= yes
MAKEFILE= makefile
ALL_TARGET= #
OPTIONS= CLIENT "Build GLX client" on \
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
SERVER "Build dedicated server" on \
SDL_CLIENT "Build SDL client" on
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if !defined(WITH_CLIENT) && !defined(WITH_SDL_CLIENT) && \
!defined(WITH_DEDICATED)
IGNORE= You must choose at least one option of CLIENT, SDL_CLIENT and DEDICATED
.endif
.if defined(WITH_CLIENT) || defined(WITH_SDL_CLIENT)
# Loads libraries on run-time, thus RUN_DEPENDS
RUN_DEPENDS= ${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis \
${LOCALBASE}/lib/libjpeg.so:${PORTSDIR}/graphics/jpeg
.endif
.if defined(WITH_CLIENT)
USE_GL= yes
ALL_TARGET+= cl-release
PLIST_SUB+= CLIENT=""
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if defined(WITH_SDL_CLIENT)
USE_SDL= sdl
ALL_TARGET+= sdl-release
PLIST_SUB+= SDL_CLIENT=""
.else
PLIST_SUB+= SDL_CLIENT="@comment "
.endif
.if defined(WITH_SERVER)
ALL_TARGET+= sv-release
PLIST_SUB+= SERVER=""
.else
PLIST_SUB+= SERVER="@comment "
.endif
post-extract:
@${UNZIP_CMD} -a -q \
-o ${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
-d ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g ; \
s|/usr/X11R6|${X11BASE}| ; \
s|gcc|${CC}| ; \
s|\(-MD\)|${CFLAGS} \1|' \
${WRKSRC}/${MAKEFILE} ${WRKSRC}/makefile.inc
@${REINPLACE_CMD} -e 's,"\.","${DATADIR}",' ${WRKSRC}/fs.c
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|$$(OPTIM_RELEASE)||' ${WRKSRC}/makefile.inc
.endif
.if ${ARCH} == "alpha"
@${REINPLACE_CMD} -e 's|-ffast-math||' ${WRKSRC}/makefile.inc
.endif
do-install:
@${MKDIR} ${DATADIR}
.for f in ${PORTNAME}-glx ${PORTNAME}-sdl ${PORTNAME}-dedicated
@${TEST} -f ${WRKSRC}/${f} && \
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
@${TEST} -L ${PREFIX}/bin/${PORTNAME} || \
${LN} -s ${PREFIX}/bin/${f} ${PREFIX}/bin/${PORTNAME}
.endfor
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (darkplacesengine20050818.zip) = 004713d24b3e4cc886cdda2c77494b03
SIZE (darkplacesengine20050818.zip) = 6284553

View File

@ -0,0 +1,11 @@
--- netconn.h.orig Thu Aug 18 21:30:57 2005
+++ netconn.h Thu Aug 25 19:20:34 2005
@@ -251,7 +251,7 @@
extern qboolean serverlist_consoleoutput;
-#if !defined(_WIN32) && !defined(__linux__) && !defined(SUNOS)
+#if !defined(_WIN32) && !defined(__linux__) && !defined(SUNOS) && !defined(__FreeBSD__)
#ifndef htonl
extern unsigned long htonl (unsigned long hostlong);
#endif

View File

@ -0,0 +1,5 @@
*******************************************************************************
* Before running DarkPlaces copy Quake 1 data files (id1 directory)
* into %%DATADIR%%.
* Filenames should be in lower case!
*******************************************************************************

View File

@ -0,0 +1,18 @@
Dark Places is a Quake modification I have built over the course of 6 years on
and off experimenting, it got somewhat of an overhaul when the Quake engine
source code was released, and I began developing a custom OpenGL-only engine
for it and other mods, which supports Windows WGL and Linux GLX, and has
greatly improved graphics and image quality.
It can not easily be described, as it is simply an improved Quake, not a total
conversion (yet, anyway).
The realism of shell casings falling to the floor, much improved bullet
impacts, 32bit color alpha blended explosions, blood flying everywhere and
sticking to the walls...
Behind the scenes the code has changed a great deal, I was not content with
the original QuakeC code, and I have greatly changed the engine while
maintaining compatibility with normal quake modifications.
WWW: http://icculus.org/twilight/darkplaces/

View File

@ -0,0 +1,5 @@
bin/darkplaces
%%CLIENT%%bin/darkplaces-glx
%%SDL_CLIENT%%bin/darkplaces-sdl
%%SERVER%%bin/darkplaces-dedicated
@unexec rmdir %D/%%DATADIR%% >/dev/null 2>&1 || echo "If you are permanently removing this port, you should remove the data files and mods left in %D/%%DATADIR%%." | fmt