aboutsummaryrefslogtreecommitdiff
path: root/games/rottdc
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-06-18 14:26:43 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-06-18 14:26:43 +0000
commit0a1305413788a57344a47b461b2e3725dab7e223 (patch)
treebc8d846846118a8942d5fcad0d935bf151f358b2 /games/rottdc
parenta3325628ef6f735243a39be0c74d9095be93dc77 (diff)
downloadports-0a1305413788a57344a47b461b2e3725dab7e223.tar.gz
ports-0a1305413788a57344a47b461b2e3725dab7e223.zip
Notes
Diffstat (limited to 'games/rottdc')
-rw-r--r--games/rottdc/Makefile14
-rw-r--r--games/rottdc/files/patch-rt__in.c13
-rw-r--r--games/rottdc/pkg-descr5
3 files changed, 22 insertions, 10 deletions
diff --git a/games/rottdc/Makefile b/games/rottdc/Makefile
index 972b2e691e5d..31c267a73cba 100644
--- a/games/rottdc/Makefile
+++ b/games/rottdc/Makefile
@@ -1,17 +1,16 @@
-# New ports collection makefile for: rottdc
-# Date created: 18 Feb 2004
-# Whom: Igor Pokrovsky <tiamat@comset.net>
+# New ports collection makefile for: rottdc
+# Date created: 18 Feb 2004
+# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= rottdc
-PORTVERSION= 1.0.2
+DISTVERSION= 1.0-2
PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sdl-dc
-DISTNAME= ${PORTNAME}-1.0-2
MAINTAINER= ports@FreeBSD.org
COMMENT= Apogee's Rise Of The Triad source port
@@ -23,6 +22,9 @@ USE_XLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/rott
+post-patch:
+ @${REINPLACE_CMD} -e '433s,^static ,,' ${WRKSRC}/rt_actor.c
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rott ${PREFIX}/bin
.ifndef (NOPORTDOCS)
diff --git a/games/rottdc/files/patch-rt__in.c b/games/rottdc/files/patch-rt__in.c
index 30d3b4b7c4cb..c09d3780c16b 100644
--- a/games/rottdc/files/patch-rt__in.c
+++ b/games/rottdc/files/patch-rt__in.c
@@ -1,5 +1,18 @@
--- rt_in.c.orig Wed Feb 18 08:30:12 2004
+++ rt_in.c Wed Feb 18 08:54:20 2004
+@@ -155,9 +155,9 @@
+ //
+ //****************************************************************************]
+
+-static KeyboardDef KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};
+-static JoystickDef JoyDefs[MaxJoys];
+-static ControlType Controls[MAXPLAYERS];
++KeyboardDef KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};
++JoystickDef JoyDefs[MaxJoys];
++ControlType Controls[MAXPLAYERS];
+
+
+ static boolean IN_Started;
@@ -665,14 +665,16 @@
{
diff --git a/games/rottdc/pkg-descr b/games/rottdc/pkg-descr
index b87a0471f59e..c6f1eee9194f 100644
--- a/games/rottdc/pkg-descr
+++ b/games/rottdc/pkg-descr
@@ -3,7 +3,4 @@ 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.
-WWW: http://sdl-dc.sourceforge.net/
-
-- Igor Pokrovsky
-tiamat@comset.net
+WWW: http://sdl-dc.sourceforge.net/