Date: Tue, 06 Apr 2004 16:46:43 +0200 From: Radim Kolar <hsn@netmag.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/65257: new port: games/d2x Message-ID: <E1BArqd-000Jcb-3V@asura.bsd> Resent-Message-ID: <200404061620.i36GK7Eu042484@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 65257 >Category: ports >Synopsis: new port: games/d2x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Apr 06 09:20:07 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Radim Kolar >Release: FreeBSD 5.2.1-RELEASE-p3 i386 >Organization: Sanatana Dharma >Environment: System: FreeBSD asura.bsd 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #6: Mon Apr 5 17:41:24 CEST 2004 root@asura.bsd:/usr/src/sys/i386/compile/UP i386 >Description: Here comes a unix Descent 1/2 game. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # d2x/ # d2x/Makefile # d2x/distinfo # d2x/pkg-message # d2x/files # d2x/files/patch-mem.c # d2x/files/patch-pstypes # d2x/files/patch-console.c # d2x/pkg-descr # echo c - d2x/ mkdir -p d2x/ > /dev/null 2>&1 echo x - d2x/Makefile sed 's/^X//' >d2x/Makefile << 'END-of-d2x/Makefile' X# New ports collection makefile for: d2x X# Date created: 5 Apr 2004 X# Whom: Radim Kolar X# X# $FreeBSD$ X# X XPORTNAME= d2x XPORTVERSION= 0.2.5 XCATEGORIES= games XMASTER_SITES= http://www.icculus.org/d2x/src/ X XMAINTAINER= hsn@netmag.cz XCOMMENT= Unix port of Descent 2 Game X XGNU_CONFIGURE= yes XUSE_SDL= sdl image XUSE_GMAKE= yes X XCONFIGURE_ARGS= --disable-network --disable-debug X XPORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt XPLIST_FILES= bin/d2x X Xdo-install: X ${INSTALL} ${WRKSRC}/d2x-sdl ${PREFIX}/bin/d2x X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for i in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} X.endfor X.endif X ${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-d2x/Makefile echo x - d2x/distinfo sed 's/^X//' >d2x/distinfo << 'END-of-d2x/distinfo' XMD5 (d2x-0.2.5.tar.gz) = 79474db1ff4f0ae1fb76d691701cc560 XSIZE (d2x-0.2.5.tar.gz) = 2015249 END-of-d2x/distinfo echo x - d2x/pkg-message sed 's/^X//' >d2x/pkg-message << 'END-of-d2x/pkg-message' XYou need to get datafiles from original Descent 2 or 1 game. XDescent has also shareware edition, which is freely Xdownloadable from d2x home page. Read file installation.txt for Xmore information. END-of-d2x/pkg-message echo c - d2x/files mkdir -p d2x/files > /dev/null 2>&1 echo x - d2x/files/patch-mem.c sed 's/^X//' >d2x/files/patch-mem.c << 'END-of-d2x/files/patch-mem.c' X--- mem/mem.c.orig Mon Apr 5 15:37:36 2004 X+++ mem/mem.c Mon Apr 5 15:38:11 2004 X@@ -34,11 +34,6 @@ X #include <stdio.h> X #include <stdlib.h> X #include <string.h> X-#if defined(__APPLE__) && defined(__MACH__) X-#include <sys/malloc.h> X-#else X-#include <malloc.h> X-#endif X #include "pstypes.h" X #include "mono.h" X #include "error.h" END-of-d2x/files/patch-mem.c echo x - d2x/files/patch-pstypes sed 's/^X//' >d2x/files/patch-pstypes << 'END-of-d2x/files/patch-pstypes' X--- include/pstypes.h.orig Sat Apr 12 01:51:48 2003 X+++ include/pstypes.h Mon Apr 5 17:45:06 2004 X@@ -46,7 +46,7 @@ X # include <sys/types.h> X # define _MAX_PATH 1024 X # define _MAX_DIR 256 X-# if defined(__APPLE__) && defined(__MACH__) X+# if ( defined(__APPLE__) && defined(__MACH__)) || defined (__FreeBSD__) X typedef unsigned long ulong; X # endif X # ifdef __sun__ END-of-d2x/files/patch-pstypes echo x - d2x/files/patch-console.c sed 's/^X//' >d2x/files/patch-console.c << 'END-of-d2x/files/patch-console.c' X--- main/console.c.orig Fri Jun 6 23:59:49 2003 X+++ main/console.c Tue Apr 6 14:45:18 2004 X@@ -70,7 +70,7 @@ X va_list arglist; X char buffer[2048]; X X- if (priority <= ((int)con_threshold.value)) X+ if (priority <= ((int)con_threshold.value) && fmt) X { X va_start (arglist, fmt); X vsprintf (buffer, fmt, arglist); END-of-d2x/files/patch-console.c echo x - d2x/pkg-descr sed 's/^X//' >d2x/pkg-descr << 'END-of-d2x/pkg-descr' XD2X is a Unix port of game Descent made by Parallax software. XYou need to own orignal game or download shareware datafiles. X XWWW: http://www.icculus.org/d2x/ END-of-d2x/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BArqd-000Jcb-3V>