summaryrefslogtreecommitdiff
path: root/japanese/zangband
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-09-01 06:04:55 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-09-01 06:04:55 +0000
commitd9ddfa654f10fb913934d889cc839e81588522e7 (patch)
treefbc5dee62f53e66f254c37091c92a0b93b9f2b06 /japanese/zangband
parentAdd japanese/netype, the Network Type Trainer client program. (diff)
Update to 2.4.0.j010621, and become independent of games/zangband.
PR: ports/30015 Submitted by: YAMAKURA Makoto <makoto@pinpott.spnet.ne.jp> (MAINTAINER)
Notes
Notes: svn path=/head/; revision=47259
Diffstat (limited to 'japanese/zangband')
-rw-r--r--japanese/zangband/Makefile78
-rw-r--r--japanese/zangband/distinfo2
-rw-r--r--japanese/zangband/files/MESSAGE.in15
-rw-r--r--japanese/zangband/files/Makefile.in12
-rw-r--r--japanese/zangband/files/makefile-adjust.patch12
-rw-r--r--japanese/zangband/files/patch-aa39
-rw-r--r--japanese/zangband/files/patch-ab11
-rw-r--r--japanese/zangband/pkg-plist339
8 files changed, 496 insertions, 12 deletions
diff --git a/japanese/zangband/Makefile b/japanese/zangband/Makefile
index 5b89a3312038..2cad2818b0d9 100644
--- a/japanese/zangband/Makefile
+++ b/japanese/zangband/Makefile
@@ -5,21 +5,75 @@
# $FreeBSD$
#
-CATEGORIES= japanese
+PORTNAME= zangband
+PORTVERSION= 2.4.0${JA_VERSION}
+CATEGORIES= japanese games
+MASTER_SITES= ftp://clockwork.dementia.org/angband/Variant/ZAngband/ \
+ ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/ \
+ http://www.geocities.co.jp/SiliconValley-SanJose/9606/zg/
+DISTFILES= ${PORTNAME}-${E_VERSION:S/.//g}-src.zip \
+ ${JA_DISTFILE}
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${E_VERSION:S/.//g}-src.zip
MAINTAINER= makoto@pinpott.spnet.ne.jp
-MASTERDIR= ${.CURDIR}/../../games/zangband
+USE_ZIP= yes
+EXTRACT_BEFORE_ARGS= -qa
+USE_XLIB= yes
-PKGDIR= ${MASTERDIR}
-COMMENT= ${.CURDIR}/pkg-comment
-DESCR= ${.CURDIR}/pkg-descr
+NO_CDROM= Possible copyright infringement
-JAPANESE= yes
-JA_MASTER_SITE= http://www.geocities.co.jp/SiliconValley-SanJose/9606/zg/
-ANGBANDLIB?= lib/jzangband
-ANGBANDBIN?= bin/jzangband
-JA_PLIST= pkg-plist.ja
-MAKE_ARGS+= JAPANESE_CFLAGS="-DJP -DEUC"
+WRKSRC= ${WRKDIR}/ZAngband
+PKGMESSAGE= ${WRKDIR}/MESSAGE
+PLIST_SUB+= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
-.include "${MASTERDIR}/Makefile"
+SHAREOWN= games
+SHAREGRP= games
+BINOWN= ${SHAREOWN}
+BINGRP= ${SHAREOWN}
+BINMODE= 2755
+
+MAKE_ARGS+= ANGBANDLIB=${PREFIX}/${ANGBANDLIB} \
+ JAPANESE_CFLAGS="-DJP -DEUC"
+ANGBANDLIB?= lib/j${PORTNAME}
+ANGBANDBIN?= bin/j${PORTNAME}
+
+E_VERSION= ${PORTVERSION:S/${JA_VERSION}//}
+
+PATCH_VERSION?= 010621
+JA_VERSION= .j${PATCH_VERSION}
+JA_DISTFILE= zj${E_VERSION:S/.//g}ux-${PATCH_VERSION}.tgz
+
+pre-patch:
+ (cd ${WRKSRC} ; ${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/zj${E_VERSION:S/.//g}ux-${PATCH_VERSION}.tgz)
+ (cd ${WRKSRC}/src ; ${PATCH} -p1 -l -s < ../zj${E_VERSION:S/.//g}.patch ; ${PATCH} -p1 -l -s < ${FILESDIR}/makefile-adjust.patch)
+
+pre-build:
+ ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
+ ${CP} ${WRKSRC}/src/makefile.std ${WRKSRC}/src/Makefile
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|g;s|%%ANGBANDBIN%%|${ANGBANDBIN}|g;s|%%ANGBANDLIB%%|${ANGBANDLIB}|g" ${FILESDIR}/MESSAGE.in > ${PKGMESSAGE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/testing ${PREFIX}/${ANGBANDBIN}
+ ${MKDIR} ${PREFIX}/${ANGBANDLIB}
+ ${CP} -rp ${WRKSRC}/lib/* ${PREFIX}/${ANGBANDLIB}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/lib
+.if defined(USE_Z_SCORES)
+ test -f ${PREFIX}/${ANGBANDLIB}/apex/scores.raw || \
+ ${CP} ${PREFIX}/${ANGBANDLIB}/apex/z_scores.raw \
+ ${ANGBANDLIB}/apex/scores.raw
+.else
+ test -f ${PREFIX}/${ANGBANDLIB}/apex/scores.raw || \
+ ${TOUCH} ${PREFIX}/${ANGBANDLIB}/apex/scores.raw
+.endif
+ (cd ${PREFIX}/${ANGBANDLIB} && \
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} apex data ; \
+ ${CHMOD} 755 . ; \
+ ${CHMOD} -R ug+rw,o-rw * ; \
+ ${CHMOD} -R o+r help xtra ; \
+ ${CHMOD} 1777 save user \
+ )
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/japanese/zangband/distinfo b/japanese/zangband/distinfo
new file mode 100644
index 000000000000..48eb9d633c43
--- /dev/null
+++ b/japanese/zangband/distinfo
@@ -0,0 +1,2 @@
+MD5 (zangband/zangband-240-src.zip) = 4854d25e7297b5523304398e082cf069
+MD5 (zangband/zj240ux-010621.tgz) = 17392dc3e73cc1d7851b1b28b267dc0d
diff --git a/japanese/zangband/files/MESSAGE.in b/japanese/zangband/files/MESSAGE.in
new file mode 100644
index 000000000000..b9dfd64f45ba
--- /dev/null
+++ b/japanese/zangband/files/MESSAGE.in
@@ -0,0 +1,15 @@
+ ============================================================================
+ To reduce the number of term windows opened, use -n:
+ %%PREFIX%%/%%ANGBANDBIN%% -- -n2
+
+ The binary will changed its owner to 'games:games' and added SETGID bit.
+ Then players can record their score to public score files.
+ You can set fonts by using environment variables such as ANGBAND_X11_FONT,
+ ANGBAND_X11_FONT_1 (the number represents sub-window id),
+ ANGBAND_X11_KFONT (for kanji support), etc.
+
+ WARNING!
+ You now have the following world-writable (mode 1777) directories:
+ %%PREFIX%%/%%ANGBANDLIB%%/save
+ %%PREFIX%%/%%ANGBANDLIB%%/user
+ ============================================================================
diff --git a/japanese/zangband/files/Makefile.in b/japanese/zangband/files/Makefile.in
new file mode 100644
index 000000000000..9034917cec35
--- /dev/null
+++ b/japanese/zangband/files/Makefile.in
@@ -0,0 +1,12 @@
+# My makefile for Angband
+# Matthew Hunt <mph@FreeBSD.org>
+
+ANGBANDLIB?= /usr/local/lib/angband
+
+all: testing
+
+testing:
+ cd src && make "EXTRA_CFLAGS=-I${X11BASE}/include ${JAPANESE_CFLAGS} -DDEFAULT_PATH=\\\"${ANGBANDLIB}\\\""
+
+test: testing
+ ANGBAND_PATH=./lib ./testing
diff --git a/japanese/zangband/files/makefile-adjust.patch b/japanese/zangband/files/makefile-adjust.patch
new file mode 100644
index 000000000000..3a44ce721ab3
--- /dev/null
+++ b/japanese/zangband/files/makefile-adjust.patch
@@ -0,0 +1,12 @@
+--- src/makefile.std Tue Aug 22 17:08:56 2000
++++ src/makefile.std Thu Jul 20 13:19:50 2000
+@@ -133,8 +131,7 @@
+ ## to get 256 colours.
+ ##
+ CFLAGS = -Wall -O2 -fno-strength-reduce -m486 -pipe -g \
+- -D"USE_X11" -D"USE_GCU" -D"USE_TRANSPARENCY" \
+- -D"JP" -D"EUC"
++ -D"USE_X11" -D"USE_GCU" -D"USE_TRANSPARENCY"
+ LIBS = -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
+
+ #CFLAGS = -Wall -O2 -fno-strength-reduce -m486 -pipe -g \
diff --git a/japanese/zangband/files/patch-aa b/japanese/zangband/files/patch-aa
new file mode 100644
index 000000000000..ebbe90792d58
--- /dev/null
+++ b/japanese/zangband/files/patch-aa
@@ -0,0 +1,39 @@
+--- src/makefile.std Thu Jul 20 13:19:50 2000
++++ src/Makefile Fri Aug 11 19:54:28 2000
+@@ -103,7 +103,7 @@
+ #
+ # This is my compiler of choice, it seems to work most everywhere
+ #
+-CC = gcc
++CC ?= gcc
+
+
+ #
+@@ -130,9 +130,9 @@
+ ## Note: Get the 16x16.bmp file, and put in Zdirectory/lib/xtra/graf
+ ## to get 256 colours.
+ ##
+-CFLAGS = -Wall -O2 -fno-strength-reduce -m486 -pipe -g \
+- -D"USE_X11" -D"USE_GCU" -D"USE_TRANSPARENCY"
+-LIBS = -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
++#CFLAGS = -Wall -O2 -fno-strength-reduce -m486 -pipe -g \
++# -D"USE_X11" -D"USE_GCU" -D"USE_TRANSPARENCY"
++#LIBS = -lX11 -lcurses -ltermcap -L/usr/X11R6/lib
+
+ #CFLAGS = -Wall -O2 -fno-strength-reduce -m486 -pipe -g \
+ # -D"USE_XAW" -D"USE_GCU" -D"USE_TRANSPARENCY"
+@@ -236,6 +236,14 @@
+ ##
+ #CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU" -arch m68k -arch i386
+ #LIBS = -lcurses -ltermcap
++
++
++
++##
++## Variation -- Compile for FreeBSD
++##
++CFLAGS += -D"USE_X11" -D"USE_GCU" -D"USE_TRANSPARENCY" ${EXTRA_CFLAGS}
++LIBS = -L${X11BASE}/lib -lX11 -lcurses -ltermcap
+
+
+
diff --git a/japanese/zangband/files/patch-ab b/japanese/zangband/files/patch-ab
new file mode 100644
index 000000000000..9f38436bb6d8
--- /dev/null
+++ b/japanese/zangband/files/patch-ab
@@ -0,0 +1,11 @@
+--- src/z-config.h.orig Wed Feb 11 05:30:28 1998
++++ src/z-config.h Sat Sep 18 18:20:32 1999
+@@ -52,7 +52,7 @@
+ /*
+ * OPTION: Use the POSIX "termios" methods in "main-gcu.c"
+ */
+-/* #define USE_TPOSIX */
++#define USE_TPOSIX
+
+ /*
+ * OPTION: Use the "termio" methods in "main-gcu.c"
diff --git a/japanese/zangband/pkg-plist b/japanese/zangband/pkg-plist
new file mode 100644
index 000000000000..143d0cc8d1dd
--- /dev/null
+++ b/japanese/zangband/pkg-plist
@@ -0,0 +1,339 @@
+@owner games
+@group games
+@mode 664
+%%ANGBANDBIN%%
+@exec chmod 2755 %D/%%ANGBANDBIN%%
+@unexec rm -f %D/%%ANGBANDLIB%%/data/*
+@unexec cmp -s %D/%%ANGBANDLIB%%/apex/scores.raw %D/%%ANGBANDLIB%%/apex/z_scores.raw && rm %D/%%ANGBANDLIB%%/apex/scores.raw || true
+@unexec cmp -s %D/%%ANGBANDLIB%%/apex/scores.raw /dev/null && rm %D/%%ANGBANDLIB%%/apex/scores.raw || true
+%%ANGBANDLIB%%/apex/readme.txt
+%%ANGBANDLIB%%/apex/z_scores.raw
+@exec test -f %D/%%ANGBANDLIB%%/apex/scores.raw || touch %D/%%ANGBANDLIB%%/apex/scores.raw
+%%ANGBANDLIB%%/bone/delete.me
+%%ANGBANDLIB%%/edit/a_info.txt
+%%ANGBANDLIB%%/edit/e_info.txt
+%%ANGBANDLIB%%/edit/f_info.txt
+%%ANGBANDLIB%%/edit/k_info.txt
+%%ANGBANDLIB%%/edit/misc.txt
+%%ANGBANDLIB%%/edit/q0000001.txt
+%%ANGBANDLIB%%/edit/q0000002.txt
+%%ANGBANDLIB%%/edit/q0000003.txt
+%%ANGBANDLIB%%/edit/q0000004.txt
+%%ANGBANDLIB%%/edit/q0000005.txt
+%%ANGBANDLIB%%/edit/q0000006.txt
+%%ANGBANDLIB%%/edit/q0000007.txt
+%%ANGBANDLIB%%/edit/q0000019.txt
+%%ANGBANDLIB%%/edit/q0000020.txt
+%%ANGBANDLIB%%/edit/q0000021.txt
+%%ANGBANDLIB%%/edit/q0000022.txt
+%%ANGBANDLIB%%/edit/q0000023.txt
+%%ANGBANDLIB%%/edit/q0000027.txt
+%%ANGBANDLIB%%/edit/q0000028.txt
+%%ANGBANDLIB%%/edit/q00000ms.txt
+%%ANGBANDLIB%%/edit/q000chao.txt
+%%ANGBANDLIB%%/edit/q000dekn.txt
+%%ANGBANDLIB%%/edit/q000eric.txt
+%%ANGBANDLIB%%/edit/q000lyeh.txt
+%%ANGBANDLIB%%/edit/q000natu.txt
+%%ANGBANDLIB%%/edit/q000sorc.txt
+%%ANGBANDLIB%%/edit/q00water.txt
+%%ANGBANDLIB%%/edit/q0clone0.txt
+%%ANGBANDLIB%%/edit/q0fields.txt
+%%ANGBANDLIB%%/edit/q0thief1.txt
+%%ANGBANDLIB%%/edit/q0thief2.txt
+%%ANGBANDLIB%%/edit/q0willow.txt
+%%ANGBANDLIB%%/edit/q_info.txt
+%%ANGBANDLIB%%/edit/q_oberon.txt
+%%ANGBANDLIB%%/edit/q_pref.txt
+%%ANGBANDLIB%%/edit/q_random.txt
+%%ANGBANDLIB%%/edit/q_serpen.txt
+%%ANGBANDLIB%%/edit/q_warg.txt
+%%ANGBANDLIB%%/edit/qdarkelf.txt
+%%ANGBANDLIB%%/edit/qhaunted.txt
+%%ANGBANDLIB%%/edit/r_info.txt
+%%ANGBANDLIB%%/edit/t0000001.txt
+%%ANGBANDLIB%%/edit/t0000002.txt
+%%ANGBANDLIB%%/edit/t0000003.txt
+%%ANGBANDLIB%%/edit/t0000004.txt
+%%ANGBANDLIB%%/edit/t0000005.txt
+%%ANGBANDLIB%%/edit/t_basic.txt
+%%ANGBANDLIB%%/edit/t_info.txt
+%%ANGBANDLIB%%/edit/t_lite.txt
+%%ANGBANDLIB%%/edit/t_pref.txt
+%%ANGBANDLIB%%/edit/v_info.txt
+%%ANGBANDLIB%%/edit/w_info.txt
+%%ANGBANDLIB%%/file/a_cursed.txt
+%%ANGBANDLIB%%/file/a_high.txt
+%%ANGBANDLIB%%/file/a_low.txt
+%%ANGBANDLIB%%/file/a_med.txt
+%%ANGBANDLIB%%/file/chainswd.txt
+%%ANGBANDLIB%%/file/crime.txt
+%%ANGBANDLIB%%/file/dead.txt
+%%ANGBANDLIB%%/file/death.txt
+%%ANGBANDLIB%%/file/elvish.txt
+%%ANGBANDLIB%%/file/error.txt
+%%ANGBANDLIB%%/file/mondeath.txt
+%%ANGBANDLIB%%/file/monfear.txt
+%%ANGBANDLIB%%/file/monfrien.txt
+%%ANGBANDLIB%%/file/monspeak.txt
+%%ANGBANDLIB%%/file/news.txt
+%%ANGBANDLIB%%/file/readme.txt
+%%ANGBANDLIB%%/file/rumors.txt
+%%ANGBANDLIB%%/file/sample.txt
+%%ANGBANDLIB%%/file/silly.txt
+%%ANGBANDLIB%%/file/timefun.txt
+%%ANGBANDLIB%%/file/timenorm.txt
+%%ANGBANDLIB%%/file/w_cursed.txt
+%%ANGBANDLIB%%/file/w_high.txt
+%%ANGBANDLIB%%/file/w_low.txt
+%%ANGBANDLIB%%/file/w_med.txt
+%%ANGBANDLIB%%/help/arena.txt
+%%ANGBANDLIB%%/help/attack.hlp
+%%ANGBANDLIB%%/help/attack.txt
+%%ANGBANDLIB%%/help/birth.hlp
+%%ANGBANDLIB%%/help/birth.txt
+%%ANGBANDLIB%%/help/bldg.txt
+%%ANGBANDLIB%%/help/charattr.hlp
+%%ANGBANDLIB%%/help/charattr.txt
+%%ANGBANDLIB%%/help/command.hlp
+%%ANGBANDLIB%%/help/command.txt
+%%ANGBANDLIB%%/help/commdesc.hlp
+%%ANGBANDLIB%%/help/commdesc.txt
+%%ANGBANDLIB%%/help/defend.hlp
+%%ANGBANDLIB%%/help/defend.txt
+%%ANGBANDLIB%%/help/dungeon.hlp
+%%ANGBANDLIB%%/help/dungeon.txt
+%%ANGBANDLIB%%/help/gambling.txt
+%%ANGBANDLIB%%/help/general.hlp
+%%ANGBANDLIB%%/help/general.txt
+%%ANGBANDLIB%%/help/help.hlp
+%%ANGBANDLIB%%/help/helpinfo.txt
+%%ANGBANDLIB%%/help/magic.hlp
+%%ANGBANDLIB%%/help/magic.txt
+%%ANGBANDLIB%%/help/objects.hlp
+%%ANGBANDLIB%%/help/objects.txt
+%%ANGBANDLIB%%/help/option.hlp
+%%ANGBANDLIB%%/help/option.txt
+%%ANGBANDLIB%%/help/pref.hlp
+%%ANGBANDLIB%%/help/pref.txt
+%%ANGBANDLIB%%/help/readme.txt
+%%ANGBANDLIB%%/help/spoiler.hlp
+%%ANGBANDLIB%%/help/tang.txt
+%%ANGBANDLIB%%/help/town.hlp
+%%ANGBANDLIB%%/help/town.txt
+%%ANGBANDLIB%%/help/version.txt
+%%ANGBANDLIB%%/info/delete.me
+%%ANGBANDLIB%%/pref/delete.me
+%%ANGBANDLIB%%/save/delete.me
+%%ANGBANDLIB%%/script/delete.me
+%%ANGBANDLIB%%/user/colors.prf
+%%ANGBANDLIB%%/user/font-ami.prf
+%%ANGBANDLIB%%/user/font-dos.prf
+%%ANGBANDLIB%%/user/font-ibm.prf
+%%ANGBANDLIB%%/user/font-mac.prf
+%%ANGBANDLIB%%/user/font-mon.prf
+%%ANGBANDLIB%%/user/font-win.prf
+%%ANGBANDLIB%%/user/font-x11.prf
+%%ANGBANDLIB%%/user/font-xxx.prf
+%%ANGBANDLIB%%/user/font.prf
+%%ANGBANDLIB%%/user/graf-ami.prf
+%%ANGBANDLIB%%/user/graf-dos.prf
+%%ANGBANDLIB%%/user/graf-gcu.prf
+%%ANGBANDLIB%%/user/graf-ibm.prf
+%%ANGBANDLIB%%/user/graf-lsl.prf
+%%ANGBANDLIB%%/user/graf-mac.prf
+%%ANGBANDLIB%%/user/graf-new.prf
+%%ANGBANDLIB%%/user/graf-win.prf
+%%ANGBANDLIB%%/user/graf-x11.prf
+%%ANGBANDLIB%%/user/graf-xaw.prf
+%%ANGBANDLIB%%/user/graf-xxx.prf
+%%ANGBANDLIB%%/user/graf.prf
+%%ANGBANDLIB%%/user/pref-acn.prf
+%%ANGBANDLIB%%/user/pref-ami.prf
+%%ANGBANDLIB%%/user/pref-emx.prf
+%%ANGBANDLIB%%/user/pref-gcu.prf
+%%ANGBANDLIB%%/user/pref-key.prf
+%%ANGBANDLIB%%/user/pref-mac.prf
+%%ANGBANDLIB%%/user/pref-win.prf
+%%ANGBANDLIB%%/user/pref-x11.prf
+%%ANGBANDLIB%%/user/pref.prf
+%%ANGBANDLIB%%/user/spell-xx.prf
+%%ANGBANDLIB%%/user/user-win.prf
+%%ANGBANDLIB%%/user/user.prf
+%%ANGBANDLIB%%/user/xtra-gcu.prf
+%%ANGBANDLIB%%/user/xtra-new.prf
+%%ANGBANDLIB%%/user/xtra-xxx.prf
+%%ANGBANDLIB%%/xtra/font/10X20.FON
+%%ANGBANDLIB%%/xtra/font/12X24.FON
+%%ANGBANDLIB%%/xtra/font/5X8.FON
+%%ANGBANDLIB%%/xtra/font/6X10.FON
+%%ANGBANDLIB%%/xtra/font/6X12.FON
+%%ANGBANDLIB%%/xtra/font/6X13.FON
+%%ANGBANDLIB%%/xtra/font/6X13B.FON
+%%ANGBANDLIB%%/xtra/font/6X9.FON
+%%ANGBANDLIB%%/xtra/font/7X13.FON
+%%ANGBANDLIB%%/xtra/font/7X13B.FON
+%%ANGBANDLIB%%/xtra/font/8X13.FON
+%%ANGBANDLIB%%/xtra/font/8X13B.FON
+%%ANGBANDLIB%%/xtra/font/9X15.FON
+%%ANGBANDLIB%%/xtra/font/9X15B.FON
+%%ANGBANDLIB%%/xtra/font/xm10x17.fnt
+%%ANGBANDLIB%%/xtra/font/xm10x17b.fnt
+%%ANGBANDLIB%%/xtra/font/xm12x20.fnt
+%%ANGBANDLIB%%/xtra/font/xm12x20b.fnt
+%%ANGBANDLIB%%/xtra/font/xm16x25.fnt
+%%ANGBANDLIB%%/xtra/font/xm16x25b.fnt
+%%ANGBANDLIB%%/xtra/font/xm4x6.fnt
+%%ANGBANDLIB%%/xtra/font/xm5x8.fnt
+%%ANGBANDLIB%%/xtra/font/xm6x12.fnt
+%%ANGBANDLIB%%/xtra/font/xm6x12b.fnt
+%%ANGBANDLIB%%/xtra/font/xm8x13.fnt
+%%ANGBANDLIB%%/xtra/font/xm8x13b.fnt
+%%ANGBANDLIB%%/xtra/font/xm8x16.fnt
+%%ANGBANDLIB%%/xtra/font/xm8x16b.fnt
+%%ANGBANDLIB%%/xtra/graf/readme.txt
+%%ANGBANDLIB%%/xtra/music/delete.me
+%%ANGBANDLIB%%/xtra/sound/sound.cfg
+%%ANGBANDLIB%%/edit/a_info_j.txt
+%%ANGBANDLIB%%/edit/e_info_j.txt
+%%ANGBANDLIB%%/edit/f_info_j.txt
+%%ANGBANDLIB%%/edit/k_info_j.txt
+%%ANGBANDLIB%%/edit/misc_j.txt
+%%ANGBANDLIB%%/edit/q0000001_j.txt
+%%ANGBANDLIB%%/edit/q0000002_j.txt
+%%ANGBANDLIB%%/edit/q0000003_j.txt
+%%ANGBANDLIB%%/edit/q0000004_j.txt
+%%ANGBANDLIB%%/edit/q0000005_j.txt
+%%ANGBANDLIB%%/edit/q0000006_j.txt
+%%ANGBANDLIB%%/edit/q0000007_j.txt
+%%ANGBANDLIB%%/edit/q0000019_j.txt
+%%ANGBANDLIB%%/edit/q0000020_j.txt
+%%ANGBANDLIB%%/edit/q0000021_j.txt
+%%ANGBANDLIB%%/edit/q0000022_j.txt
+%%ANGBANDLIB%%/edit/q0000023_j.txt
+%%ANGBANDLIB%%/edit/q0000027_j.txt
+%%ANGBANDLIB%%/edit/q0000028_j.txt
+%%ANGBANDLIB%%/edit/q00000ms_j.txt
+%%ANGBANDLIB%%/edit/q000chao_j.txt
+%%ANGBANDLIB%%/edit/q000dekn_j.txt
+%%ANGBANDLIB%%/edit/q000eric_j.txt
+%%ANGBANDLIB%%/edit/q000lyeh_j.txt
+%%ANGBANDLIB%%/edit/q000natu_j.txt
+%%ANGBANDLIB%%/edit/q000sorc_j.txt
+%%ANGBANDLIB%%/edit/q00water_j.txt
+%%ANGBANDLIB%%/edit/q0clone0_j.txt
+%%ANGBANDLIB%%/edit/q0fields_j.txt
+%%ANGBANDLIB%%/edit/q0thief1_j.txt
+%%ANGBANDLIB%%/edit/q0thief2_j.txt
+%%ANGBANDLIB%%/edit/q0willow_j.txt
+%%ANGBANDLIB%%/edit/q_avenge_j.txt
+%%ANGBANDLIB%%/edit/q_info_j.txt
+%%ANGBANDLIB%%/edit/q_oberon_j.txt
+%%ANGBANDLIB%%/edit/q_pref_j.txt
+%%ANGBANDLIB%%/edit/q_random_j.txt
+%%ANGBANDLIB%%/edit/q_serpen_j.txt
+%%ANGBANDLIB%%/edit/q_warg_j.txt
+%%ANGBANDLIB%%/edit/qdarkelf_j.txt
+%%ANGBANDLIB%%/edit/qhaunted_j.txt
+%%ANGBANDLIB%%/edit/r_info_j.txt
+%%ANGBANDLIB%%/edit/t0000001_j.txt
+%%ANGBANDLIB%%/edit/t0000002_j.txt
+%%ANGBANDLIB%%/edit/t0000003_j.txt
+%%ANGBANDLIB%%/edit/t0000004_j.txt
+%%ANGBANDLIB%%/edit/t0000005_j.txt
+%%ANGBANDLIB%%/edit/t_basic_j.txt
+%%ANGBANDLIB%%/edit/t_info_j.txt
+%%ANGBANDLIB%%/edit/t_lite_j.txt
+%%ANGBANDLIB%%/edit/t_pref_j.txt
+%%ANGBANDLIB%%/edit/v_info_j.txt
+%%ANGBANDLIB%%/edit/w_info_j.txt
+%%ANGBANDLIB%%/file/a_cursed_j.txt
+%%ANGBANDLIB%%/file/a_high_j.txt
+%%ANGBANDLIB%%/file/a_low_j.txt
+%%ANGBANDLIB%%/file/a_med_j.txt
+%%ANGBANDLIB%%/file/aname_j.txt
+%%ANGBANDLIB%%/file/chainswd_j.txt
+%%ANGBANDLIB%%/file/crime_j.txt
+%%ANGBANDLIB%%/file/dead_j.txt
+%%ANGBANDLIB%%/file/death_j.txt
+%%ANGBANDLIB%%/file/elvish_j.txt
+%%ANGBANDLIB%%/file/error_j.txt
+%%ANGBANDLIB%%/file/mondeath_j.txt
+%%ANGBANDLIB%%/file/monfear_j.txt
+%%ANGBANDLIB%%/file/monfrien_j.txt
+%%ANGBANDLIB%%/file/monspeak_j.txt
+%%ANGBANDLIB%%/file/news_j.txt
+%%ANGBANDLIB%%/file/rumors_j.txt
+%%ANGBANDLIB%%/file/silly_j.txt
+%%ANGBANDLIB%%/file/timefun_j.txt
+%%ANGBANDLIB%%/file/timenorm_j.txt
+%%ANGBANDLIB%%/file/w_cursed_j.txt
+%%ANGBANDLIB%%/file/w_high_j.txt
+%%ANGBANDLIB%%/file/w_low_j.txt
+%%ANGBANDLIB%%/file/w_med_j.txt
+%%ANGBANDLIB%%/help/j_feature.txt
+%%ANGBANDLIB%%/help/j_general.txt
+%%ANGBANDLIB%%/help/j_history.txt
+%%ANGBANDLIB%%/help/j_item1.txt
+%%ANGBANDLIB%%/help/j_item2.txt
+%%ANGBANDLIB%%/help/j_trans.txt
+%%ANGBANDLIB%%/help/jattack.hlp
+%%ANGBANDLIB%%/help/jattack.txt
+%%ANGBANDLIB%%/help/jbirth.hlp
+%%ANGBANDLIB%%/help/jbirth.txt
+%%ANGBANDLIB%%/help/jbldg.txt
+%%ANGBANDLIB%%/help/jcharattr.hlp
+%%ANGBANDLIB%%/help/jcharattr.txt
+%%ANGBANDLIB%%/help/jcommand.hlp
+%%ANGBANDLIB%%/help/jcommand.txt
+%%ANGBANDLIB%%/help/jcommand0.txt
+%%ANGBANDLIB%%/help/jcommdesc.hlp
+%%ANGBANDLIB%%/help/jcommdesc.txt
+%%ANGBANDLIB%%/help/jdefend.hlp
+%%ANGBANDLIB%%/help/jdefend.txt
+%%ANGBANDLIB%%/help/jdungeon.hlp
+%%ANGBANDLIB%%/help/jdungeon.txt
+%%ANGBANDLIB%%/help/jgambling.txt
+%%ANGBANDLIB%%/help/jobjects.hlp
+%%ANGBANDLIB%%/help/jgeneral.hlp
+%%ANGBANDLIB%%/help/jgeneral.txt
+%%ANGBANDLIB%%/help/jhelp.hlp
+%%ANGBANDLIB%%/help/jhelpinfo.txt
+%%ANGBANDLIB%%/help/jmagic.hlp
+%%ANGBANDLIB%%/help/jmagic.txt
+%%ANGBANDLIB%%/help/jmonster.hlp
+%%ANGBANDLIB%%/help/jmonster.txt
+%%ANGBANDLIB%%/help/jobjects.txt
+%%ANGBANDLIB%%/help/joption.hlp
+%%ANGBANDLIB%%/help/joption.txt
+%%ANGBANDLIB%%/help/jpref.hlp
+%%ANGBANDLIB%%/help/jpref.txt
+%%ANGBANDLIB%%/help/jspecial.hlp
+%%ANGBANDLIB%%/help/jtang.txt
+%%ANGBANDLIB%%/help/jtown.hlp
+%%ANGBANDLIB%%/help/jtown.txt
+%%ANGBANDLIB%%/help/jversion.txt
+%%ANGBANDLIB%%/help/jwizard.txt
+@exec mkdir %D/%%ANGBANDLIB%%/data
+@exec chown -R games:games %D/%%ANGBANDLIB%%/apex %D/%%ANGBANDLIB%%/data
+@exec chmod 775 %D/%%ANGBANDLIB%%
+@exec chmod -R ug+rw,o-rw %D/%%ANGBANDLIB%%/*
+@exec chmod -R o+r %D/%%ANGBANDLIB%%/help %D/%%ANGBANDLIB%%/xtra
+@exec chmod 1777 %D/%%ANGBANDLIB%%/save %D/%%ANGBANDLIB%%/user
+@dirrm %%ANGBANDLIB%%/apex
+@dirrm %%ANGBANDLIB%%/bone
+@dirrm %%ANGBANDLIB%%/data
+@dirrm %%ANGBANDLIB%%/edit
+@dirrm %%ANGBANDLIB%%/file
+@dirrm %%ANGBANDLIB%%/help
+@dirrm %%ANGBANDLIB%%/info
+@dirrm %%ANGBANDLIB%%/pref
+@dirrm %%ANGBANDLIB%%/save
+@dirrm %%ANGBANDLIB%%/script
+@dirrm %%ANGBANDLIB%%/user
+@dirrm %%ANGBANDLIB%%/xtra/font
+@dirrm %%ANGBANDLIB%%/xtra/graf
+@dirrm %%ANGBANDLIB%%/xtra/music
+@dirrm %%ANGBANDLIB%%/xtra/sound
+@dirrm %%ANGBANDLIB%%/xtra
+@dirrm %%ANGBANDLIB%%