pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/frotz frotz: Update to 2.50



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39f956ff7d93
branches:  trunk
changeset: 418281:39f956ff7d93
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Nov 24 00:45:39 2019 +0000

description:
frotz: Update to 2.50

NEW FEATURES

- Added UTF-8 input and output.  Plain ASCII is still available.

- Added -L option for restoring save file directly from the command line.

- Added -R option for restricted read/write path.

- Sound effects in AIFF, MOD, and OGG formats supported per the Blorb specs.

- Sound driver selection is automated through the use of libao.

- Allow for an alternative Blorb file to be specified on the command line.


BUG FIXES

- Overhauled MacOS compilation.

- Corrected problems with error handling.

- Fixed a lot of unsafe strcpy() and strcat() calls.

- Fixed numerous problems with portability to other flavors of Unix.

- Fixed adaptive palette rendering for SDL.

- Fixed scaling with manually specified window dimensions.

- Fixed problem with unnecessary newlines with input timeouts.

- Allow fontdir in .sfrotzrc to work relative to user's home directory.

- Fixed problem with memory allocation leading to crashes in DOS.

- Fixed problem with DOS Frotz creating non-portable Quetzal files.

diffstat:

 games/frotz/Makefile                                  |  17 ++--
 games/frotz/distinfo                                  |  13 +-
 games/frotz/patches/patch-Makefile                    |  33 ++++++++
 games/frotz/patches/patch-aa                          |  73 -------------------
 games/frotz/patches/patch-src_curses_ux__audio__oss.c |  24 ------
 5 files changed, 47 insertions(+), 113 deletions(-)

diffs (199 lines):

diff -r 0161a5a98371 -r 39f956ff7d93 games/frotz/Makefile
--- a/games/frotz/Makefile      Sun Nov 24 00:36:18 2019 +0000
+++ b/games/frotz/Makefile      Sun Nov 24 00:45:39 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2019/07/18 15:06:50 nia Exp $
+# $NetBSD: Makefile,v 1.35 2019/11/24 00:45:39 nia Exp $
 
-DISTNAME=      frotz-2.44
+DISTNAME=      frotz-2.50
 CATEGORIES=    games
 MASTER_SITES=  https://gitlab.com/DavidGriffith/frotz/-/archive/${PKGVERSION_NOREV}/
 
@@ -11,13 +11,9 @@
 
 USE_TOOLS+=    gmake
 
-.include "../../mk/bsd.prefs.mk"
+BUILD_TARGET=  curses
 
-.if ${OPSYS} != "Darwin"
-MAKE_FLAGS+=   SOUND_DEFS=-DOSS_SOUND
-MAKE_FLAGS+=   SOUND_LIB=${LIBOSSAUDIO}
-CPPFLAGS+=     -DSOUND_DEV=\"${DEVOSSSOUND}\"
-.endif
+FAKE_NCURSES=  yes
 
 MAKE_FLAGS+=   CONFIG_DIR=${PKG_SYSCONFDIR}
 
@@ -39,6 +35,9 @@
        cd ${WRKSRC} && ${INSTALL_DATA} README INSTALL HOW_TO_PLAY \
                ${DESTDIR}${DOCDIR}
 
+.include "../../audio/libao/buildlink3.mk"
+.include "../../audio/libmodplug/buildlink3.mk"
+.include "../../audio/libsamplerate/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
 .include "../../mk/curses.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0161a5a98371 -r 39f956ff7d93 games/frotz/distinfo
--- a/games/frotz/distinfo      Sun Nov 24 00:36:18 2019 +0000
+++ b/games/frotz/distinfo      Sun Nov 24 00:45:39 2019 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.13 2019/07/18 11:54:26 nia Exp $
+$NetBSD: distinfo,v 1.14 2019/11/24 00:45:39 nia Exp $
 
-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
+SHA1 (frotz-2.50.tar.gz) = 29238d73a10335961708e3728ae6b377b6e13d91
+RMD160 (frotz-2.50.tar.gz) = 01c352d22447609ed09ddc31cca5bd218858c373
+SHA512 (frotz-2.50.tar.gz) = bb7240c56b5cae061ce641bac62df0abbb63a271f5da3011b68c1d483a2e25409dea163e6f9bffc80b3dccaac7db0964db83366b9b7652f942390fd08be6b8ae
+Size (frotz-2.50.tar.gz) = 346972 bytes
+SHA1 (patch-Makefile) = e0b4cbd547abb358784ed044adc1563745c925b2
diff -r 0161a5a98371 -r 39f956ff7d93 games/frotz/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/frotz/patches/patch-Makefile        Sun Nov 24 00:45:39 2019 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-Makefile,v 1.1 2019/11/24 00:45:39 nia Exp $
+
+Do not force -O3/-g.
+
+Fix indentation.
+
+--- Makefile.orig      2019-11-13 03:18:50.000000000 +0000
++++ Makefile
+@@ -6,14 +6,13 @@ CC ?= gcc
+ #CC ?= clang
+ 
+ # Enable compiler warnings. This is an absolute minimum.
+-CFLAGS += -Wall -std=c99 -O3 #-Wextra
++CFLAGS += -Wall -std=c99
+ 
+ # Define your optimization flags.
+ #
+ # These are good for regular use.
+ #CFLAGS += -O2 -fomit-frame-pointer -falign-functions=2 -falign-loops=2 -falign-jumps=2
+ # These are handy for debugging.
+-CFLAGS += -g
+ 
+ # Define where you want Frotz installed
+ PREFIX ?= /usr/local
+@@ -297,7 +296,7 @@ ifneq ($(and $(wildcard $(GIT_DIR)),$(sh
+               $(NAME)src/doc/*.6 $(NAME)src/doc/frotz.conf* \
+               $(NAME)src/doc/Xresources  > /dev/null
+ else
+-        @echo "Not in a git repository or git command not found.  Cannot make a tarball."
++      @echo "Not in a git repository or git command not found.  Cannot make a tarball."
+ endif
+ 
+ all: $(FROTZ_BIN) $(DFROTZ_BIN) $(SFROTZ_BIN)
diff -r 0161a5a98371 -r 39f956ff7d93 games/frotz/patches/patch-aa
--- a/games/frotz/patches/patch-aa      Sun Nov 24 00:36:18 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2019/07/18 11:54:26 nia Exp $
-
-Honour pkgsrc settings.
-
---- Makefile.orig      2015-05-20 09:29:14.000000000 +0000
-+++ Makefile
-@@ -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".
- #
--CC = gcc
-+CC ?= cc
- #CC = cc
- 
- # Define your optimization flags.  Most compilers understand -O and -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
--PREFIX = /usr/local
-+#PREFIX = /usr/local
- 
- MAN_PREFIX = $(PREFIX)
- #MAN_PREFIX = /usr/local/share
- 
--CONFIG_DIR = $(PREFIX)/etc
- #CONFIG_DIR = /etc
- 
- # Define where you want Frotz to look for frotz.conf.
- #
--CONFIG_DIR = /usr/local/etc
- #CONFIG_DIR = /etc
- #CONFIG_DIR = /usr/pkg/etc
- #CONFIG_DIR =
-@@ -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 $<
- 
- 
- # If you're going to make this target manually, you'd better know which
diff -r 0161a5a98371 -r 39f956ff7d93 games/frotz/patches/patch-src_curses_ux__audio__oss.c
--- a/games/frotz/patches/patch-src_curses_ux__audio__oss.c     Sun Nov 24 00:36:18 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$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