tome stable port information

Package: tome
Version: 2.3.5
Revision: 1
Maintainer: None
Source: http://www.t-o-m-e.net/dl/src/%n-235-src.tar.bz2
Source-MD5: 751ea71973413d3b54644cf86b20758f
BuildDepends: fink (>= 0.24.12), libncurses5-dev
Depends: <<
libncurses5-shlibs (>= 5.7-20100227-2),
lua51,
passwd-games
<<

PatchFile: %n.patch
PatchFile-MD5: 36d37410d33675d4dd22a0e9141b50bc
PatchScript: <<
sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
<<

CompileScript: <<
#!/bin/sh -ev
cd src/
make -f makefile.std
<<

InstallScript: <<
#!/bin/sh -ev
cd src/
make -f makefile.std install DESTDIR=%d
mkdir -p %i/var/games/%n/lib/
### Do all the data files really have to be world writeable? (HN: 2010-10-08)
### Comment out for now until feedback says otherwise.
#find %i/var/games/ -exec chmod ugo+w {} \;
<<
PostInstScript: <<
chown -R games %p/var/games/%n/lib %p/bin/%n
<<
DocFiles: changes.old changes.txt credits.txt lib/help/* Copyright
Description: Troubles of Middle Earth, curses-based RPG

DescDetail: <<
Angband is a roguelike dungeon exploration game based on JRR Tolkien's
works. There are a lot of Angband variants because Angband's sources were
cleaned up by a remarkable person, Ben Harrison, which meant that as more
people could understand the code, more people made variants. ToME, expands
upon the Middle-Earth influence and is based on Zangband 2.2.0. ToME now
follows the Tolkien world more closely than any other variant!
<<

DescPort: <<
tome should be running suid games, but I couldn't figure out why tome was
dropping uid while writing to lib directories. Therefore I am temporarily
making the lib directory world-writable until I can figure out what to do
about this.
<<

License: GPL
Homepage: http://www.t-o-m-e.net/
DescPackaging: Previously maintained by James Gibbs.

tome stable port .patch

diff -Naur tome-231-src/Copyright tome-231-src-patched/Copyright
--- tome-231-src/Copyright Wed Dec 31 19:00:00 1969
+++ tome-231-src-patched/Copyright Sun Feb 27 11:25:45 2005
@@ -0,0 +1,64 @@
+Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
+
+This software may be copied and distributed for educational, research,
+and not for profit purposes provided that this copyright and statement
+are included in all such copies. Other copyrights may also apply.
+
+
+All changes made by Ben Harrison, Robert Ruehlmann, and many other Angband
+developers are also available under the GNU GENERAL PUBLIC LICENSE.
+Note that this doesn't influence the current distribution, since parts of
+the source are still only available under the old Moria/Angband license.
+Until all parts of Angband are distributed under the GPL the only valid
+license remains the original Moria/Angband license.
+
+More informations about Angband and the GPL can be found at:
+http://thangorodrim.angband.org/development/opensource.html
+
+
+
+ Copyright (c) 1989 James E. Wilson
+ Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
+
+ This software may be copied and distributed for educational, research, and
+ not for profit purposes provided that this copyright and statement are
+ included in all such copies.
+
+ Note that these copyright messages apply to an ancient version
+ of Angband, as in, from pre-2.4.frog-knows days, and thus the
+ reference to "5.0" is rather misleading...
+
+ UNIX ANGBAND Version 5.0
+
+ Original copyright message follows.
+
+ ANGBAND Version 4.8 COPYRIGHT (c) Robert Alan Koeneke
+
+ I lovingly dedicate this game to hackers and adventurers
+ everywhere...
+
+ Designer and Programmer:
+ Robert Alan Koeneke
+ University of Oklahoma
+
+ Assistant Programmer:
+ Jimmey Wayne Todd
+ University of Oklahoma
+
+ Assistant Programmer:
+ Gary D. McAdoo
+ University of Oklahoma
+
+ UNIX Port:
+ James E. Wilson
+ UC Berkeley
+ wilson@ernie.Berkeley.EDU
+ ucbvax!ucbernie!wilson
+
+ ANGBAND may be copied and modified freely as long as the above
+ credits are retained. No one who-so-ever may sell or market
+ this software in any form without the expressed written consent
+ of the author Robert Alan Koeneke.
+
+ The Tome variant has been modified by Dark God ,
+ and is available under the same terms as Angband.
diff -Naur tome-231-src/src/config.h tome-231-src-patched/src/config.h
--- tome-231-src/src/config.h Wed Dec 29 19:24:30 2004
+++ tome-231-src-patched/src/config.h Sun Feb 27 11:38:50 2005
@@ -90,7 +90,7 @@
/*
* OPTION: Include "ncurses.h" instead of "curses.h" in "main-gcu.c"
*/
-/* #define USE_NCURSES */
+#define USE_NCURSES


/*
@@ -386,7 +386,7 @@
* that file.
*/
#ifndef DEFAULT_PATH
-# define DEFAULT_PATH "./lib/"
+# define DEFAULT_PATH "@PREFIX@/var/games/tome/lib/"
#endif


@@ -446,7 +446,7 @@
/*
* OPTION: Person to bother if something goes wrong.
*/
-#define MAINTAINER "darkgod@t-o-m-e.net"
+#define MAINTAINER "fink-devel@lists.sourceforge.net"


/*
diff -Naur tome-231-src/src/makefile.std tome-231-src-patched/src/makefile.std
--- tome-231-src/src/makefile.std Wed Dec 29 19:24:30 2004
+++ tome-231-src-patched/src/makefile.std Sun Feb 27 11:35:29 2005
@@ -54,13 +54,13 @@
# Sysadmins of commercial Unix and/or BSD might prefer this
#LIBDIR = /usr/local/lib/tome/
# If you like the old default, use this one
-LIBDIR = ./lib/
+LIBDIR = @PREFIX@/var/games/tome/lib/
# Another example: single user installation using absolute path
#LIBDIR = /home/myloginname/lib/tome/


# Where ToME binary goes
-BINDIR = /usr/local/games
+BINDIR = @PREFIX@/bin
# Another common location
#BINDIR = /usr/local/bin

@@ -126,11 +126,9 @@
# attempt to "guess" at many of these flags based on your system.
#
COPTS = -Wall -O1 -pipe -g
-INCLUDES = -I/usr/X11R6/include
-DEFINES = -DUSE_X11 \
- -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \
- -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK
-LIBS = -L/usr/X11R6/lib -lX11
+INCLUDES = -I@PREFIX@/include/ncurses/ -I@PREFIX@/include/
+DEFINES = -DUSE_GCU -DUSE_NCURSES
+LIBS = -lncurses -lcurses -ltermcap

##
## Variation -- Only support "main-gtk.c" (not "main-gcu.c, main-x11.c")
@@ -470,9 +470,9 @@
[ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR)
[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
cp -r ../lib/* $(DESTDIR)$(LIBDIR)
- chown -R $(OWNER) $(DESTDIR)$(LIBDIR)
+# chown -R $(OWNER) $(DESTDIR)$(LIBDIR)
cp -f $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
- chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET)
+# chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET)
chmod 4755 $(DESTDIR)$(BINDIR)/$(TARGET)

# old-install: $(TARGET)

tome _unstable_ port .patch