From igor@doom.homeunix.org  Wed Feb 18 19:11:09 2004
Return-Path: <igor@doom.homeunix.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C11FD16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Feb 2004 19:11:09 -0800 (PST)
Received: from doom.homeunix.org (8-114.dialup.comset.net [213.172.8.114])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CC39F43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Feb 2004 19:10:41 -0800 (PST)
	(envelope-from igor@doom.homeunix.org)
Received: from doom.homeunix.org (localhost [127.0.0.1])
	by doom.homeunix.org (8.12.10/8.12.10) with ESMTP id i1J3AGHl000536
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Feb 2004 06:10:23 +0300 (MSK)
	(envelope-from igor@doom.homeunix.org)
Received: (from igor@localhost)
	by doom.homeunix.org (8.12.10/8.12.10/Submit) id i1I7OB1e010890;
	Wed, 18 Feb 2004 10:24:11 +0300 (MSK)
	(envelope-from igor)
Message-Id: <200402180724.i1I7OB1e010890@doom.homeunix.org>
Date: Wed, 18 Feb 2004 10:24:11 +0300 (MSK)
From: Igor Pokrovsky <tiamat@comset.net>
Reply-To: Igor Pokrovsky <tiamat@comset.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: games/rottdc Apogee's Rise Of The Triad source port
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63049
>Category:       ports
>Synopsis:       New port: games/rottdc Apogee's Rise Of The Triad source port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 18 19:20:12 PST 2004
>Closed-Date:    Thu Feb 19 00:56:55 PST 2004
>Last-Modified:  Thu Feb 19 00:56:55 PST 2004
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Sun Feb 15 17:37:44 MSK 2004 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
This is a port of Apogee's 3D action title Rise of the Triad, originally
released in 1994.  This port duplicates the functionality of the original
game on modern operating systems, including Linux, Win32, OSX and now FreeBSD.
In order to run game you'll need original game data.
	
>How-To-Repeat:
	
>Fix:

	

--- rottdc.shar begins here ---
# 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:
#
#	rottdc
#	rottdc/pkg-plist
#	rottdc/pkg-descr
#	rottdc/distinfo
#	rottdc/Makefile
#	rottdc/files
#	rottdc/files/patch-Makefile
#	rottdc/files/patch-modexlib.c
#	rottdc/files/patch-rt__in.c
#	rottdc/files/patch-rt__cfg.c
#	rottdc/files/patch-develop.h
#	rottdc/pkg-message
#
echo c - rottdc
mkdir -p rottdc > /dev/null 2>&1
echo x - rottdc/pkg-plist
sed 's/^X//' >rottdc/pkg-plist << 'END-of-rottdc/pkg-plist'
Xbin/rott
X%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
X%%PORTDOCS%%%%DOCSDIR%%/cmdline.txt
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-rottdc/pkg-plist
echo x - rottdc/pkg-descr
sed 's/^X//' >rottdc/pkg-descr << 'END-of-rottdc/pkg-descr'
XThis is a port of Apogee's 3D action title Rise of the Triad, originally
Xreleased in 1994.  This port duplicates the functionality of the original
Xgame on modern operating systems, including Linux, Win32, OSX and now FreeBSD.
XIn order to run game you'll need original game data.
X
XWWW:	http://sdl-dc.sourceforge.net/
X
X- Igor Pokrovsky
Xtiamat@comset.net
END-of-rottdc/pkg-descr
echo x - rottdc/distinfo
sed 's/^X//' >rottdc/distinfo << 'END-of-rottdc/distinfo'
XMD5 (rottdc-1.0-2.tar.bz2) = 22eb77e7536d85ad49a495acdcaf9ae5
END-of-rottdc/distinfo
echo x - rottdc/Makefile
sed 's/^X//' >rottdc/Makefile << 'END-of-rottdc/Makefile'
X# New ports collection makefile for: rottdc
X# Date created:		18 Feb 2004
X# Whom:			Igor Pokrovsky <tiamat@comset.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rottdc
XPORTVERSION=	1.0.2
XCATEGORIES=	games
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	sdl-dc
XDISTNAME=	${PORTNAME}-1.0-2
X
XMAINTAINER=	tiamat@comset.net
XCOMMENT=	Apogee's Rise Of The Triad source port
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl mixer
XUSE_XLIB=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/rott
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/rott ${PREFIX}/bin
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA}	${WRKDIR}/${DISTNAME}/README ${DOCSDIR}
X.for i in cheats cmdline
X	${INSTALL_DATA} ${WRKSRC}/${i}.txt ${DOCSDIR}
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-rottdc/Makefile
echo c - rottdc/files
mkdir -p rottdc/files > /dev/null 2>&1
echo x - rottdc/files/patch-Makefile
sed 's/^X//' >rottdc/files/patch-Makefile << 'END-of-rottdc/files/patch-Makefile'
X--- Makefile.orig	Wed Jan  1 12:23:03 2003
X+++ Makefile	Wed Feb 18 08:55:16 2004
X@@ -8,8 +8,8 @@
X #  the build process's behaviour, set it to "true" or "false" (w/o quotes).
X #-----------------------------------------------------------------------------#
X #cygwin := true
X-#cygwin := false
X-cygwin := autodetect
X+cygwin := false
X+#cygwin := autodetect
X 
X # you only need to set these for Cygwin at the moment.
X SDL_INC_DIR = /cygdrive/c/SDL/include
X@@ -40,15 +40,15 @@
X     SDL_LDFLAGS := -L$(SDL_LIB_DIR) -lSDL
X   endif
X else
X-  SDL_CFLAGS := $(shell sdl-config --cflags)
X-  SDL_LDFLAGS := $(shell sdl-config --libs)
X-  EXTRACFLAGS += -DUSE_EXECINFO=1
X+  SDL_CFLAGS := $(shell ${SDL_CONFIG} --cflags)
X+  SDL_LDFLAGS := $(shell ${SDL_CONFIG} --libs)
X+#  EXTRACFLAGS += -DUSE_EXECINFO=1
X endif
X 
X 
X-CC = gcc
X-CFLAGS = -g $(SDL_CFLAGS) -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused $(EXTRACFLAGS)
X-LDLIBS = $(SDL_LDFLAGS) -lSDL -lSDL_mixer $(EXTRALDFLAGS) -Wl,-E
X+#CC = gcc
X+CFLAGS += -g $(SDL_CFLAGS) -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused $(EXTRACFLAGS)
X+LDLIBS = $(SDL_LDFLAGS) -lSDL_mixer $(EXTRALDFLAGS) -Wl,-E
X 
X all: rott
X 
END-of-rottdc/files/patch-Makefile
echo x - rottdc/files/patch-modexlib.c
sed 's/^X//' >rottdc/files/patch-modexlib.c << 'END-of-rottdc/files/patch-modexlib.c'
X--- modexlib.c.orig	Wed Feb 18 08:29:15 2004
X+++ modexlib.c	Wed Feb 18 08:29:58 2004
X@@ -418,7 +418,7 @@
X 	    Error ("Could not initialize SDL\n");
X 	}
X 
X-    #if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX)
X+    #if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX) || defined(PLATFORM_UNIX)
X         // FIXME: remove this.  --ryan.
X         flags = SDL_FULLSCREEN;
X         SDL_WM_GrabInput(SDL_GRAB_ON);
END-of-rottdc/files/patch-modexlib.c
echo x - rottdc/files/patch-rt__in.c
sed 's/^X//' >rottdc/files/patch-rt__in.c << 'END-of-rottdc/files/patch-rt__in.c'
X--- rt_in.c.orig	Wed Feb 18 08:30:12 2004
X+++ rt_in.c	Wed Feb 18 08:54:20 2004
X@@ -665,14 +665,16 @@
X 
X    {
X    int buttons = 0;
X+#if USE_SDL
X+   int bmask, i;
X+   const static int tbl[] = {SDL_BUTTON_LEFT,SDL_BUTTON_RIGHT,SDL_BUTTON_MIDDLE,SDL_BUTTON_WHEELUP,SDL_BUTTON_WHEELDOWN};
X+#endif
X 
X    IN_PumpEvents();
X 
X #if USE_SDL
X #if 1
X-	int bmask = SDL_GetMouseState(NULL,NULL);
X-	int i;
X-	const static int tbl[] = {SDL_BUTTON_LEFT,SDL_BUTTON_RIGHT,SDL_BUTTON_MIDDLE,SDL_BUTTON_WHEELUP,SDL_BUTTON_WHEELDOWN};
X+	bmask = SDL_GetMouseState(NULL,NULL);
X 	for(i=0;i<sizeof(tbl);i++) {
X 		if (bmask & SDL_BUTTON(tbl[i])) buttons|=1<<i;
X 	}
END-of-rottdc/files/patch-rt__in.c
echo x - rottdc/files/patch-rt__cfg.c
sed 's/^X//' >rottdc/files/patch-rt__cfg.c << 'END-of-rottdc/files/patch-rt__cfg.c'
X--- rt_cfg.c.orig	Wed Feb 18 08:55:40 2004
X+++ rt_cfg.c	Wed Feb 18 08:57:03 2004
X@@ -1047,11 +1047,11 @@
X    byte * vendor;
X    char filename[ 128 ];
X #if (SHAREWARE==1)
X- VENDORDOC=("VENDOR.DOC");
X- VENDORLUMP=("VENDOR");
X+ const char *VENDORDOC=("VENDOR.DOC");
X+ const char *VENDORLUMP=("VENDOR");
X #else
X- VENDORDOC ("LICENSE.DOC");
X- VENDORLUMP ("LICENSE");
X+ const char *VENDORDOC=("LICENSE.DOC");
X+ const char *VENDORLUMP=("LICENSE");
X #endif
X 
X 
END-of-rottdc/files/patch-rt__cfg.c
echo x - rottdc/files/patch-develop.h
sed 's/^X//' >rottdc/files/patch-develop.h << 'END-of-rottdc/files/patch-develop.h'
X--- develop.h.orig	Wed Feb 18 09:00:17 2004
X+++ develop.h	Wed Feb 18 09:01:08 2004
X@@ -41,7 +41,7 @@
X 
X // Make sure only one of the following are on at one time
X #define SHAREWARE   0
X-#define SUPERROTT   0
X+#define SUPERROTT   1
X #define SITELICENSE 0
X 
X // cute little dopefish thing, only works with special patch?
END-of-rottdc/files/patch-develop.h
echo x - rottdc/pkg-message
sed 's/^X//' >rottdc/pkg-message << 'END-of-rottdc/pkg-message'
X******************************************************************
X* Note: Run 'rott' from directory, containing original game data *
X******************************************************************
END-of-rottdc/pkg-message
exit
--- rottdc.shar ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: krion 
Responsible-Changed-When: Wed Feb 18 22:59:50 PST 2004 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63049 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Thu Feb 19 00:56:48 PST 2004 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63049 
>Unformatted:
