Much belated angband port.

This commit is contained in:
espie 2000-04-16 21:03:12 +00:00
parent 8bc36bb0e8
commit f7f5e1bb69
7 changed files with 198 additions and 0 deletions

37
games/angband/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/04/16 21:03:12 espie Exp $
DISTNAME= angband-283
PKGNAME= angband-2.8.3
CATEGORIES= games
MAINTAINER= ci2@gmx.net
MASTER_SITES= ftp://export.andrew.cmu.edu/angband/Source/ \
ftp://ftp.sunet.se/pub/games/Angband/Source/
DISTFILES= ${DISTNAME}.tar.gz ext-x11-283.tar.gz
MAKE_FILE= Makefile.std
# basic no fee license
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= No
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= No
MAKE_FLAGS= CC=${CC} CFLAGS+='-Wall ${CFLAGS} -DUSE_XAW -DUSE_GCU -DDEFAULT_PATH=\"${PREFIX}/share/angband/\" -I$(X11BASE)/include' LIBS+='-L${X11BASE}/lib -lXaw -lXmu -lXt -lX11 -lcurses -ltermcap'
FAKE= Yes
WRKSRC= ${WRKDIST}/src
HOMEPAGE= http://www.phial.com/angband/
ALL_TARGET= angband
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/angband
(cd ${WRKDIST}/lib && ${TAR} -cf - * ) | (cd ${PREFIX}/share/angband && tar -xf - )
${INSTALL_DATA} ${WRKDIR}/ext-x11-283/lib/xtra/tiles.raw ${PREFIX}/share/angband/xtra
chown -R ${SHAREOWN}:games ${PREFIX}/share/angband
cd ${PREFIX}/share/angband && chmod 0775 apex data save user
${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g games -m 2555 ${WRKSRC}/angband ${PREFIX}/bin
.include <bsd.port.mk>

6
games/angband/files/md5 Normal file
View File

@ -0,0 +1,6 @@
MD5 (angband-283.tar.gz) = 33c56940cf2f9c7aa265204159ab1cf8
MD5 (ext-x11-283.tar.gz) = 05b9b5c0c06bddc24f9e5b62cc4764c7
RMD160 (angband-283.tar.gz) = 0b910673d6bd6faa07850274ff19bfae51b03707
RMD160 (ext-x11-283.tar.gz) = c531dd9ef78577bdee1fc1bdbd950d173f6b295c
SHA1 (angband-283.tar.gz) = 1dc4a2786c31c2336daf57f76f4fa762f7d84cf3
SHA1 (ext-x11-283.tar.gz) = 92856cc4f84ba7ea6e40127440ebb236d1056294

View File

@ -0,0 +1,59 @@
--- src/cmd4.c.orig Wed Feb 11 12:30:28 1998
+++ src/cmd4.c Sat Apr 15 19:42:04 2000
@@ -2603,12 +2603,15 @@ static void do_cmd_knowledge_artifacts(v
bool okay[MAX_A_IDX];
+ int fd;
/* Temporary file */
- if (path_temp(file_name, 1024)) return;
+ strcpy(file_name, "/tmp/ang.XXXXXXXXXX");
+ fd = mkstemp(file_name);
+ if (fd < 0) fff = NULL;
+ else fff = fdopen(fd, "w");
- /* Open a new file */
- fff = my_fopen(file_name, "w");
+/* fff = my_fopen(file_name, "w"); */
/* Scan the artifacts */
for (k = 0; k < MAX_A_IDX; k++)
@@ -2737,12 +2740,15 @@ static void do_cmd_knowledge_uniques(voi
char file_name[1024];
+ int fd;
/* Temporary file */
- if (path_temp(file_name, 1024)) return;
+ strcpy(file_name, "/tmp/ang.XXXXXXXXXX");
+ fd = mkstemp(file_name);
+ if (fd < 0) fff = NULL;
+ else fff = fdopen(fd, "w");
- /* Open a new file */
- fff = my_fopen(file_name, "w");
+/* fff = my_fopen(file_name, "w"); */
/* Scan the monster races */
for (k = 1; k < MAX_R_IDX-1; k++)
@@ -2789,12 +2795,15 @@ static void do_cmd_knowledge_objects(voi
char file_name[1024];
+ int fd;
/* Temporary file */
- if (path_temp(file_name, 1024)) return;
+ strcpy(file_name, "/tmp/ang.XXXXXXXXXX");
+ fd = mkstemp(file_name);
+ if (fd < 0) fff = NULL;
+ else fff = fdopen(fd, "w");
- /* Open a new file */
- fff = my_fopen(file_name, "w");
+/* fff = my_fopen(file_name, "w"); */
/* Scan the object kinds */
for (k = 1; k < MAX_K_IDX; k++)

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-ab,v 1.1.1.1 2000/04/16 21:03:15 espie Exp $
--- src/util.c.orig Sat Apr 15 19:36:48 2000
+++ src/util.c Sat Apr 15 19:42:19 2000
@@ -274,6 +274,7 @@ errr path_parse(char *buf, int max, cptr
#endif /* SET_UID */
+#if 0
/*
* Hack -- acquire a "temporary" file name if possible
*
@@ -295,6 +296,7 @@ errr path_temp(char *buf, int max)
/* Success */
return (0);
}
+#endif
/*

View File

@ -0,0 +1 @@
rogue-like game with X11 support

9
games/angband/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
Angband is a "graphical" dungeon adventure game in the vein of
"rogue", "hack", "nethack", and "moria".
There are some ascii "on line help" files in /usr/local/share/angband/help
Use commandline option -g to request graphics mode.
Official Angband Home Page "http://www.phial.com/angband/"
Newsgroup rec.games.roguelike.angband

67
games/angband/pkg/PLIST Normal file
View File

@ -0,0 +1,67 @@
@group games
@mode 2755
bin/angband
@mode
share/angband/edit/a_info.txt
share/angband/edit/e_info.txt
share/angband/edit/f_info.txt
share/angband/edit/k_info.txt
share/angband/edit/r_info.txt
share/angband/edit/v_info.txt
share/angband/file/dead.txt
share/angband/file/news.txt
share/angband/help/attack.txt
share/angband/help/birth.txt
share/angband/help/command.txt
share/angband/help/dungeon.txt
share/angband/help/general.txt
share/angband/help/help.hlp
share/angband/help/option.txt
share/angband/help/playing.txt
share/angband/help/version.txt
share/angband/user/font-ami.prf
share/angband/user/font-dos.prf
share/angband/user/font-ibm.prf
share/angband/user/font-mac.prf
share/angband/user/font-win.prf
share/angband/user/font-x11.prf
share/angband/user/font-xxx.prf
share/angband/user/font.prf
share/angband/user/graf-ami.prf
share/angband/user/graf-ibm.prf
share/angband/user/graf-mac.prf
share/angband/user/graf-win.prf
share/angband/user/graf-x11.prf
share/angband/user/graf-xxx.prf
share/angband/user/graf.prf
share/angband/user/pref-acn.prf
share/angband/user/pref-ami.prf
share/angband/user/pref-emx.prf
share/angband/user/pref-gcu.prf
share/angband/user/pref-mac.prf
share/angband/user/pref-win.prf
share/angband/user/pref-x11.prf
share/angband/user/pref.prf
share/angband/user/user-mac.prf
share/angband/user/user.prf
share/angband/xtra/tiles.raw
@exec mkdir -m 0775 %D/share/angband/apex
@exec mkdir -m 0755 %D/share/angband/bone
@exec mkdir -m 0775 %D/share/angband/data
@exec mkdir -m 0755 %D/share/angband/info
@exec mkdir -m 0775 %D/share/angband/save
@exec chmod 0775 %D/share/angband/user
@unexec rm -f %D/share/angband/apex/*
@unexec rm -f %D/share/angband/data/*
@unexec rm -f %D/share/angband/save/*
@dirrm share/angband/xtra
@dirrm share/angband/user
@dirrm share/angband/save
@dirrm share/angband/info
@dirrm share/angband/help
@dirrm share/angband/file
@dirrm share/angband/edit
@dirrm share/angband/data
@dirrm share/angband/bone
@dirrm share/angband/apex
@dirrm share/angband