summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordrochner <drochner>2003-08-16 15:33:01 +0000
committerdrochner <drochner>2003-08-16 15:33:01 +0000
commit8d3280be94631d0413e31603802da3d9618edf1c (patch)
tree4677561f51ead89154792ad4e5d47f1a4ab6b6e0 /games
parenta2496a24b54f10684bbf62794aa683c41ce48ec6 (diff)
downloadpkgsrc-8d3280be94631d0413e31603802da3d9618edf1c.tar.gz
another interpreter for Sierra AGI games (besides sarien), works better for
me on -current
Diffstat (limited to 'games')
-rw-r--r--games/nagi/DESCR8
-rw-r--r--games/nagi/Makefile31
-rw-r--r--games/nagi/PLIST9
-rw-r--r--games/nagi/distinfo8
-rw-r--r--games/nagi/files/nagi.sh2
-rw-r--r--games/nagi/patches/patch-aa15
-rw-r--r--games/nagi/patches/patch-ab12
-rw-r--r--games/nagi/patches/patch-ac12
-rw-r--r--games/nagi/patches/patch-ad28
9 files changed, 125 insertions, 0 deletions
diff --git a/games/nagi/DESCR b/games/nagi/DESCR
new file mode 100644
index 00000000000..7cfc9cabfda
--- /dev/null
+++ b/games/nagi/DESCR
@@ -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 --git a/games/nagi/Makefile b/games/nagi/Makefile
new file mode 100644
index 00000000000..717ae1a9344
--- /dev/null
+++ b/games/nagi/Makefile
@@ -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
+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 --git a/games/nagi/PLIST b/games/nagi/PLIST
new file mode 100644
index 00000000000..3314cefdf7b
--- /dev/null
+++ b/games/nagi/PLIST
@@ -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 --git a/games/nagi/distinfo b/games/nagi/distinfo
new file mode 100644
index 00000000000..c034cfeb538
--- /dev/null
+++ b/games/nagi/distinfo
@@ -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 --git a/games/nagi/files/nagi.sh b/games/nagi/files/nagi.sh
new file mode 100644
index 00000000000..f0fa18410ae
--- /dev/null
+++ b/games/nagi/files/nagi.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @PREFIX@/lib/nagi/nagi $@
diff --git a/games/nagi/patches/patch-aa b/games/nagi/patches/patch-aa
new file mode 100644
index 00000000000..49de547261b
--- /dev/null
+++ b/games/nagi/patches/patch-aa
@@ -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 --git a/games/nagi/patches/patch-ab b/games/nagi/patches/patch-ab
new file mode 100644
index 00000000000..f27cff5797c
--- /dev/null
+++ b/games/nagi/patches/patch-ab
@@ -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 --git a/games/nagi/patches/patch-ac b/games/nagi/patches/patch-ac
new file mode 100644
index 00000000000..835ce71e4b5
--- /dev/null
+++ b/games/nagi/patches/patch-ac
@@ -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 --git a/games/nagi/patches/patch-ad b/games/nagi/patches/patch-ad
new file mode 100644
index 00000000000..57b1fa65eb7
--- /dev/null
+++ b/games/nagi/patches/patch-ad
@@ -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 $@