1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

D2X-XL is a community modified version of Icculus's D2X port,

the original Unix port of Descent by Parallax software.  It
contains many bug fixes and improvements since Icculus stopped
working on D2X.

You need to own the orignal game or download demo data
files.

WWW: http://www.descent2.de/

PR:		132086
Submitted by:	Aragon Gouveia <aragon at phat dot za dot net>
This commit is contained in:
Dmitry Marakasov 2009-03-04 12:16:29 +00:00
parent 26766b92d2
commit bf0afd0d77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229464
6 changed files with 94 additions and 0 deletions

View File

@ -157,6 +157,7 @@
SUBDIR += cultivation
SUBDIR += cursive
SUBDIR += d2x
SUBDIR += d2x-xl
SUBDIR += daimonin-client
SUBDIR += dangen
SUBDIR += dangerdeep

62
games/d2x-xl/Makefile Normal file
View File

@ -0,0 +1,62 @@
# New ports collection makefile for: d2x-xl
# Date created: 25 Feb 2009
# Whom: Aragon Gouveia
#
# $FreeBSD$
#
PORTNAME= d2x-xl
PORTVERSION= 1.13.127
CATEGORIES= games
MASTER_SITES= http://www.descent2.de/downloads/
DISTFILES= ${PORTNAME}-src-${PORTVERSION}.rar
MAINTAINER= aragon@phat.za.net
COMMENT= Community Unix port of Descent 2 Game
EXTRACT_DEPENDS=unrar:${PORTSDIR}/archivers/unrar
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug --enable-release=yes --with-sharepath=${PREFIX}/share/d2x-xl
USE_SDL= sdl mixer
USE_GMAKE= yes
USE_AUTOTOOLS= aclocal:110 \
autoheader:262 \
automake:110 \
autoconf:262
AUTOMAKE_ARGS= --add-missing --copy
USE_DOS2UNIX= missing depcomp
SUB_FILES= pkg-message
PLIST_FILES= bin/d2x-xl
OPTIONS= OPENGL "Use OpenGL for 3D graphics" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_OPENGL)
USE_GL= gl glu glut
CONFIGURE_ARGS+=--with-opengl
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"
.endif
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && \
unrar x ${DISTDIR}/${DISTFILES} >/dev/null && \
unrar x ${PORTNAME}-makefiles.rar >/dev/null && \
${CHMOD} +x configure
post-patch:
@${REINPLACE_CMD} -e '/FLAGS/ s|-O3||; /FLAGS/ s|-g||' \
${WRKSRC}/configure.ac
@cd ${WRKSRC} && \
${FIND} . -name "*.cpp" -o -name "*.h" | \
${XARGS} ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/d2x-xl ${PREFIX}/bin/d2x-xl
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

3
games/d2x-xl/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (d2x-xl-src-1.13.127.rar) = 050a60816b90e5f6e1e6b2c729d3ea22
SHA256 (d2x-xl-src-1.13.127.rar) = a9d856c08b3617412393c80fcdf4a80dd565b2ed8dd375d5f6cedf692288d599
SIZE (d2x-xl-src-1.13.127.rar) = 1406776

View File

@ -0,0 +1,11 @@
--- include/ogl_defs.h.orig 2008-10-09 09:34:21.000000000 +0400
+++ include/ogl_defs.h 2009-02-26 23:25:34.000000000 +0300
@@ -220,7 +220,7 @@
#else //GL_VERSION_20
-# ifdef __macosx__
+# if defined(__macosx__) || defined(__FreeBSD__)
# define glCreateShaderObject glCreateShaderObjectARB
# define glShaderSource glShaderSourceARB
# define glCompileShader glCompileShaderARB

View File

@ -0,0 +1,8 @@
************************************************************
You need to get data files from an original Descent 2 or 1
CD or from the free demo and place them in:
/usr/local/share/d2x-xl/data
See http://www.descent2.de/ for more information and addons.
************************************************************

9
games/d2x-xl/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
D2X-XL is a community modified version of Icculus's D2X port,
the original Unix port of Descent by Parallax software. It
contains many bug fixes and improvements since Icculus stopped
working on D2X.
You need to own the orignal game or download demo data
files.
WWW: http://www.descent2.de/