David Griffith [Mon, 16 Sep 2019 02:00:41 +0000 (02:00 +0000)]
Fix problem with building on *BSD of mentions of blorblib when nothing to build.
David Griffith [Mon, 16 Sep 2019 02:00:03 +0000 (19:00 -0700)]
Reword ncurses notes.
David Griffith [Mon, 16 Sep 2019 01:46:12 +0000 (01:46 +0000)]
Mention the need for NetBSD users to install libao-sun.
David Griffith [Fri, 13 Sep 2019 20:41:06 +0000 (13:41 -0700)]
Add some defines and ifndefs to omit headers missing from OpenBSD.
David Griffith [Fri, 13 Sep 2019 18:34:28 +0000 (11:34 -0700)]
Disable Immintrin (Intel Intrinsics Emulation) for OpenBSD
It's not like that will do much good for what Frotz does anyhow.
David Griffith [Fri, 13 Sep 2019 18:18:23 +0000 (11:18 -0700)]
Adding OS-specific section for OpenBSD.
David Griffith [Sat, 14 Sep 2019 20:51:02 +0000 (13:51 -0700)]
Talk about locale for getting proper UTF-8 support in curses and dumb.
David Griffith [Sat, 14 Sep 2019 20:50:28 +0000 (13:50 -0700)]
Update INSTALL with curses discussion and OpenBSD library nomenclature.
David Griffith [Sat, 14 Sep 2019 00:48:37 +0000 (17:48 -0700)]
Delete a.out when distcleaning.
David Griffith [Fri, 13 Sep 2019 20:05:00 +0000 (13:05 -0700)]
Mention Paul Gilbert in AUTHORS.
Paul Gilbert [Fri, 13 Sep 2019 19:15:20 +0000 (12:15 -0700)]
Edit colors on images with adaptive palettes.
In Zork Zero and Arthur, some images have no palettes of their own.
These change their colors according to images plotted before. Kevin
Bracy called these "adaptive palette pictures". To deal with them, he
proposed an extension to the Blorb standard to add an "APal" chunk which
lists the images that have adaptive palettes. The changes in this
commit make sfrotz read that chunk and then rewrite the palettes of
listed images when they are loaded.
This is described in much greater detail in
http://ifarchive.org/if-archive/programming/blorb/blorb-infocom-extension.txt
The work to correctly implement processing of adaptive palettes was done by Paul
Gilbert <dreammaster@scummvm.org>. I, David Griffith, condensed what would have been
an irritatingly messy merge into a single commit and did general cleanup before
committing Paul's changes using his name.
David Griffith [Fri, 13 Sep 2019 04:44:56 +0000 (04:44 +0000)]
Typo zlip --> zlib
David Griffith [Fri, 13 Sep 2019 04:06:28 +0000 (04:06 +0000)]
Add a.out to .gitignore for NetBSD.
David Griffith [Fri, 13 Sep 2019 03:52:52 +0000 (03:52 +0000)]
Keep NetBSD from mistakenly using curses.h in /usr/pkg/include/ncurses?.
If /usr/pkg/include/ncurses and/or /usr/pkg/include/ncursesw are passed
as arguments to the -I flag, the build process gets confused and will
abort with complaints about acs_map being undefined.
David Griffith [Wed, 4 Sep 2019 21:42:38 +0000 (14:42 -0700)]
Conditionally use -D_POSIX_C_SOURCE=200809L for Linux only for now.
I don't know why this was causing problems for FreeBSD.
David Griffith [Wed, 4 Sep 2019 21:41:20 +0000 (14:41 -0700)]
Remove trailing spaces.
David Griffith [Wed, 4 Sep 2019 21:31:45 +0000 (14:31 -0700)]
CFLAGS don't belong in the final linking.
David Griffith [Wed, 4 Sep 2019 20:55:27 +0000 (20:55 +0000)]
Finish with SDL interface for FreeBSD.
David Griffith [Wed, 4 Sep 2019 09:17:48 +0000 (02:17 -0700)]
Maybe this will prove helpful in getting Xterm to always do UTF-8.
David Griffith [Wed, 4 Sep 2019 09:14:25 +0000 (02:14 -0700)]
Update manpages for dumb and curses frotz with Unicode info.
David Griffith [Wed, 4 Sep 2019 07:42:40 +0000 (00:42 -0700)]
Remove mention of -R (restricted read/write path) as it's not yet implemented for sfrotz.
David Griffith [Wed, 4 Sep 2019 07:41:26 +0000 (00:41 -0700)]
Remove mention of .frotzrc -- not used with sfrotz.
David Griffith [Wed, 4 Sep 2019 07:40:49 +0000 (00:40 -0700)]
Fix some awkward wording.
David Griffith [Wed, 4 Sep 2019 07:39:42 +0000 (00:39 -0700)]
Bold instances of frotz and sfrotz in manpage.
David Griffith [Wed, 4 Sep 2019 07:30:11 +0000 (00:30 -0700)]
Update sfrotz manpage to talk about Unicode support.
David Griffith [Wed, 4 Sep 2019 06:56:52 +0000 (23:56 -0700)]
Add some tweaks for FreeBSD; no sound curses interface.
David Griffith [Wed, 4 Sep 2019 02:02:29 +0000 (02:02 +0000)]
Remove extraneous parentheses.
David Griffith [Tue, 3 Sep 2019 07:05:56 +0000 (07:05 +0000)]
Merge branch 'more-pkg-config' into 'master'
More pkg-config fixes for SDL and ncurses
See merge request DavidGriffith/frotz!123
James Le Cuirot [Mon, 2 Sep 2019 21:51:52 +0000 (22:51 +0100)]
Use shell Makefile function to avoid repeatedly calling pkg-config
It was being called many times when using backticks.
James Le Cuirot [Mon, 2 Sep 2019 21:39:03 +0000 (22:39 +0100)]
Use pkg-config to get ncurses(w) flags, falling back to static strings
Using pkg-config ensures that -I/usr/include/ncursesw is added when
necessary. This picks up the correct ncurses.h when both the wide and
non-wide versions are installed.
It also ensures that -ltinfo(w) is added when necessary. Some
distributions such as Gentoo build it as a separate library.
David Griffith [Mon, 2 Sep 2019 01:29:53 +0000 (18:29 -0700)]
Fix mess with defines.
There was an ongoing problem with how I was handling defs.h et al
causing things to be entirely rebuilt or not rebuilt at all without
first doing a "make clean". This fixes those problems that were last
addressed in
03e0c58b2363e5daecc29da44edf27fe4bc4beaa.
David Griffith [Mon, 2 Sep 2019 00:59:17 +0000 (00:59 +0000)]
Merge branch 'toolchain-paths' into 'master'
Don't add $(PREFIX)/include and $(PREFIX)/lib to toolchain paths
See merge request DavidGriffith/frotz!122
David Griffith [Sun, 1 Sep 2019 03:09:01 +0000 (03:09 +0000)]
Merge branch 'pkg-config' into 'master'
Allow building with a specific pkg-config given by PKG_CONFIG
See merge request DavidGriffith/frotz!121
James Le Cuirot [Sat, 31 Aug 2019 13:54:11 +0000 (14:54 +0100)]
Don't add $(PREFIX)/include and $(PREFIX)/lib to toolchain paths
PREFIX is only applicable at install and runtime. The headers and
libraries we're building against may not be in the same location,
particularly if we're cross-compiling. Adding -I/usr/include when
cross-compiling will likely break the build.
It is generally not necessary to add these paths anyway as toolchains
are already configured to look in the appropriate places for system
headers and libraries. There may be exceptions but these can be dealt
with via CFLAGS and LDFLAGS. Perhaps this is necessary for MacPorts
but I'm not familiar with it.
James Le Cuirot [Sat, 31 Aug 2019 13:49:03 +0000 (14:49 +0100)]
Allow building with a specific pkg-config given by PKG_CONFIG
Sometimes wrappers around pkg-config are used for cross-compiling.
David Griffith [Sat, 31 Aug 2019 00:45:56 +0000 (17:45 -0700)]
Remove version.c and put build date back into git_hash.h.
I was never quite satisfied with the way I did version.c. I seem to
recall someone telling me it was improper to put the build date into
git_hash.h. After a couple months of this, I looked again and realized
that I picked an irritating solution -- Frotz will always be rebuilt
when doing "make install". The difference between when version.c is
created and when someone is done monkeying with the build process does
not seem to be of much consequence.
David Griffith [Fri, 30 Aug 2019 22:57:55 +0000 (22:57 +0000)]
Merge branch 'keydelay' into 'master'
Swallow unexpected timeout keycode
See merge request DavidGriffith/frotz!120
David Griffith [Fri, 30 Aug 2019 22:48:26 +0000 (15:48 -0700)]
Remove R from getopt that isn't being used for anything yet.
I just noticed that the -R flag for restricting where sfrotz is allowed
to read and write is not implemented. This feature isn't quite as useful
for the SDL interface as it is for the curses and dumb interfaces, so
I'll give this a 2.46 milestone. If anyone reading this issue feels like
implementing this now, that's great and I'll merge it when you're done.
David Griffith [Fri, 30 Aug 2019 22:39:04 +0000 (15:39 -0700)]
Fix improper way of checking for uninitialized string.
Bill Lash [Fri, 30 Aug 2019 02:52:02 +0000 (21:52 -0500)]
Swallow unexpected timeout keycode
Insted of passing on an timeout event when there is no timeout set,
just skip it.
David Griffith [Thu, 29 Aug 2019 03:30:13 +0000 (03:30 +0000)]
Merge branch 'keydelay' into 'master'
Check to see if a timeout is expected
Closes #136
See merge request DavidGriffith/frotz!119
Bill Lash [Thu, 29 Aug 2019 02:10:16 +0000 (21:10 -0500)]
Check to see if a timeout is expected
When a timeout keycode is received, make sure that it is expected,
otherwise a non-existent timeout routine may be called.
David Griffith [Tue, 27 Aug 2019 22:30:07 +0000 (15:30 -0700)]
Add mention of Unicode by way of UTF-8 in INSTALL.
David Griffith [Mon, 26 Aug 2019 00:39:15 +0000 (17:39 -0700)]
Segfault with -r and no parameter. Add missing colon to zgetopt() call.
David Griffith [Sat, 24 Aug 2019 00:19:19 +0000 (17:19 -0700)]
Move sf_searchfile() from sf_ftype.c to sf_fonts.c.
David Griffith [Fri, 23 Aug 2019 23:44:57 +0000 (16:44 -0700)]
Fix problem with fontdir option in .sfrotzrc not being honored for .bdf fonts.
David Griffith [Tue, 20 Aug 2019 06:19:23 +0000 (23:19 -0700)]
Removed dependency preprocessor stuff that never did anything useful.
These options had the side-effect of forcing the SDL library to be
completely recompiled all the time because build_timestamp in
src/common/version.c is rewritted every time the Makefile is run.
David Griffith [Fri, 16 Aug 2019 04:58:46 +0000 (21:58 -0700)]
Add targets to .PHONY to re-allow partial rebuild.
Somehow when doing
2559eb24b6314939dde07d7bed5927cb37929dda, I neglected
to put $(COMMON_DEFINES) $(CURSES_DEFINES) $(COMMON_STRINGS) $(HASH)
into .PHONY. This had the effect of requiring me to do "make clean ;
make" after altering one file. Otherwise the build would simply report
that blorblib.a is up to date and exit.
David Griffith [Wed, 14 Aug 2019 19:20:16 +0000 (12:20 -0700)]
Fix null trailer problem with Blorb file loading.
David Griffith [Tue, 6 Aug 2019 08:07:10 +0000 (01:07 -0700)]
Ask player if it's okay to overwrite an existing recording file.
David Griffith [Sun, 28 Jul 2019 10:33:32 +0000 (10:33 +0000)]
Merge branch 'sdl_sfrotzrc' into 'master'
Sdl sfrotzrc
See merge request DavidGriffith/frotz!118
Bill Lash [Sun, 28 Jul 2019 03:05:31 +0000 (22:05 -0500)]
Also look for .sfrotzrc in home directory
Bill Lash [Sat, 27 Jul 2019 02:43:36 +0000 (21:43 -0500)]
Merging with upstream
Bill Lash [Sat, 27 Jul 2019 02:41:39 +0000 (21:41 -0500)]
Merge branch 'master' of https://gitlab.com/DavidGriffith/frotz
David Griffith [Tue, 23 Jul 2019 10:42:58 +0000 (03:42 -0700)]
Add stuff needed for NetBSD to build sfrotz. Still messy in sf_ftype.c.
David Griffith [Tue, 23 Jul 2019 10:00:36 +0000 (03:00 -0700)]
Identify host OS as Unix if so. Include unistd.h protected by UNIX define.
David Griffith [Thu, 25 Jul 2019 22:51:20 +0000 (15:51 -0700)]
Add list of packages for sfrotz using NetBSD nomenclature.
David Griffith [Tue, 23 Jul 2019 07:54:47 +0000 (00:54 -0700)]
Remove pointless link to dl library.
David Griffith [Tue, 23 Jul 2019 07:44:25 +0000 (00:44 -0700)]
Add specifics for NetBSD compilation. Remove -ltinfo.
David Griffith [Tue, 23 Jul 2019 06:55:06 +0000 (23:55 -0700)]
Reorder ifdefs to prevent redefinition of wint_t problems in NetBSD.
David Griffith [Mon, 22 Jul 2019 00:38:34 +0000 (17:38 -0700)]
Set h_config and h_flags properly concerning graphics in curses.
I noticed this was being done in the old V6 semi-support for the dumb
interface. For some reason, Alembic didn't see fit to copy it over to
when he submitted his V6 semi-support for the curses interface.
This should probably be done for SDL as well.
David Griffith [Sun, 21 Jul 2019 23:28:27 +0000 (16:28 -0700)]
Added Blorbified V6 semi-support to dumb interface.
David Griffith [Sun, 21 Jul 2019 02:24:02 +0000 (19:24 -0700)]
Add processing of Rect chunks for V6 semi-support.
David Griffith [Thu, 18 Jul 2019 01:06:45 +0000 (18:06 -0700)]
Endian swap not necessary.
David Griffith [Thu, 18 Jul 2019 00:09:23 +0000 (17:09 -0700)]
Update leading comments for Makefiles: for Frotz and GNU make required.
David Griffith [Thu, 18 Jul 2019 00:06:04 +0000 (00:06 +0000)]
Fix problem with an ifdef that should have been ifndef.
David Griffith [Wed, 17 Jul 2019 10:06:14 +0000 (03:06 -0700)]
First stab at V6 semi-support through Blorb in curses. Things are distorted.
Right now, the code detects PNG and JPG images. However, stuff seems to
be done only for Infocom's games and the blorbs made up for them. Even
then, the results are distorted. This may be because rectangle chunks
aren't being processed and the code depends on some chunks that aren't
found in post-Infocom V6 blorbs. Still, here's something to play with.
David Griffith [Mon, 15 Jul 2019 09:42:46 +0000 (02:42 -0700)]
Get the number of CPUs available with Linux. Not doing anything with it yet.
David Griffith [Mon, 15 Jul 2019 09:38:12 +0000 (02:38 -0700)]
Avoid race conditions when doing a parallelized buid.
If the -jX flag is used to indicate that X CPUs should be used to build
Frotz, there is a slight chance that the definitions files:
src/common/defs.h, src/curses/ux_defines.h, and src/common/git_hash.h;
will not be complete before the build process starts on the rest of the
source files. If this happens, the build fails.
David Griffith [Mon, 15 Jul 2019 04:52:56 +0000 (21:52 -0700)]
Fix trouble with wint_t being redefined with NetBSD.
David Griffith [Mon, 15 Jul 2019 04:46:35 +0000 (21:46 -0700)]
Detect NetBSD and add casts to quell complaints with toupper() and isspace().
David Griffith [Mon, 15 Jul 2019 03:53:51 +0000 (20:53 -0700)]
Fix problem with reporting audio enabled when really disabled.
David Griffith [Mon, 15 Jul 2019 03:39:47 +0000 (20:39 -0700)]
Re-add src/common/git_hash.h to .gitignore.
David Griffith [Sun, 14 Jul 2019 09:15:52 +0000 (02:15 -0700)]
Mention CONTRIBUTORS in README.1st.
David Griffith [Sun, 14 Jul 2019 09:14:11 +0000 (02:14 -0700)]
Delete the old and very stale BUGS file.
David Griffith [Sun, 14 Jul 2019 07:53:31 +0000 (00:53 -0700)]
Delete stale link to PDF.
David Griffith [Sun, 14 Jul 2019 00:49:12 +0000 (17:49 -0700)]
Rework lead comments for DOS interface files.
David Griffith [Sun, 14 Jul 2019 00:19:48 +0000 (17:19 -0700)]
Corrected address of the Free Software Foundation.
David Griffith [Sun, 14 Jul 2019 00:16:05 +0000 (17:16 -0700)]
Added README.md for respository use.
David Griffith [Sun, 14 Jul 2019 00:04:51 +0000 (17:04 -0700)]
Some minor edits to README and INSTALL.
David Griffith [Sat, 13 Jul 2019 11:58:16 +0000 (04:58 -0700)]
Merge branch 'fleger1/frotz-story-ids'
David Griffith [Sat, 13 Jul 2019 11:57:46 +0000 (04:57 -0700)]
Indent and space fixes.
David Griffith [Sat, 13 Jul 2019 07:19:52 +0000 (00:19 -0700)]
get_prop_len opcode returns 0 when argument is 0 per Z-machine spec 1.1.
Copied from Windows Frotz.
David Griffith [Sat, 13 Jul 2019 06:55:22 +0000 (23:55 -0700)]
Adding a "nosound" target to build curses interface without audio support.
Previously if you wanted to build Frotz without sound support, you
needed to edit the Makefile.
David Griffith [Fri, 12 Jul 2019 20:55:33 +0000 (13:55 -0700)]
Adding the Praxix tests to test suite.
David Griffith [Fri, 12 Jul 2019 20:53:59 +0000 (20:53 +0000)]
Merge branch 'print_table' into 'master'
Fix @print_table in non-V6 lower window
See merge request DavidGriffith/frotz!117
borg323 [Fri, 12 Jul 2019 14:43:16 +0000 (17:43 +0300)]
Fix @print_table in non-V6 lower window
This is a direct port of commit
7adcf62693ecfc8439260a7abe62c3d5a190c160
from Windows-Frotz:
https://github.com/DavidKinder/Windows-Frotz/commit/
7adcf62693ecfc8439260a7abe62c3d5a190c160
Florian Léger [Fri, 12 Jul 2019 06:57:22 +0000 (08:57 +0200)]
Add a few more story ids for alpha/beta/gamma versions
Some of them come from the WinFrotz source code,
others are from The Obsessively Complete Infocom Catalog.
Florian Léger [Wed, 10 Jul 2019 11:55:17 +0000 (13:55 +0200)]
Add more story ids
David Griffith [Wed, 10 Jul 2019 08:29:58 +0000 (08:29 +0000)]
Merge branch 'resizable' into 'master'
SFROTZ: make window resizable
See merge request DavidGriffith/frotz!114
Florian Léger [Wed, 10 Jul 2019 07:55:04 +0000 (09:55 +0200)]
SFROTZ: make window resizable
David Griffith [Tue, 9 Jul 2019 22:42:59 +0000 (22:42 +0000)]
Merge branch 'win-diff' into 'master'
reduce diff to windows frotz
See merge request DavidGriffith/frotz!113
borg323 [Tue, 9 Jul 2019 14:41:17 +0000 (17:41 +0300)]
remove stale comment
borg323 [Mon, 8 Jul 2019 23:03:53 +0000 (02:03 +0300)]
reduce diff to windows frotz
David Griffith [Mon, 8 Jul 2019 02:13:37 +0000 (19:13 -0700)]
Added another note to the ChangeLog.
David Griffith [Mon, 8 Jul 2019 01:48:37 +0000 (18:48 -0700)]
Add stuff to the ChangeLog.
David Griffith [Mon, 8 Jul 2019 00:08:08 +0000 (00:08 +0000)]
Merge branch 'zchar_cleanup' into 'master'
change os_check_unicode() 2nd argument to zchar
See merge request DavidGriffith/frotz!112
borg323 [Sun, 7 Jul 2019 11:16:04 +0000 (14:16 +0300)]
change os_check_unicode() 2nd argument to zchar
David Griffith [Sat, 6 Jul 2019 02:12:26 +0000 (19:12 -0700)]
Allow for alternative Blorb file at command line for curses, sdl, and dumb.
Doing this for the SDL interface is proved a bit troublesome because
it's not very clear where stuff is being set and where not. After the
audio overhaul release, I want to overhaul the SDL interface code to
make it as closely resemble as feasible that of the curses interface.
David Griffith [Sat, 6 Jul 2019 01:44:35 +0000 (18:44 -0700)]
Merge branch 'welash-audio_repeats'