summaryrefslogtreecommitdiff
path: root/games/falcons-eye
diff options
context:
space:
mode:
authorpooka <pooka@pkgsrc.org>2002-01-21 11:56:16 +0000
committerpooka <pooka@pkgsrc.org>2002-01-21 11:56:16 +0000
commit60c5a78963ddac4ed6435750f63ea38f49c0c0e2 (patch)
tree70617b839dc8eb87e31228675434436b7eb226ea /games/falcons-eye
parent929c8d51ae514be74619387fb3960d1ad3ce674d (diff)
downloadpkgsrc-60c5a78963ddac4ed6435750f63ea38f49c0c0e2.tar.gz
Falcon's Eye 1.9.3, isometric Nethack with real graphics.
Originally supplied by collver@linuxfreemail.com in pkg/14359 and subsequently modified somewhat mostly by him.
Diffstat (limited to 'games/falcons-eye')
-rw-r--r--games/falcons-eye/DEINSTALL17
-rw-r--r--games/falcons-eye/DESCR2
-rw-r--r--games/falcons-eye/MESSAGE12
-rw-r--r--games/falcons-eye/Makefile41
-rw-r--r--games/falcons-eye/PLIST261
-rw-r--r--games/falcons-eye/distinfo19
-rw-r--r--games/falcons-eye/patches/patch-aa47
-rw-r--r--games/falcons-eye/patches/patch-ab129
-rw-r--r--games/falcons-eye/patches/patch-ac49
-rw-r--r--games/falcons-eye/patches/patch-ad16
-rw-r--r--games/falcons-eye/patches/patch-ae13
-rw-r--r--games/falcons-eye/patches/patch-af60
-rw-r--r--games/falcons-eye/patches/patch-ag13
-rw-r--r--games/falcons-eye/patches/patch-ba42
-rw-r--r--games/falcons-eye/patches/patch-bb13
-rw-r--r--games/falcons-eye/patches/patch-bc33
-rw-r--r--games/falcons-eye/patches/patch-bd14
-rw-r--r--games/falcons-eye/patches/patch-be13
-rw-r--r--games/falcons-eye/patches/patch-bf468
-rw-r--r--games/falcons-eye/patches/patch-bh16
-rw-r--r--games/falcons-eye/patches/patch-bi27
21 files changed, 1305 insertions, 0 deletions
diff --git a/games/falcons-eye/DEINSTALL b/games/falcons-eye/DEINSTALL
new file mode 100644
index 00000000000..27dde049e85
--- /dev/null
+++ b/games/falcons-eye/DEINSTALL
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/01/21 11:56:16 pooka Exp $
+#
+
+case $2 in
+ DEINSTALL) cat << EOF
+
+ =============================================================
+ The records, log, settings and savegames were not wiped out
+ by this deletion process. If you don't want them around,
+ please remove ${PKG_PREFIX}/share/falcons-eye-dir.
+ =============================================================
+
+EOF
+ ;;
+esac
diff --git a/games/falcons-eye/DESCR b/games/falcons-eye/DESCR
new file mode 100644
index 00000000000..b6c04b5fcf3
--- /dev/null
+++ b/games/falcons-eye/DESCR
@@ -0,0 +1,2 @@
+Falcon's Eye is a mouse-driven interface for NetHack that enhances the
+visuals, audio and accessibility of the game.
diff --git a/games/falcons-eye/MESSAGE b/games/falcons-eye/MESSAGE
new file mode 100644
index 00000000000..496559a122f
--- /dev/null
+++ b/games/falcons-eye/MESSAGE
@@ -0,0 +1,12 @@
+======================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/01/21 11:56:16 pooka Exp $
+
+You can run Falcon's Eye NetHack by simply typing: "falcons-eye"
+
+To configure music and sound effects, run ${PREFIX}/bin/fe-config, or
+simply edit the text files in ${PREFIX}/share/falcons-eye-dir/config/
+
+If the sound effects sound like static noise, try giving SDL a hint.
+For example: export AUDIODEV=/dev/sound0
+
+======================================================================
diff --git a/games/falcons-eye/Makefile b/games/falcons-eye/Makefile
new file mode 100644
index 00000000000..556397731c7
--- /dev/null
+++ b/games/falcons-eye/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/01/21 11:56:16 pooka Exp $
+#
+
+DISTNAME= nethack_source_331_jtp_193
+PKGNAME= falcons-eye-1.9.3
+WRKSRC= ${WRKDIR}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=falconseye/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= collver@linuxfreemail.com
+HOMEPAGE= http://falconseye.sourceforge.net/
+COMMENT= Falcon's Eye NetHack
+
+EXTRACT_CMD= unzip -aq ${DOWNLOADED_DISTFILE}
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= ./sys/unix/setup.sh
+
+BUILDLINK_ONLY= yes
+
+post-patch:
+ @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre
+ @${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' \
+ -e 's|@GZIP_PROGRAM@|'`${ECHO} ${GZIP_CMD} | ${AWK} '{ print $$1 }'`'|g' \
+ < ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
+ @${RM} -f ${WRKSRC}/config.h-pre
+ @${SED} 's@XXXPREFIXXXX@${PREFIX}@g' \
+ <${WRKSRC}/src/fe-config.in >${WRKSRC}/src/fe-config
+
+pre-configure:
+ @${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
+
+pre-install:
+ @${CP} ${WRKSRC}/src/nethack ${WRKSRC}/src/falcons-eye
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/fe-config ${PREFIX}/bin
+
+.include "../../devel/SDL/buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/falcons-eye/PLIST b/games/falcons-eye/PLIST
new file mode 100644
index 00000000000..517f77c4226
--- /dev/null
+++ b/games/falcons-eye/PLIST
@@ -0,0 +1,261 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/21 11:56:16 pooka Exp $
+bin/falcons-eye
+bin/fe-config
+bin/recover-falcons-eye
+share/doc/falcons-eye/Guidebook.txt
+share/falcons-eye-dir/Arc-fila.lev
+share/falcons-eye-dir/Arc-filb.lev
+share/falcons-eye-dir/Arc-goal.lev
+share/falcons-eye-dir/Arc-loca.lev
+share/falcons-eye-dir/Arc-strt.lev
+share/falcons-eye-dir/Bar-fila.lev
+share/falcons-eye-dir/Bar-filb.lev
+share/falcons-eye-dir/Bar-goal.lev
+share/falcons-eye-dir/Bar-loca.lev
+share/falcons-eye-dir/Bar-strt.lev
+share/falcons-eye-dir/Cav-fila.lev
+share/falcons-eye-dir/Cav-filb.lev
+share/falcons-eye-dir/Cav-goal.lev
+share/falcons-eye-dir/Cav-loca.lev
+share/falcons-eye-dir/Cav-strt.lev
+share/falcons-eye-dir/Hea-fila.lev
+share/falcons-eye-dir/Hea-filb.lev
+share/falcons-eye-dir/Hea-goal.lev
+share/falcons-eye-dir/Hea-loca.lev
+share/falcons-eye-dir/Hea-strt.lev
+share/falcons-eye-dir/Kni-fila.lev
+share/falcons-eye-dir/Kni-filb.lev
+share/falcons-eye-dir/Kni-goal.lev
+share/falcons-eye-dir/Kni-loca.lev
+share/falcons-eye-dir/Kni-strt.lev
+share/falcons-eye-dir/Mon-fila.lev
+share/falcons-eye-dir/Mon-filb.lev
+share/falcons-eye-dir/Mon-goal.lev
+share/falcons-eye-dir/Mon-loca.lev
+share/falcons-eye-dir/Mon-strt.lev
+share/falcons-eye-dir/Pri-fila.lev
+share/falcons-eye-dir/Pri-filb.lev
+share/falcons-eye-dir/Pri-goal.lev
+share/falcons-eye-dir/Pri-loca.lev
+share/falcons-eye-dir/Pri-strt.lev
+share/falcons-eye-dir/Ran-fila.lev
+share/falcons-eye-dir/Ran-filb.lev
+share/falcons-eye-dir/Ran-goal.lev
+share/falcons-eye-dir/Ran-loca.lev
+share/falcons-eye-dir/Ran-strt.lev
+share/falcons-eye-dir/Rog-fila.lev
+share/falcons-eye-dir/Rog-filb.lev
+share/falcons-eye-dir/Rog-goal.lev
+share/falcons-eye-dir/Rog-loca.lev
+share/falcons-eye-dir/Rog-strt.lev
+share/falcons-eye-dir/Sam-fila.lev
+share/falcons-eye-dir/Sam-filb.lev
+share/falcons-eye-dir/Sam-goal.lev
+share/falcons-eye-dir/Sam-loca.lev
+share/falcons-eye-dir/Sam-strt.lev
+share/falcons-eye-dir/Tou-fila.lev
+share/falcons-eye-dir/Tou-filb.lev
+share/falcons-eye-dir/Tou-goal.lev
+share/falcons-eye-dir/Tou-loca.lev
+share/falcons-eye-dir/Tou-strt.lev
+share/falcons-eye-dir/Val-fila.lev
+share/falcons-eye-dir/Val-filb.lev
+share/falcons-eye-dir/Val-goal.lev
+share/falcons-eye-dir/Val-loca.lev
+share/falcons-eye-dir/Val-strt.lev
+share/falcons-eye-dir/Wiz-fila.lev
+share/falcons-eye-dir/Wiz-filb.lev
+share/falcons-eye-dir/Wiz-goal.lev
+share/falcons-eye-dir/Wiz-loca.lev
+share/falcons-eye-dir/Wiz-strt.lev
+share/falcons-eye-dir/air.lev
+share/falcons-eye-dir/asmodeus.lev
+share/falcons-eye-dir/astral.lev
+share/falcons-eye-dir/baalz.lev
+share/falcons-eye-dir/bigrm-1.lev
+share/falcons-eye-dir/bigrm-2.lev
+share/falcons-eye-dir/bigrm-3.lev
+share/falcons-eye-dir/bigrm-4.lev
+share/falcons-eye-dir/bigrm-5.lev
+share/falcons-eye-dir/castle.lev
+share/falcons-eye-dir/cmdhelp
+share/falcons-eye-dir/data
+share/falcons-eye-dir/defaults.nh
+share/falcons-eye-dir/dungeon
+share/falcons-eye-dir/earth.lev
+share/falcons-eye-dir/fakewiz1.lev
+share/falcons-eye-dir/fakewiz2.lev
+share/falcons-eye-dir/falcons-eye
+share/falcons-eye-dir/fire.lev
+share/falcons-eye-dir/graphics/backpac5.pcx
+share/falcons-eye-dir/graphics/book1.pcx
+share/falcons-eye-dir/graphics/book2.pcx
+share/falcons-eye-dir/graphics/cairn.pcx
+share/falcons-eye-dir/graphics/chargen2.pcx
+share/falcons-eye-dir/graphics/dawn.pcx
+share/falcons-eye-dir/graphics/dreams.pcx
+share/falcons-eye-dir/graphics/entrance.pcx
+share/falcons-eye-dir/graphics/jtp_cm07.pcx
+share/falcons-eye-dir/graphics/jtp_cm08.pcx
+share/falcons-eye-dir/graphics/jtp_cm09.pcx
+share/falcons-eye-dir/graphics/jtp_cm12.pcx
+share/falcons-eye-dir/graphics/jtp_cm13.pcx
+share/falcons-eye-dir/graphics/jtp_cmb8.pcx
+share/falcons-eye-dir/graphics/jtp_cmc7.pcx
+share/falcons-eye-dir/graphics/jtp_mon6.pcx
+share/falcons-eye-dir/graphics/jtp_mon7.pcx
+share/falcons-eye-dir/graphics/jtp_mou5.pcx
+share/falcons-eye-dir/graphics/jtp_mwi4.pcx
+share/falcons-eye-dir/graphics/jtp_nh_1.pcx
+share/falcons-eye-dir/graphics/jtp_obj1.pcx
+share/falcons-eye-dir/graphics/jtp_obj2.pcx
+share/falcons-eye-dir/graphics/jtp_st10.pcx
+share/falcons-eye-dir/graphics/jtp_win1.pcx
+share/falcons-eye-dir/graphics/mandolin.pcx
+share/falcons-eye-dir/graphics/menuchr2.pcx
+share/falcons-eye-dir/graphics/micons2.pcx
+share/falcons-eye-dir/graphics/night.pcx
+share/falcons-eye-dir/graphics/quitgame.pcx
+share/falcons-eye-dir/graphics/stairway.pcx
+share/falcons-eye-dir/graphics/ttipchr1.pcx
+share/falcons-eye-dir/graphics/valley.pcx
+share/falcons-eye-dir/graphics/walls02a.pcx
+share/falcons-eye-dir/graphics/walls02b.pcx
+share/falcons-eye-dir/graphics/walls02c.pcx
+share/falcons-eye-dir/graphics/walls03a.pcx
+share/falcons-eye-dir/graphics/walls03b.pcx
+share/falcons-eye-dir/graphics/walls03c.pcx
+share/falcons-eye-dir/graphics/yendor.pcx
+share/falcons-eye-dir/help
+share/falcons-eye-dir/hh
+share/falcons-eye-dir/history
+share/falcons-eye-dir/juiblex.lev
+share/falcons-eye-dir/knox.lev
+share/falcons-eye-dir/license
+share/falcons-eye-dir/manual/arrows1.jpg
+share/falcons-eye-dir/manual/arrows2.jpg
+share/falcons-eye-dir/manual/buttonpanel.jpg
+share/falcons-eye-dir/manual/char_arc.jpg
+share/falcons-eye-dir/manual/char_kni.jpg
+share/falcons-eye-dir/manual/char_pri.jpg
+share/falcons-eye-dir/manual/char_ran.jpg
+share/falcons-eye-dir/manual/char_rog.jpg
+share/falcons-eye-dir/manual/char_tou.jpg
+share/falcons-eye-dir/manual/char_val.jpg
+share/falcons-eye-dir/manual/char_wiz.jpg
+share/falcons-eye-dir/manual/contextmenu.jpg
+share/falcons-eye-dir/manual/dng_door.jpg
+share/falcons-eye-dir/manual/dng_strs.jpg
+share/falcons-eye-dir/manual/giantant.jpg
+share/falcons-eye-dir/manual/index.html
+share/falcons-eye-dir/manual/letter_a.jpg
+share/falcons-eye-dir/manual/letter_c.jpg
+share/falcons-eye-dir/manual/letter_m.jpg
+share/falcons-eye-dir/manual/letter_n.jpg
+share/falcons-eye-dir/manual/letter_o.jpg
+share/falcons-eye-dir/manual/letter_r.jpg
+share/falcons-eye-dir/manual/letter_t.jpg
+share/falcons-eye-dir/manual/letter_w.jpg
+share/falcons-eye-dir/manual/letter_y.jpg
+share/falcons-eye-dir/manual/main.html
+share/falcons-eye-dir/manual/main_10.html
+share/falcons-eye-dir/manual/main_11.html
+share/falcons-eye-dir/manual/main_12.html
+share/falcons-eye-dir/manual/main_2.html
+share/falcons-eye-dir/manual/main_3.html
+share/falcons-eye-dir/manual/main_4.html
+share/falcons-eye-dir/manual/main_5.html
+share/falcons-eye-dir/manual/main_6.html
+share/falcons-eye-dir/manual/main_7.html
+share/falcons-eye-dir/manual/main_8.html
+share/falcons-eye-dir/manual/main_9.html
+share/falcons-eye-dir/manual/mapwindow.jpg
+share/falcons-eye-dir/manual/minimap.jpg
+share/falcons-eye-dir/manual/navbar.html
+share/falcons-eye-dir/manual/nhisomet.jpg
+share/falcons-eye-dir/manual/nhmanual.css
+share/falcons-eye-dir/manual/nhnavlog.jpg
+share/falcons-eye-dir/manual/obj_food.jpg
+share/falcons-eye-dir/manual/obj_gem.jpg
+share/falcons-eye-dir/manual/obj_potion.jpg
+share/falcons-eye-dir/manual/obj_ring.jpg
+share/falcons-eye-dir/manual/obj_scroll.jpg
+share/falcons-eye-dir/manual/obj_sword.jpg
+share/falcons-eye-dir/manual/paper1.jpg
+share/falcons-eye-dir/manual/scrollrun.jpg
+share/falcons-eye-dir/manual/statusbar.jpg
+share/falcons-eye-dir/manual/valley.jpg
+share/falcons-eye-dir/manual/wallstyle_full.jpg
+share/falcons-eye-dir/manual/wallstyle_halfheight.jpg
+share/falcons-eye-dir/manual/wallstyle_transparent.jpg
+share/falcons-eye-dir/medusa-1.lev
+share/falcons-eye-dir/medusa-2.lev
+share/falcons-eye-dir/minefill.lev
+share/falcons-eye-dir/minend-1.lev
+share/falcons-eye-dir/minend-2.lev
+share/falcons-eye-dir/minetn-1.lev
+share/falcons-eye-dir/minetn-2.lev
+share/falcons-eye-dir/nethack.ico
+share/falcons-eye-dir/opthelp
+share/falcons-eye-dir/options
+share/falcons-eye-dir/oracle.lev
+share/falcons-eye-dir/oracles
+share/falcons-eye-dir/orcus.lev
+share/falcons-eye-dir/perm
+share/falcons-eye-dir/quest.dat
+share/falcons-eye-dir/rumors
+share/falcons-eye-dir/sanctum.lev
+share/falcons-eye-dir/soko1-1.lev
+share/falcons-eye-dir/soko1-2.lev
+share/falcons-eye-dir/soko2-1.lev
+share/falcons-eye-dir/soko2-2.lev
+share/falcons-eye-dir/soko3-1.lev
+share/falcons-eye-dir/soko3-2.lev
+share/falcons-eye-dir/soko4-1.lev
+share/falcons-eye-dir/soko4-2.lev
+share/falcons-eye-dir/sound/aircaves.mid
+share/falcons-eye-dir/sound/ambient1.mid
+share/falcons-eye-dir/sound/ambient2.mid
+share/falcons-eye-dir/sound/ascended.mid
+share/falcons-eye-dir/sound/battle1.mid
+share/falcons-eye-dir/sound/battle2.mid
+share/falcons-eye-dir/sound/bell.raw
+share/falcons-eye-dir/sound/cat.raw
+share/falcons-eye-dir/sound/cldoor.raw
+share/falcons-eye-dir/sound/counting.raw
+share/falcons-eye-dir/sound/died.mid
+share/falcons-eye-dir/sound/dog.raw
+share/falcons-eye-dir/sound/earthcav.mid
+share/falcons-eye-dir/sound/firecave.mid
+share/falcons-eye-dir/sound/fountain.raw
+share/falcons-eye-dir/sound/intro.mid
+share/falcons-eye-dir/sound/lament1.mid
+share/falcons-eye-dir/sound/lament2.mid
+share/falcons-eye-dir/sound/levelup.mid
+share/falcons-eye-dir/sound/levelup.raw
+share/falcons-eye-dir/sound/lion.raw
+share/falcons-eye-dir/sound/mines.mid
+share/falcons-eye-dir/sound/nethack.mid
+share/falcons-eye-dir/sound/opdoor.raw
+share/falcons-eye-dir/sound/oracle.mid
+share/falcons-eye-dir/sound/quit.mid
+share/falcons-eye-dir/sound/roar.raw
+share/falcons-eye-dir/sound/shopping.mid
+share/falcons-eye-dir/sound/swordhit.raw
+share/falcons-eye-dir/sound/swordmis.raw
+share/falcons-eye-dir/sound/town.mid
+share/falcons-eye-dir/sound/walk.raw
+share/falcons-eye-dir/sound/watercav.mid
+share/falcons-eye-dir/tower1.lev
+share/falcons-eye-dir/tower2.lev
+share/falcons-eye-dir/tower3.lev
+share/falcons-eye-dir/valley.lev
+share/falcons-eye-dir/water.lev
+share/falcons-eye-dir/wizard1.lev
+share/falcons-eye-dir/wizard2.lev
+share/falcons-eye-dir/wizard3.lev
+share/falcons-eye-dir/wizhelp
+@dirrm share/doc/falcons-eye
+@dirrm share/falcons-eye-dir/graphics
+@dirrm share/falcons-eye-dir/manual
+@dirrm share/falcons-eye-dir/sound
diff --git a/games/falcons-eye/distinfo b/games/falcons-eye/distinfo
new file mode 100644
index 00000000000..0fd3ab2f6ba
--- /dev/null
+++ b/games/falcons-eye/distinfo
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/01/21 11:56:16 pooka Exp $
+
+SHA1 (nethack_source_331_jtp_193.zip) = 8e002c7f7ca039de875b3c797b2584a517aad6ce
+Size (nethack_source_331_jtp_193.zip) = 8405675 bytes
+SHA1 (patch-aa) = e068ec41aa17aeb8746475ff33fdef3540a664de
+SHA1 (patch-ab) = 4ab97753aacedfbfd6823600723f01d55043855f
+SHA1 (patch-ac) = 3a88954c950854350938fbec1fef195baaacb2cf
+SHA1 (patch-ad) = dc8de40956abdea203814868c4344b7676dee82d
+SHA1 (patch-ae) = b6d0cca1e3d781a2a1f1d4b244e944eaedfec716
+SHA1 (patch-af) = 0f2fa223ee26c5c3c5e1ae92b65d86af636f5ec5
+SHA1 (patch-ag) = 6aeae6bde079b9c9081f6e32523687010c9bc674
+SHA1 (patch-ba) = 8fb7c3ad5fdc5f35e34b1ac87bc60e1a22a91c03
+SHA1 (patch-bb) = 899a966ec39b749618cad9c6e420cfd865eb7d5e
+SHA1 (patch-bc) = ef228db9215e8c4d0e03a079ede1a7a195ecde58
+SHA1 (patch-bd) = 003e8b8d8a1a1e7462fe8090e95c2eddf48e1fc7
+SHA1 (patch-be) = 632a256780e80c8127635080df5112ce7678d4df
+SHA1 (patch-bf) = b58009fe635389483c34b50afca6aba9cb75fc72
+SHA1 (patch-bh) = 65bf424d1e60b0ee9b9acc8b04359f2f4621e605
+SHA1 (patch-bi) = 6b3d0d1eca3a23c3086155c1da3c2965d7092d5f
diff --git a/games/falcons-eye/patches/patch-aa b/games/falcons-eye/patches/patch-aa
new file mode 100644
index 00000000000..a4c6bfca17c
--- /dev/null
+++ b/games/falcons-eye/patches/patch-aa
@@ -0,0 +1,47 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- include/config.h.orig Tue Jul 3 18:56:52 2001
++++ include/config.h
+@@ -42,7 +42,7 @@
+ * Define all of those you want supported in your binary.
+ * Some combinations make no sense. See the installation document.
+ */
+-#define TTY_GRAPHICS /* good old tty based graphics */
++/* #define TTY_GRAPHICS */ /* good old tty based graphics */
+ /* #define X11_GRAPHICS */ /* X11 interface */
+ /* #define QT_GRAPHICS */ /* Qt interface */
+ /* #define GNOME_GRAPHICS */ /* Gnome interface */
+@@ -187,11 +187,11 @@
+
+ #ifdef UNIX
+ /* path and file name extension for compression program */
+-#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
+-#define COMPRESS_EXTENSION ".Z" /* compress's extension */
++/* #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
++/* #define COMPRESS_EXTENSION ".Z" /* compress's extension */
+ /* An example of one alternative you might want to use: */
+-/* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */
+-/* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */
++#define COMPRESS "@GZIP_PROGRAM@" /* FSF gzip compression */
++#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
+ #endif
+
+ #ifndef COMPRESS
+@@ -222,7 +222,7 @@
+ * otherwise it will be the current directory.
+ */
+ # ifndef HACKDIR
+-# define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */
++# define HACKDIR "XXXPREFIXXXX/share/nethackdir" /* nethack directory */
+ # endif
+
+ /*
+@@ -318,7 +318,7 @@
+ * functions that have been macroized.
+ */
+
+-/* #define VISION_TABLES */ /* use vision tables generated at compile time */
++#define VISION_TABLES /* use vision tables generated at compile time */
+ #ifndef VISION_TABLES
+ # ifndef NO_MACRO_CPATH
+ # define MACRO_CPATH /* use clear_path macros instead of functions */
diff --git a/games/falcons-eye/patches/patch-ab b/games/falcons-eye/patches/patch-ab
new file mode 100644
index 00000000000..a1be82eaea5
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ab
@@ -0,0 +1,129 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- sys/unix/Makefile.top.orig Sun Jun 24 18:57:24 2001
++++ sys/unix/Makefile.top
+@@ -14,19 +14,17 @@
+ # MAKE = make
+
+ # make NetHack
+-#PREFIX = /usr
+-PREFIX = $(shell pwd)/compiled
+-GAME = nethack
++GAME = falcons-eye
+ # GAME = nethack.prg
+-GAMEUID = games
+-GAMEGRP = bin
++GAMEUID = root
++GAMEGRP = games
+
+ # Permissions - some places use setgid instead of setuid, for instance
+ # See also the option "SECURE" in include/config.h
+-GAMEPERM = 04755
+-FILEPERM = 0644
++GAMEPERM = 02755
++FILEPERM = 0664
+ EXEPERM = 0755
+-DIRPERM = 0755
++DIRPERM = 0775
+
+ # GAMEDIR also appears in config.h as "HACKDIR".
+ # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR
+@@ -36,9 +34,9 @@
+ # therefore there should not be anything in GAMEDIR that you want to keep
+ # (if there is, you'll have to do the installation by hand or modify the
+ # instructions)
+-GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir
++GAMEDIR = $(PREFIX)/share/$(GAME)-dir
+ VARDIR = $(GAMEDIR)
+-SHELLDIR = $(PREFIX)/games
++SHELLDIR = $(PREFIX)/bin
+
+ # per discussion in Install.X11 and Install.Qt
+ VARDATND =
+@@ -65,10 +63,8 @@
+ # other permission-related reasons. If that happens, you may want to set the
+ # command to "true", which is a no-op. Note that disabling chown or chgrp
+ # will only work if setuid (or setgid) behavior is not desired or required.
+-# CHOWN = chown
+-# CHGRP = chgrp
+-CHOWN = true
+-CHGRP = true
++CHOWN = chown
++CHGRP = chgrp
+
+ # ----------------------------------------------
+ # Extra configuration for NetHack - Falcon's Eye
+@@ -119,9 +115,12 @@
+ $(GAME):
+ ( cd src ; $(MAKE) )
+
+-all: $(GAME) Guidebook $(VARDAT) dungeon spec_levs check-dlb
++all: $(GAME) datastuff
+ @echo "Done."
+
++datastuff: Guidebook $(VARDAT) dungeon spec_levs check-dlb recover
++ @echo "Data Sets Built."
++
+ Guidebook:
+ ( cd doc ; $(MAKE) Guidebook )
+
+@@ -131,6 +130,9 @@
+ data:
+ ( cd dat ; $(MAKE) data )
+
++recover:
++ ( cd util ; $(MAKE) recover )
++
+ rumors:
+ ( cd dat ; $(MAKE) rumors )
+
+@@ -188,6 +190,11 @@
+ ( cd util ; $(MAKE) dlb )
+ ( cd dat ; ../util/dlb cf nhdat $(DATDLB) )
+
++binfiles: $(GAME)
++ cp src/$(GAME) $(SHELLDIR)/$(GAME)$(GTYPE)
++ -( cd $(GAMEDIR) ; $(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME)$(GTYPE) ; \
++ $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME)$(GTYPE) )
++ chmod $(GAMEPERM) $(SHELLDIR)/$(GAME)$(GTYPE)
+
+ dofiles:
+ target=`sed -n \
+@@ -203,6 +210,7 @@
+ -rm -f $(SHELLDIR)/$(GAME)
+ sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
+ -e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
++ -e 's;XXXPREFIXXXX;$(PREFIX);' \
+ < sys/unix/nethack.sh \
+ > $(SHELLDIR)/$(GAME)
+ # set up their permissions
+@@ -280,12 +288,12 @@
+ # set up the directories
+ # not all mkdirs have -p; those that don't will create a -p directory
+ -mkdir -p $(SHELLDIR)
+- -rm -rf $(GAMEDIR) $(VARDIR)
+ -mkdir -p $(GAMEDIR) $(VARDIR) $(VARDIR)/save
+ -rmdir ./-p
+ -$(CHOWN) $(GAMEUID) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
+ $(CHGRP) $(GAMEGRP) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
+- chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) $(VARDIR)/save
++ chmod $(DIRPERM) $(GAMEDIR) $(VARDIR)
++ chmod 770 $(VARDIR)/save
+ # set up the game files
+ ( $(MAKE) dofiles )
+ # set up some additional files
+@@ -293,6 +301,14 @@
+ -( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) perm record logfile ; \
+ $(CHGRP) $(GAMEGRP) perm record logfile ; \
+ chmod $(FILEPERM) perm record logfile )
++ -mkdir -p $(PREFIX)/share/doc/$(GAME)
++ cp doc/Guidebook.txt $(PREFIX)/share/doc/$(GAME)
++ chown $(GAMEUID):$(GAMEGRP) $(PREFIX)/share/doc/$(GAME)/Guidebook.txt
++ chmod $(FILEPERM) $(PREFIX)/share/doc/$(GAME)/Guidebook.txt
++ cp util/recover $(PREFIX)/bin/recover-$(GAME)
++ chown 0:0 $(PREFIX)/bin/recover-$(GAME)
++ chmod 755 $(PREFIX)/bin/recover-$(GAME)
++
+ # and a reminder
+ @echo You may also want to reinstall the man pages via the doc Makefile.
+
diff --git a/games/falcons-eye/patches/patch-ac b/games/falcons-eye/patches/patch-ac
new file mode 100644
index 00000000000..bfacf4a83bb
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ac
@@ -0,0 +1,49 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- include/system.h.orig Thu Jan 6 21:20:08 2000
++++ include/system.h Thu Aug 10 18:16:03 2000
+@@ -77,10 +77,10 @@
+ # if !defined(__SC__) && !defined(LINUX)
+ E long NDECL(random);
+ # endif
+-# if !defined(SUNOS4) || defined(RANDOM)
++# if !defined(SUNOS4) && !defined(__NetBSD__) || defined(RANDOM)
+ E void FDECL(srandom, (unsigned int));
+ # else
+-# if !defined(bsdi) && !defined(__FreeBSD__)
++# if !defined(bsdi) && !defined(__FreeBSD__) && !defined(__NetBSD__)
+ E int FDECL(srandom, (unsigned int));
+ # endif
+ # endif
+@@ -130,7 +130,7 @@
+ E void FDECL(qsort, (genericptr_t,size_t,size_t,
+ int(*)(const genericptr,const genericptr)));
+ #else
+-# if defined(BSD) || defined(ULTRIX)
++# if defined(BSD) || defined(ULTRIX) && !defined(__NetBSD__)
+ E int qsort();
+ # else
+ # if !defined(LATTICE) && !defined(AZTEC_50)
+@@ -413,7 +413,7 @@
+ # ifdef HPUX
+ E unsigned int FDECL(strlen, (char *));
+ # else
+-# if !(defined(ULTRIX_PROTO) && defined(__GNUC__))
++# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__)
+ E int FDECL(strlen, (const char *));
+ # endif
+ # endif /* HPUX */
+@@ -513,11 +513,13 @@
+ # endif
+ # endif
+
++#ifndef __NetBSD__
+ # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
+ E time_t FDECL(time, (time_t *));
+ # else
+ E long FDECL(time, (time_t *));
+ # endif /* ULTRIX */
++#endif
+
+ #ifdef VMS
+ /* used in makedefs.c, but missing from gcc-vms's <time.h> */
diff --git a/games/falcons-eye/patches/patch-ad b/games/falcons-eye/patches/patch-ad
new file mode 100644
index 00000000000..0e6c92b851f
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- sys/unix/nethack.sh.orig Sun Jun 24 18:57:24 2001
++++ sys/unix/nethack.sh
+@@ -1,9 +1,9 @@
+ #!/bin/sh
+ # SCCS Id: @(#)nethack.sh 3.3 90/02/26
+
+-HACKDIR=/usr/games/lib/nethackdir
++HACKDIR=XXXPREFIXXXX/share/falcons-eye-dir
+ export HACKDIR
+-HACK=$HACKDIR/nethack
++HACK=$HACKDIR/falcons-eye
+ MAXNROFPLAYERS=4
+
+ # see if we can find the full path name of PAGER, so help files work properly
diff --git a/games/falcons-eye/patches/patch-ae b/games/falcons-eye/patches/patch-ae
new file mode 100644
index 00000000000..8ddeee23f4f
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- sys/unix/Makefile.doc.orig Fri Jan 14 22:49:48 2000
++++ sys/unix/Makefile.doc Thu Aug 10 18:17:40 2000
+@@ -34,7 +34,7 @@
+
+
+ GAME = nethack
+-MANDIR = /usr/man/man6
++MANDIR = $(PREFIX)/man/man6
+ MANEXT = 6
+
+ # manual installation for most BSD-style systems
diff --git a/games/falcons-eye/patches/patch-af b/games/falcons-eye/patches/patch-af
new file mode 100644
index 00000000000..458fe1f7e68
--- /dev/null
+++ b/games/falcons-eye/patches/patch-af
@@ -0,0 +1,60 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- include/unixconf.h.orig Sun Jun 24 18:57:16 2001
++++ include/unixconf.h
+@@ -19,25 +19,25 @@
+ */
+
+ /* define exactly one of the following four choices */
+-/* #define BSD 1 */ /* define for 4.n BSD */
++#define BSD 1 /* define for 4.n BSD */
+ /* also for relatives like SunOS 4.x, DG/UX, and */
+ /* older versions of Linux */
+ /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */
+ /* Use BSD for < v3.0 */
+ /* "ULTRIX" not to be confused with "ultrix" */
+-#define SYSV /* define for System V, Solaris 2.x, newer versions */
++/* #define SYSV /* define for System V, Solaris 2.x, newer versions */
+ /* of Linux */
+ /* #define HPUX */ /* Hewlett-Packard's Unix, version 6.5 or higher */
+ /* use SYSV for < v6.5 */
+
+
+ /* define any of the following that are appropriate */
+-#define SVR4 /* use in addition to SYSV for System V Release 4 */
++/* #define SVR4 /* use in addition to SYSV for System V Release 4 */
+ /* including Solaris 2+ */
+ #define NETWORK /* if running on a networked system */
+ /* e.g. Suns sharing a playground through NFS */
+ /* #define SUNOS4 */ /* SunOS 4.x */
+-#define LINUX /* Another Unix clone */
++/* #define LINUX */ /* Another Unix clone */
+ /* #define CYGWIN32 */ /* Unix on Win32 -- use with case sensitive defines */
+ /* #define GENIX */ /* Yet Another Unix Clone */
+ /* #define HISX */ /* Bull Unix for XPS Machines */
+@@ -47,7 +47,7 @@
+ * job control (note that AIX is SYSV otherwise)
+ * Also define this for AIX 3.2 */
+
+-#define TERMINFO /* uses terminfo rather than termcap */
++/* #define TERMINFO /* uses terminfo rather than termcap */
+ /* Should be defined for most SYSV, SVR4 (including
+ * Solaris 2+), HPUX, and Linux systems. In
+ * particular, it should NOT be defined for the UNIXPC
+@@ -168,11 +168,15 @@
+
+ #ifdef MAIL
+ # if defined(BSD) || defined(ULTRIX)
++# ifdef __NetBSD__
++#define DEF_MAILREADER "/usr/bin/mail"
++# else
+ # ifdef AMS
+ #define AMS_MAILBOX "/Mailbox"
+ # else
+ #define DEF_MAILREADER "/usr/ucb/Mail"
+-# endif
++# endif
++# endif
+ #else
+ # if defined(SYSV) || defined(DGUX) || defined(HPUX)
+ # if defined(M_XENIX) || defined(__FreeBSD__)
diff --git a/games/falcons-eye/patches/patch-ag b/games/falcons-eye/patches/patch-ag
new file mode 100644
index 00000000000..8dd2b6aaf3d
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ag
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- src/mail.c.orig Wed Aug 9 21:02:04 2000
++++ src/mail.c Thu Aug 10 18:32:30 2000
+@@ -71,7 +71,7 @@
+ # if !defined(MAILPATH) && (defined(LINUX) || defined(__osf__))
+ # define MAILPATH "/var/spool/mail/"
+ # endif
+-# if !defined(MAILPATH) && defined(__FreeBSD__)
++# if !defined(MAILPATH) && (defined(__FreeBSD__) || defined(__NetBSD__))
+ # define MAILPATH "/var/mail/"
+ # endif
+ # if !defined(MAILPATH) && (defined(BSD) || defined(ULTRIX))
diff --git a/games/falcons-eye/patches/patch-ba b/games/falcons-eye/patches/patch-ba
new file mode 100644
index 00000000000..00ccf18fa41
--- /dev/null
+++ b/games/falcons-eye/patches/patch-ba
@@ -0,0 +1,42 @@
+$NetBSD: patch-ba,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- sys/unix/Makefile.src.orig Sun Jun 24 18:57:24 2001
++++ sys/unix/Makefile.src
+@@ -146,7 +146,7 @@
+ # directories. You should have sdl-config in your path; it gives the
+ # necessary compile and link flags.
+ #
+-JTPINC=$(shell sdl-config --cflags)
++JTPINC!=sdl-config --cflags
+
+ # flags for debugging:
+ # CFLAGS = -g -I../include
+@@ -218,8 +218,8 @@
+
+ #
+ #
+-WINSRC = $(WINTTYSRC) $(WINJTPSRC)
+-WINOBJ = $(WINTTYOBJ) $(WINJTPOBJ)
++WINSRC = $(WINJTPSRC)
++WINOBJ = $(WINJTPOBJ)
+
+ # on some systems the termcap library is in -ltermcap or -lcurses
+ # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
+@@ -239,7 +239,7 @@
+ #
+
+ # SDL libraries for Falcon's Eye
+-WINJTPLIB = $(shell sdl-config --libs)
++WINJTPLIB!=sdl-config --libs
+
+ #
+ # libraries for X11
+@@ -264,7 +264,7 @@
+ # libraries for BeOS
+ WINBELIB = -lbe
+
+-WINLIB = $(WINTTYLIB) $(WINJTPLIB)
++WINLIB = $(WINJTPLIB)
+
+ # any other strange libraries your system needs (for Sysunix only -- the more
+ # specialized targets should already be right)
diff --git a/games/falcons-eye/patches/patch-bb b/games/falcons-eye/patches/patch-bb
new file mode 100644
index 00000000000..c504b17dbca
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bb
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- win/jtp/jtp_win.c.orig Mon Jul 2 08:59:00 2001
++++ win/jtp/jtp_win.c
+@@ -5997,7 +5997,7 @@
+ flags.initrole = pick_role(flags.initrace, flags.initgend, flags.initalign);
+ if (flags.initrole < 0)
+ {
+- tty_putstr(BASE_WINDOW, 0, "Incompatible role!");
++ jtp_messagebox("Incompatible role!\n");
+ flags.initrole = randrole();
+ }
+ }
diff --git a/games/falcons-eye/patches/patch-bc b/games/falcons-eye/patches/patch-bc
new file mode 100644
index 00000000000..c73f03c8371
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bc
@@ -0,0 +1,33 @@
+$NetBSD: patch-bc,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- win/jtp/gamedata/config/jtp_opts.txt.orig Sun Jun 24 18:57:26 2001
++++ win/jtp/gamedata/config/jtp_opts.txt
+@@ -38,8 +38,8 @@
+ % Turn these off (e.g. play_music=0) if you prefer silence, or if you
+ % don't have the appropriate sound hardware.
+ %
+-play_music=1
+-play_effects=1
++play_music=0
++play_effects=0
+
+
+ % -----------------------------------
+@@ -49,7 +49,7 @@
+ % files. You can also give your own command; use %s in place of the
+ % filename. Please give the full path to the player binary.
+ %
+-linux_midi_player=/usr/local/bin/timidity -idqq %s
++%linux_midi_player=/usr/local/bin/timidity -idqq %s
+ %linux_midi_player=/usr/bin/playmidi %s
+
+
+@@ -60,7 +60,7 @@
+ % files. You can also give your own command; use %s in place of the
+ % filename. Please give the full path to the player binary.
+ %
+-linux_mp3_player=/usr/bin/mpg123 -q %s
++%linux_mp3_player=/usr/bin/mpg123 -q %s
+
+
+ % ------------
diff --git a/games/falcons-eye/patches/patch-bd b/games/falcons-eye/patches/patch-bd
new file mode 100644
index 00000000000..9414995718f
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bd
@@ -0,0 +1,14 @@
+$NetBSD: patch-bd,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
+
+--- win/jtp/jtp_sdl.c.orig Mon Jul 2 07:05:50 2001
++++ win/jtp/jtp_sdl.c
+@@ -405,6 +405,9 @@
+ {
+ SDL_Event cur_event;
+
++ /* give the SDL audio thread a chance */
++ pthread_yield_np();
++
+ /* Process any waiting messages */
+ jtp_sdl_polled_message_arrived = JTP_SDL_POLLED_MESSAGE_NOT_ARRIVED;
+ while (SDL_PollEvent(&cur_event))
diff --git a/games/falcons-eye/patches/patch-be b/games/falcons-eye/patches/patch-be
new file mode 100644
index 00000000000..37b7c8a4311
--- /dev/null
+++ b/games/falcons-eye/patches/patch-be
@@ -0,0 +1,13 @@
+$NetBSD: patch-be,v 1.1.1.1 2002/01/21 11:56:18 pooka Exp $
+
+--- src/files.c.orig Sun Jun 24 18:57:16 2001
++++ src/files.c
+@@ -769,7 +769,7 @@
+ }
+ (void) signal(SIGINT, SIG_IGN);
+ (void) signal(SIGQUIT, SIG_IGN);
+- (void) wait((int *)&i);
++ (void) waitpid(f, (int *)&i, 0);
+ (void) signal(SIGINT, (SIG_RET_TYPE) done1);
+ # ifdef WIZARD
+ if (wizard) (void) signal(SIGQUIT, SIG_DFL);
diff --git a/games/falcons-eye/patches/patch-bf b/games/falcons-eye/patches/patch-bf
new file mode 100644
index 00000000000..cdbfcb605b6
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bf
@@ -0,0 +1,468 @@
+$NetBSD: patch-bf,v 1.1.1.1 2002/01/21 11:56:18 pooka Exp $
+
+--- /dev/null Sun Dec 2 19:51:52 2001
++++ src/fe-config.in Wed Nov 28 12:19:38 2001
+@@ -0,0 +1,463 @@
++#!/bin/ksh
++fe_prefix=XXXPREFIXXXX
++fe_config="${fe_prefix}/share/falcons-eye-dir/config/jtp_opts.txt"
++fe_output=""
++if [ ! -f "$fe_config" ]
++then
++ touch "$fe_config"
++ if [ $? -ne 0 ]
++ then
++ echo "Cannot find nor create $fe_config..."
++ exit 1
++ fi
++fi
++settings=$(grep '^[^%].*=' "$fe_config"|sed 's/=\(.*\)/="\1"/')
++orig_settings=$(echo "$settings"|sed 's/^/orig_/')
++variables="screen_xsize screen_ysize fullscreen play_music play_effects
++ linux_midi_player linux_mp3_player wall_style recenter_after_movement
++ one_command_per_click scroll_delay command_delay gamma_correction"
++eval "$settings"
++eval "$orig_settings"
++
++function __menu
++{
++ choices=$(echo "$2"|sed 's/\^/\
++/g')
++ max=$(echo "$choices"|wc -l)
++ title=$(echo "$1"|sed 's/_/ /g')
++ underline=$(echo "$title"|sed 's/./=/g')
++ ps=$(echo "$choices"|pr -n\ 1|grep ' ')
++ ps=$(echo -e "\n\n$title\n$underline\n\n$ps\n\nPlease choose> ")
++ input=""
++ while [ "$input" -lt 1 -o "$input" -gt "$max" ]
++ do
++ clear
++ read input?"$ps"
++ input=$(echo "$input"|cut -c 1)
++ done
++ choice=$(echo "$choices"|head -n +$input|tail -n 1|cut -d ' ' -f 1)
++ if [ "$choice" != "return" ]
++ then
++ ${choice}_menu ${choice}
++ return 1
++ fi
++ return 0
++}
++
++function do_toggle
++{
++ toggle_value=$(eval echo \$$1)
++ if [ "$toggle_value" -eq 1 ]
++ then
++ eval $1=0
++ else
++ eval $1=1
++ fi
++}
++
++function read_value
++{
++ rmin="$1"
++ rps="$2"
++ rvalue=$(($min-1))
++ while [ "$rvalue" -lt "$rmin" ]
++ do
++ read rvalue?"$rps"
++ rvalue=$(echo "$rvalue"|sed 's/^\([0-9]*\).*/\1/')
++ done
++ return $rvalue
++}
++
++read_float_value_return=0
++function read_float_value
++{
++ rmin="$1"
++ rmax="$2"
++ rps="$3"
++ rvalue=$(echo "$rmin-1"|bc)
++ while [ "$(echo \"$rvalue<$rmin\"|bc)" -eq 1 -o \
++ "$(echo \"$rvalue>$rmax\"|bc)" -eq 1 ]
++ do
++ read rvalue?"$rps"
++ done
++ rvalue=$(echo "$rvalue"|sed 's/^\./0./')
++ read_float_value_return="$rvalue"
++}
++
++function find_line
++{
++ return $(grep -n "^$1=" "$fe_output"|head -1|cut -d : -f 1)
++}
++
++function find_commented_line
++{
++ return $(grep -n "^%$1=" "$fe_output"|head -1|cut -d : -f 1)
++}
++
++function edit_replace_line
++{
++ echo -e "$1\nd\ni\n$2\n.\nwq\n" | ed "$fe_output" >/dev/null 2>&1
++ return $?
++}
++
++function edit_insert_line
++{
++ echo -e "$1\ni\n$2\n.\nwq\n" | ed "$fe_output" >/dev/null 2>&1
++ return $?
++}
++
++function edit_append_line
++{
++ echo "$1" >>"$fe_output"
++ return $?
++}
++
++function save_changes
++{
++ retval=0
++ for var in $variables
++ do
++ value=$(eval echo \$$var)
++ if [ "$value" != "$(eval echo \$orig_$var)" ]
++ then
++ find_line "$var"
++ line=$?
++ if [ $line -gt 1 ]
++ then
++ edit_replace_line $line "$var=$value"
++ result=$?
++ else
++ find_commented_line "$var"
++ line=$?
++ if [ $line -gt 1 ]
++ then
++ edit_insert_line $line "$var=$value"
++ result=$?
++ else
++ edit_append_line "$var=$value"
++ result=$?
++ fi
++ fi
++ if [ $result -ne 0 ]
++ then
++ retval=$result
++ fi
++ fi
++ done
++ return $retval
++}
++
++function use_tmp_menu
++{
++ fe_output=$(mktemp /tmp/jtp_opts.txt.XXXXXX)
++ cp "$fe_config" "$fe_output"
++}
++
++function use_home_menu
++{
++ fe_output=$(mktemp $HOME/jtp_opts.txt.XXXXXX)
++ cp "$fe_config" "$fe_output"
++}
++
++function use_default_path_menu
++{
++ fe_output="$fe_config"
++}
++
++function save_changes_menu
++{
++ __menu "$1" "use_default_path : $fe_config^use_tmp : write config file to /tmp^use_home : write config file to $HOME"
++ save_changes
++ if [ $? -ne 0 ]
++ then
++ echo -e "Error writing ${fe_output}...\nPress enter...\n"
++ read pause
++ else
++ echo -e "Finished writing ${fe_output}...\n"
++ if [ "$fe_output" != "$fe_config" ]
++ then
++ echo "To use new config:"
++ echo " cp ${fe_output} ${fe_config}"
++ fi
++ exit
++ fi
++}
++
++function quit_without_saving_menu
++{
++ exit
++}
++
++function have_settings_changed
++{
++ changed=0
++ for var in $variables
++ do
++ if [ "$(eval echo \$$var)" != "$(eval echo \$orig_$var)" ]
++ then
++ changed=1
++ fi
++ done
++ return $changed
++}
++
++function exit_menu
++{
++ have_settings_changed
++ if [ $? -eq 0 ]
++ then
++ exit
++ fi
++ __menu "$1" "save_changes^quit_without_saving"
++}
++
++function print_sound_warning
++{
++ if [ "$play_effects" -eq 1 ]
++ then
++ cat <<__EOF__
++
++You have sound effects turned on. Falcon's Eye Nethack uses SDL to play
++sound effects, and SDL is configured to directly use /dev/audio. The
++result is a conflict with external players that open /dev/audio.
++
++So you either can have musical scores played by mpg123 and timidity,
++or you can have sound effects.
++
++__EOF__
++ fi
++}
++
++function pick_player
++{
++ player_path="XXXPREFIXXXX/bin/$1"
++ "$1" >/dev/null 2>&1
++ if [ $? -ne 127 ]
++ then
++ player_path=$(which $1)
++ fi
++
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ print_sound_warning
++ echo "Example:"
++ echo " $player_path $2 %s"
++ echo -n "Please enter command to play $3 files> "
++ read $4
++ player_value=$(echo $(eval echo \$$4)|cut -d ' ' -f 1)
++ if [ ! -x "$player_value" ]
++ then
++ if [ "$player_value" = "" ]
++ then
++ looping=0
++ else
++ echo "Error: cannot execute $player_value"
++ fi
++ else
++ looping=0
++ fi
++ done
++}
++
++function pick_mp3_player_menu
++{
++ pick_player mpg123 "-q" "MP3" "linux_mp3_player"
++}
++
++function manual_enter_midi_player_menu
++{
++ pick_player timidity "-idqq" "MIDI" "linux_midi_player"
++}
++
++function midiplay_menu
++{
++ midi_port=99
++ max=$(midiplay -l|tail -1|cut -d : -f 1)
++ while [ "$midi_port" -lt 0 -o "$midi_port" -gt "$max" ]
++ do
++ echo ""
++ echo "MIDI ports"
++ echo "=========="
++ echo ""
++ midiplay -l
++ echo ""
++ read midi_port?"Please pick MIDI port> "
++ midi_port=$(echo "$midi_port"|cut -c 1)
++ done
++ if [ "$midi_port" -gt 0 ]
++ then
++ linux_midi_player="/usr/bin/midiplay -d$midi_port %s"
++ else
++ linux_midi_player="/usr/bin/midiplay %s"
++ fi
++}
++
++function pick_midi_player_menu
++{
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ midiplay -l >/dev/null 2>&1
++ if [ $? -ne 127 ]
++ then
++ menu_string="midiplay^"
++ else
++ menu_string=""
++ fi
++ menu_string="${menu_string}manual_enter_midi_player : \"$linux_midi_player\"^return to previous menu"
++ __menu "$1" "$menu_string"
++ looping=$?
++ done
++}
++
++function pick_players_menu
++{
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ __menu "$1" "pick_midi_player : \"$linux_midi_player\"^pick_mp3_player : \"$linux_mp3_player\"^return to previous menu"
++ looping=$?
++ done
++}
++
++function music_menu
++{
++ do_toggle play_music
++}
++
++function sound_effects_menu
++{
++ do_toggle play_effects
++}
++
++function audio_settings_menu
++{
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ menu_string="sound_effects : $play_effects^music : $play_music"
++ menu_string=$(echo "$menu_string"|sed -e 's/: 1/: on/g' -e 's/: 0/: off/g')
++ if [ "$play_music" -eq 1 ]
++ then
++ menu_string="${menu_string}^pick_players"
++ fi
++
++ __menu "$1" "${menu_string}^return to previous menu"
++ looping=$?
++ done
++}
++
++function fullscreen_menu
++{
++ do_toggle fullscreen
++}
++
++function screen_xsize_menu
++{
++ read_value 800 "Please enter x size (minimum 800) -> "
++ screen_xsize=$?
++}
++
++function screen_ysize_menu
++{
++ read_value 600 "Please enter y size (minimum 600) -> "
++ screen_ysize=$?
++}
++
++function gamma_correction_menu
++{
++ read_float_value 0 2 "Please enter gamma correction (dark 0.0 - light 2.0) -> "
++ gamma_correction="$read_float_value_return"
++}
++
++function wall_style_full_menu
++{
++ wall_style="full"
++}
++
++function wall_style_half_height_menu
++{
++ wall_style="half_height"
++}
++
++function wall_style_transparent_menu
++{
++ wall_style="transparent"
++}
++
++function wall_style_menu
++{
++ __menu "$1" "wall_style_full^wall_style_half_height^wall_style_transparent"
++}
++
++function video_settings_menu
++{
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ menu_string="fullscreen : $fullscreen^screen_xsize : \"$screen_xsize\"^screen_ysize : \"$screen_ysize\"^wall_style : \"$wall_style\"^gamma_correction : \"$gamma_correction\"^return to previous menu"
++ menu_string=$(echo "$menu_string"|sed -e 's/: 1/: on/g' -e 's/: 0/: off/g')
++ __menu "$1" "$menu_string"
++ looping=$?
++ done
++}
++
++function recenter_after_movement_menu
++{
++ do_toggle recenter_after_movement
++}
++
++function one_command_per_click_menu
++{
++ do_toggle one_command_per_click
++}
++
++function scroll_delay_menu
++{
++ read_float_value 0 10 "Please enter scroll delay (0 - 10 seconds) -> "
++ scroll_delay="$read_float_value_return"
++}
++
++function command_delay_menu
++{
++ read_float_value 0 10 "Please enter command delay (0 - 10 seconds) -> "
++ command_delay="$read_float_value_return"
++}
++
++function interface_settings_menu
++{
++ looping=1
++ while [ "$looping" -eq 1 ]
++ do
++ menu_string="recenter_after_movement : $recenter_after_movement^one_command_per_click : $one_command_per_click^scroll_delay : \"$scroll_delay\"^command_delay : \"$command_delay\"^return to previous menu"
++ menu_string=$(echo "$menu_string"|sed -e 's/: 1/: on/g' -e 's/: 0/: off/g')
++ __menu "$1" "$menu_string"
++ looping=$?
++ done
++}
++
++function about_menu
++{
++ less -d <<__EOF__
++This script generates a configuration file for falcon's eye nethack.
++Some assumptions are made by this script, for example, that you are
++running NetBSD, and that you do not have multiple sound cards.
++__EOF__
++ main_menu
++}
++
++function view_config_file_menu
++{
++ less -d "$fe_config"
++}
++
++function main_menu
++{
++ __menu "main" "about^audio_settings^video_settings^interface_settings^view_config_file^exit"
++}
++
++while :
++do
++ main_menu
++done
diff --git a/games/falcons-eye/patches/patch-bh b/games/falcons-eye/patches/patch-bh
new file mode 100644
index 00000000000..64b281c4086
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bh
@@ -0,0 +1,16 @@
+$NetBSD: patch-bh,v 1.1.1.1 2002/01/21 11:56:18 pooka Exp $
+
+--- win/jtp/gamedata/config/jtp_snds.txt.orig Sun Jun 24 18:57:26 2001
++++ win/jtp/gamedata/config/jtp_snds.txt
+@@ -70,6 +70,11 @@
+ [delicatessen],MIDI,[shopping.mid]
+ [restore],NONE,[unused]
+ [store],MIDI,[shopping.mid]
++[ Slasher],LWAV,[dog.raw]
++[ Hachi],LWAV,[dog.raw]
++[ Idefix],LWAV,[dog.raw]
++[ Sirius],LWAV,[dog.raw]
++
+
+ %
+ % Section 2: special music and sound events
diff --git a/games/falcons-eye/patches/patch-bi b/games/falcons-eye/patches/patch-bi
new file mode 100644
index 00000000000..814177d6976
--- /dev/null
+++ b/games/falcons-eye/patches/patch-bi
@@ -0,0 +1,27 @@
+$NetBSD: patch-bi,v 1.1.1.1 2002/01/21 11:56:18 pooka Exp $
+
+--- win/jtp/gamedata/config/jtp_keys.txt.orig Sun Jun 24 18:57:26 2001
++++ win/jtp/gamedata/config/jtp_keys.txt
+@@ -42,14 +42,12 @@
+
+ [up]=[<]
+ [down]=[>]
+-[jump]=[j]
+ [sit down]=[META+s]
+ [teleport]=[CTRL+t]
+
+ %----------------------------------------------------------------
+ % Exploring
+ %----------------------------------------------------------------
+-[kick]=[k]
+ [close door]=[c]
+ [open door]=[o]
+ [look here]=[:]
+@@ -60,7 +58,6 @@
+ % Getting items
+ %----------------------------------------------------------------
+ [force lock]=[META+f]
+-[loot chest]=[l]
+ [pick up]=[,]
+ [toggle autopickup]=[@]
+