summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-10-04 18:43:18 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-10-04 18:43:18 +0000
commitc3820eff957152e5ce0e62367bcc3d62ba4f5b0b (patch)
tree4549db86a94086582640e9f7dbcf815f6dc5395d
parentRemove unreachable URL from WWW: line. (diff)
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>
-rw-r--r--games/Makefile1
-rw-r--r--games/darkplaces/Makefile103
-rw-r--r--games/darkplaces/distinfo2
-rw-r--r--games/darkplaces/files/patch-netconn.h11
-rw-r--r--games/darkplaces/files/pkg-message.in5
-rw-r--r--games/darkplaces/pkg-descr18
-rw-r--r--games/darkplaces/pkg-plist5
7 files changed, 145 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 5ec9b80efbe1..4f19fb18eeb5 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -110,6 +110,7 @@
SUBDIR += cursive
SUBDIR += d2x
SUBDIR += daimonin-client
+ SUBDIR += darkplaces
SUBDIR += deal
SUBDIR += defendguin
SUBDIR += deng
diff --git a/games/darkplaces/Makefile b/games/darkplaces/Makefile
new file mode 100644
index 000000000000..7e28620a774f
--- /dev/null
+++ b/games/darkplaces/Makefile
@@ -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>
diff --git a/games/darkplaces/distinfo b/games/darkplaces/distinfo
new file mode 100644
index 000000000000..3e1a2433e8b7
--- /dev/null
+++ b/games/darkplaces/distinfo
@@ -0,0 +1,2 @@
+MD5 (darkplacesengine20050818.zip) = 004713d24b3e4cc886cdda2c77494b03
+SIZE (darkplacesengine20050818.zip) = 6284553
diff --git a/games/darkplaces/files/patch-netconn.h b/games/darkplaces/files/patch-netconn.h
new file mode 100644
index 000000000000..5be71a5463a4
--- /dev/null
+++ b/games/darkplaces/files/patch-netconn.h
@@ -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
diff --git a/games/darkplaces/files/pkg-message.in b/games/darkplaces/files/pkg-message.in
new file mode 100644
index 000000000000..9f2a10ff2067
--- /dev/null
+++ b/games/darkplaces/files/pkg-message.in
@@ -0,0 +1,5 @@
+*******************************************************************************
+* Before running DarkPlaces copy Quake 1 data files (id1 directory)
+* into %%DATADIR%%.
+* Filenames should be in lower case!
+*******************************************************************************
diff --git a/games/darkplaces/pkg-descr b/games/darkplaces/pkg-descr
new file mode 100644
index 000000000000..9613f00c2b1a
--- /dev/null
+++ b/games/darkplaces/pkg-descr
@@ -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/
diff --git a/games/darkplaces/pkg-plist b/games/darkplaces/pkg-plist
new file mode 100644
index 000000000000..3ba2cf26c04e
--- /dev/null
+++ b/games/darkplaces/pkg-plist
@@ -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