pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/nagi another interpreter for Sierra AGI games (b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/415f5e4e8088
branches:  trunk
changeset: 460031:415f5e4e8088
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Sat Aug 16 15:33:01 2003 +0000

description:
another interpreter for Sierra AGI games (besides sarien), works better for
me on -current

diffstat:

 games/nagi/DESCR            |   8 ++++++++
 games/nagi/Makefile         |  31 +++++++++++++++++++++++++++++++
 games/nagi/PLIST            |   9 +++++++++
 games/nagi/distinfo         |   8 ++++++++
 games/nagi/files/nagi.sh    |   2 ++
 games/nagi/patches/patch-aa |  15 +++++++++++++++
 games/nagi/patches/patch-ab |  12 ++++++++++++
 games/nagi/patches/patch-ac |  12 ++++++++++++
 games/nagi/patches/patch-ad |  28 ++++++++++++++++++++++++++++
 9 files changed, 125 insertions(+), 0 deletions(-)

diffs (161 lines):

diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/DESCR  Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,8 @@
+NAGI (New Adventure Game Interpreter) is a clone of Sierra's own
+AGI which they created and used through the 80's to produce a whole
+bunch of great adventure games like Space Quest, Leisure Suit Larry
+and Kings Quest. NAGI was created by disassembling the original AGI
+executable and writing equivalent C code that would run under
+SDL which is a free generic library for low-level access
+to graphics and audio. It can read both v2 and v3 game data for the
+PC.
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/Makefile       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+#
+
+DISTNAME=              nagi_src_-_2002-11-14
+PKGNAME=               nagi-20021114
+CATEGORIES=            games
+MASTER_SITES=          http://www.agidev.com/dl_files/nagi/
+
+MAINTAINER=            tech-pkg%NetBSD.org@localhost
+HOMEPAGE=              http://www.agidev.com/projects/nagi/
+COMMENT=               Clone of Sierra's AGI
+
+WRKSRC=                ${WRKDIR}/src
+USE_BUILDLINK2=                yes
+USE_GMAKE=     yes
+MAKEFILE=      Makefile.linux
+
+NAGILIB=       ${PREFIX}/lib/nagi
+
+post-build:
+       ${SED} "s|@PREFIX@|${PREFIX}|" <${FILESDIR}/nagi.sh >${WRKDIR}/nagi.sh
+
+do-install:
+       ${INSTALL_DATA_DIR} ${NAGILIB}
+       ${INSTALL_PROGRAM} ${WRKDIR}/bin/nagi ${NAGILIB}
+       ${INSTALL_DATA} ${WRKDIR}/bin/*.nbf ${WRKDIR}/bin/*.ini ${NAGILIB}
+       ${INSTALL_SCRIPT} ${WRKDIR}/nagi.sh ${PREFIX}/bin/nagi
+
+.include "../../devel/SDL/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/PLIST  Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+bin/nagi
+lib/nagi/font_16x16.nbf
+lib/nagi/font_4x8.nbf
+lib/nagi/font_8x8.nbf
+lib/nagi/nagi
+lib/nagi/nagi.ini
+lib/nagi/standard.ini
+@dirrm lib/nagi
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/distinfo       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+
+SHA1 (nagi_src_-_2002-11-14.tar.gz) = 3afeae70e78dd36a3d8b114212992318a8182372
+Size (nagi_src_-_2002-11-14.tar.gz) = 168462 bytes
+SHA1 (patch-aa) = 92da2bdf74408185e5bcf8ca4633f29562fdc041
+SHA1 (patch-ab) = be98a1935d935d0da3b88ec7ae4b74fa4d3d57fe
+SHA1 (patch-ac) = 10ec8958798d0f50af5a3ddd5fb2fedfd53c3f13
+SHA1 (patch-ad) = 138424ecf4d319a697c27f6c2ddbfb221c64dcec
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/files/nagi.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/files/nagi.sh  Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @PREFIX@/lib/nagi/nagi $@
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/patches/patch-aa       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+
+--- agi.h.orig 2003-08-11 15:37:42.000000000 +0200
++++ agi.h      2003-08-11 15:38:24.000000000 +0200
+@@ -378,8 +378,8 @@
+ 
+ #define AGI_TRACE printf("trace at: file=%s, func=%s, line=%d\n", __FILE__,__PRETTY_FUNCTION__, __LINE__);
+ 
+-#define strdupa(str_data) ({ u8 *blah = alloca(strlen(str_data)+1); \
+-                                      strcpy(blah, str_data); \
++#define strdupa(str_data) ({ u8 *blah = alloca(strlen(str_data)+1); \
++                                      strcpy(blah, str_data); \
+                                       blah; })
+ 
+ #define CT_INT (0)
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/patches/patch-ab       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+
+--- sys/agi_file.h.orig        2003-08-11 15:40:12.000000000 +0200
++++ sys/agi_file.h     2003-08-11 15:40:56.000000000 +0200
+@@ -7,6 +7,7 @@
+ #ifdef RAD_LINUX
+ #include <sys/types.h>
+ #include <dirent.h>
++#include <sys/syslimits.h>
+ #else
+ #include <io.h>
+ #endif
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/patches/patch-ac       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+
+--- sys/rand.c.orig    2003-08-11 15:41:44.000000000 +0200
++++ sys/rand.c 2003-08-11 15:42:54.000000000 +0200
+@@ -5,6 +5,7 @@
+ //#include "../sys/delay.h"
+ 
+ // gettimeofday() does not exist in mingw libraries
++#include <sys/types.h>
+ #include <sys/timeb.h>
+ 
+ u16 agi_rand_seed = 0;
diff -r 374402dcd7f4 -r 415f5e4e8088 games/nagi/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nagi/patches/patch-ad       Sat Aug 16 15:33:01 2003 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/08/16 15:33:01 drochner Exp $
+
+--- Makefile.linux.orig        2003-08-11 15:44:26.000000000 +0200
++++ Makefile.linux     2003-08-11 15:46:00.000000000 +0200
+@@ -2,14 +2,14 @@
+ 
+ CFLAGS += -DRAD_LINUX -DRAD_WARN
+ 
+-LIB = -lSDLmain -lSDL -lpthread
++LIB = -lSDLmain -lSDL -lpthread -lcompat
+ 
+ all:  nagi
+ 
+ nagi: ../bin/nagi
+ 
+ ../bin/nagi: $(OBJ)
+-      $(CC) $(CFLAGS) $(OBJ) $(LIB) -o $@
++      $(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) $(LIB) -o $@
+ 
+ #cleanall: clean depclean
+ 
+@@ -26,4 +26,4 @@
+ #include $(SRC:.c=.d)
+ 
+ %.o: %.c
+-      $(CC) $(CFLAGS) -c $< -o $@
+\ No newline at end of file
++      $(CC) $(CFLAGS) -c $< -o $@



Home | Main Index | Thread Index | Old Index