pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/frotz
Module Name: pkgsrc
Committed By: nia
Date: Thu Jul 18 11:54:26 UTC 2019
Modified Files:
pkgsrc/games/frotz: Makefile distinfo
pkgsrc/games/frotz/patches: patch-aa
Added Files:
pkgsrc/games/frotz/patches: patch-src_curses_ux__audio__oss.c
Removed Files:
pkgsrc/games/frotz: MESSAGE
pkgsrc/games/frotz/patches: patch-pb
Log Message:
frotz: Update to 2.44
NEW FEATURES
* Blorb support implemented. No support for audio in Blorb files yet.
* Added an -m option for Dumb Frotz to suppress the [MORE] prompt.
* Makefile and code for compiling for 16-bit DOS.
BUG FIXES
* Fixed a problem with saving and restoring in certain games.
* Added some fflush() calls to make Dumb Frotz more suitable for bot use.
* Removed old-style save support. It was getting hard to manage. Only the Quetzal save file format is supported now.
* Fixed assorted minor 64-bitness problems.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 pkgsrc/games/frotz/MESSAGE
cvs rdiff -u -r1.32 -r1.33 pkgsrc/games/frotz/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/games/frotz/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/games/frotz/patches/patch-aa
cvs rdiff -u -r1.1 -r0 pkgsrc/games/frotz/patches/patch-pb
cvs rdiff -u -r0 -r1.1 \
pkgsrc/games/frotz/patches/patch-src_curses_ux__audio__oss.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/frotz/Makefile
diff -u pkgsrc/games/frotz/Makefile:1.32 pkgsrc/games/frotz/Makefile:1.33
--- pkgsrc/games/frotz/Makefile:1.32 Thu Jan 19 18:52:10 2017
+++ pkgsrc/games/frotz/Makefile Thu Jul 18 11:54:26 2019
@@ -1,26 +1,31 @@
-# $NetBSD: Makefile,v 1.32 2017/01/19 18:52:10 agc Exp $
+# $NetBSD: Makefile,v 1.33 2019/07/18 11:54:26 nia Exp $
-DISTNAME= frotz-2.43
-PKGREVISION= 5
+DISTNAME= frotz-2.44
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=frotz/}
-MASTER_SITES+= ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/frotz/
+MASTER_SITES= https://gitlab.com/DavidGriffith/frotz/-/archive/${PKGVERSION_NOREV}/
MAINTAINER= seebs%plethora.net@localhost
-HOMEPAGE= http://frotz.sourceforge.net/
+HOMEPAGE= https://davidgriffith.gitlab.io/frotz/j
COMMENT= Curses-based interpreter for Infocom-compatible games
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
-MAKE_ENV+= SOUND_DEFS=-DOSS_SOUND
-MAKE_ENV+= SOUND_LIB=${LIBOSSAUDIO}
-MAKE_ENV+= SOUND_DEV=${DEVOSSSOUND}
+MAKE_FLAGS+= SOUND_DEFS=-DOSS_SOUND
+MAKE_FLAGS+= SOUND_LIB=${LIBOSSAUDIO}
+CPPFLAGS+= -DSOUND_DEV=\"${DEVOSSSOUND}\"
.endif
+MAKE_FLAGS+= CONFIG_DIR=${PKG_SYSCONFDIR}
+
SAMPLEDIR= ${PREFIX}/share/examples/frotz
DOCDIR= ${PREFIX}/share/doc/frotz
+CONF_FILES+= ${SAMPLEDIR}/frotz.conf ${PKG_SYSCONFDIR}/frotz.conf
+
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
do-install:
Index: pkgsrc/games/frotz/distinfo
diff -u pkgsrc/games/frotz/distinfo:1.12 pkgsrc/games/frotz/distinfo:1.13
--- pkgsrc/games/frotz/distinfo:1.12 Tue Nov 3 20:56:50 2015
+++ pkgsrc/games/frotz/distinfo Thu Jul 18 11:54:26 2019
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.12 2015/11/03 20:56:50 agc Exp $
+$NetBSD: distinfo,v 1.13 2019/07/18 11:54:26 nia Exp $
-SHA1 (frotz-2.43.tar.gz) = 2b2684ec670b471489c15be732c7dd1c59821b00
-RMD160 (frotz-2.43.tar.gz) = ccfc303e116e517caff0fec8f3bd555dfc02ae4e
-SHA512 (frotz-2.43.tar.gz) = 654f2ca2d1a625df8f88b5629e09a873668cea42688acdf154636b066b94fc9d70b7f45acb33a71d234c19b59c394c63aee38d6224245b3b329210e6b4a58409
-Size (frotz-2.43.tar.gz) = 160771 bytes
-SHA1 (patch-aa) = 1d6f92a0c5fae76d13e4de0ce4a9886eda4d1ca9
-SHA1 (patch-pb) = e7d63332e82b5835de051ec0696a76dbe3822042
+SHA1 (frotz-2.44.tar.gz) = d7203a80605d4dc9731b65c92c677738ba105100
+RMD160 (frotz-2.44.tar.gz) = 69314238d040ca1aefd87b9e4a3468463842b312
+SHA512 (frotz-2.44.tar.gz) = a6d41005fc62a93fd4b3a0b573365999bc635108cca5fc8cb03f347e3e1ddac0a6f7aec2e90f079d4875886ed779af9cf8c75543dd530165b0b78b51d05c3862
+Size (frotz-2.44.tar.gz) = 276718 bytes
+SHA1 (patch-aa) = e087f9f519b492f1e0fdb60b358d8ebe07288415
+SHA1 (patch-src_curses_ux__audio__oss.c) = 74ecf48d2dab36bc9ebb4c5bbf70e011a4b6cd49
Index: pkgsrc/games/frotz/patches/patch-aa
diff -u pkgsrc/games/frotz/patches/patch-aa:1.8 pkgsrc/games/frotz/patches/patch-aa:1.9
--- pkgsrc/games/frotz/patches/patch-aa:1.8 Wed Aug 19 04:04:40 2009
+++ pkgsrc/games/frotz/patches/patch-aa Thu Jul 18 11:54:26 2019
@@ -1,8 +1,10 @@
-$NetBSD: patch-aa,v 1.8 2009/08/19 04:04:40 yyamano Exp $
+$NetBSD: patch-aa,v 1.9 2019/07/18 11:54:26 nia Exp $
---- Makefile.orig 2002-10-27 17:21:52.000000000 -0800
+Honour pkgsrc settings.
+
+--- Makefile.orig 2015-05-20 09:29:14.000000000 +0000
+++ Makefile
-@@ -1,7 +1,7 @@
+@@ -1,30 +1,27 @@
# Define your C compiler. I recommend gcc if you have it.
# MacOS users should use "cc" even though it's really "gcc".
#
@@ -11,7 +13,12 @@ $NetBSD: patch-aa,v 1.8 2009/08/19 04:04
#CC = cc
# Define your optimization flags. Most compilers understand -O and -O2,
-@@ -14,7 +14,7 @@ OPTS = -O2
+ # Standard (note: Solaris on UltraSparc using gcc 2.8.x might not like this.)
+ #
+-OPTS = -O2
+
+ # Pentium with gcc 2.7.0 or better
+ #OPTS = -O2 -fomit-frame-pointer -malign-functions=2 -malign-loops=2 \
#-malign-jumps=2
# Define where you want Frotz installed. Usually this is /usr/local
@@ -20,21 +27,47 @@ $NetBSD: patch-aa,v 1.8 2009/08/19 04:04
MAN_PREFIX = $(PREFIX)
#MAN_PREFIX = /usr/local/share
-@@ -24,7 +24,7 @@ CONFIG_DIR = $(PREFIX)/etc
+
+-CONFIG_DIR = $(PREFIX)/etc
+ #CONFIG_DIR = /etc
# Define where you want Frotz to look for frotz.conf.
#
-CONFIG_DIR = /usr/local/etc
-+CONFIG_DIR = ${PREFIX}/etc
#CONFIG_DIR = /etc
#CONFIG_DIR = /usr/pkg/etc
#CONFIG_DIR =
-@@ -163,7 +163,7 @@ FLAGS = $(OPTS) $(COMP_DEFS) $(INCL)
+@@ -195,7 +192,7 @@ FLAGS = $(OPTS) $(CURSES_DEFS) $(INCL)
$(NAME): $(NAME)-curses
+ curses: $(NAME)-curses
+ $(NAME)-curses: $(COMMON_TARGET) $(CURSES_TARGET) $(BLORB_TARGET)
+- $(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) $(SOUND_LIB)
++ $(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) $(SOUND_LIB)
+
+ dumb: $(NAME)-dumb
+ d$(NAME): $(NAME)-dumb
+@@ -214,19 +211,19 @@ all: $(NAME) d$(NAME)
+ .SUFFIXES: .c .o .h
+
+ $(COMMON_OBJECT): %.o: %.c
+- $(CC) $(OPTS) $(COMMON_DEFS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(COMMON_DEFS) -o $@ -c $<
+
+ $(BLORB_OBJECT): %.o: %.c
+- $(CC) $(OPTS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+
+ $(DUMB_OBJECT): %.o: %.c
+- $(CC) $(OPTS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+
+ $(CURSES_OBJECT): %.o: %.c
+- $(CC) $(OPTS) $(CURSES_DEFS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(CURSES_DEFS) -o $@ -c $<
+
+ $(SDL_OBJECT): %.o: %.c
+- $(CC) $(OPTS) $(SDL_DEFS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_DEFS) -o $@ -c $<
- $(NAME)-curses: soundcard.h $(COMMON_TARGET) $(CURSES_TARGET)
-- $(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
-+ $(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
- $(SOUND_LIB)
- all: $(NAME) d$(NAME)
+ # If you're going to make this target manually, you'd better know which
Added files:
Index: pkgsrc/games/frotz/patches/patch-src_curses_ux__audio__oss.c
diff -u /dev/null pkgsrc/games/frotz/patches/patch-src_curses_ux__audio__oss.c:1.1
--- /dev/null Thu Jul 18 11:54:26 2019
+++ pkgsrc/games/frotz/patches/patch-src_curses_ux__audio__oss.c Thu Jul 18 11:54:26 2019
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_curses_ux__audio__oss.c,v 1.1 2019/07/18 11:54:26 nia Exp $
+
+Avoid colliding with another symbol.
+
+--- src/curses/ux_audio_oss.c.orig 2015-05-20 09:29:14.000000000 +0000
++++ src/curses/ux_audio_oss.c
+@@ -80,7 +80,7 @@ static void sigterm_handler(int signal)
+ _exit(0);
+ }
+
+-static void sigint_handler(int signal) {
++static void sigint_handler_oss(int signal) {
+ num_repeats = 1;
+ }
+
+@@ -141,7 +141,7 @@ static void play_sound(int volume, int r
+ sigaddset(&sa.sa_mask, SIGTERM);
+ sa.sa_flags = 0;
+ sigaction(SIGTERM, &sa, NULL);
+- sa.sa_handler = sigint_handler;
++ sa.sa_handler = sigint_handler_oss;
+ sigaction(SIGINT, &sa, NULL);
+
+ for (num_repeats = repeats; num_repeats > 0;
Home |
Main Index |
Thread Index |
Old Index