Several changes are involved since they are all interrelated. These
changes affect about 1000 files.
The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files. Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred. This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.
The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.
The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc. The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.
The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files. Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories. These files are used as input
to imake since imake can't use stdin for that purpose.
The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead. This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed. Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries. Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
o only include it in the BUILD_DEFS if the current platform is concerned.
For now that only includes i386, but we might find amd64 users in the
future.
o test against [Yy][Ee][Ss], for consistency.
Fixes part of PR 26243.
Changes since snes9x-1.37.3 include:
- Fixed a timing problem caused by a speed up hack that was affecting Top Gear
3000. No the game still isn't playable, but I noticed the problem while
investigating the DSP-4 chip used by the game.
- Added support for Star Ocean and Street Fighter 2 Alpha decompressed graphics
packs from dejap. Used a binary chop search rather than a linear search to
locate correct decompressed graphics more quickly - should help emulation
speed during later stages of the game.
- Included the latest ZSNES DSP-1 code. Now Pilotwings, SD Racer and Suzuka 8
Hours are playable. Aim For The Ace, Super Air Diver 1 & 2 and Syutoko
Battle 94 are also playable, but with bugs. Thanks to zsKnight, _demo_, et
al for all their hard work.
- Another Daffy Duck: Marvin Missions screen flicker problem worked around -
writing to the IRQ enable register shouldn't clear any pending IRQs, but
Sieken 3 seems to require this or else the game hangs. Special-cased Daffy
Duck for now.
- An NMI emulation bug was triggering a Panic Bomberman World game bug,
crashing it. Basically, if a game enables NMIs after the normal trigger
point, the NMI should not trigger if the game has already read the NMI clear
register.
- Panic Bomberman World requires SPC700 memory to be initialised to zero on
reset otherwise the game hangs when a tune finishes and another one should
start.
- Added an offset hack for Strike Gunner to get the scrolling ground layer
to line up correctly - another offset-per-tile bug hacked around for now.
- Hmm. The broken cut-scenes in Deep Space 9 seem to indicate that I haven't
got the emulated clock speed of the 65c816 CPU correct yet. And not by a
little bit - a 9% too slow error. Hacked special timing for the game for now.
- Fixed another crash bug in the interpolated mode 7 code - if no scaling
was being used (either up or down) and screen repeat was enabled and the
screen was flipped horizontally, the routine would crash Snes9x. Was causing
Snes9x to crash during rock monster boss stage of Castlevania 4.
- Oops. Got the initialisation of the default SNES screen width and height
round the wrong way - could cause a X Windows System error message on the
UNIX port after loading a ZSNES freeze file.
The package has been changed to use the oss sound instead of the sun
sound driver. This improves the sound quality.
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.
While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).
Patch by Alistair Crooks <agc@netbsd.org>
on i386/ELF, even though it could perhaps be made to work on i386/a.out.
DGA is also only enabled on i386 for now -- don't know of a good way
to check for DGA support.
Jared D. McNeill in pkg/11439, touched up by me.
XXX: i386/ELF only for now, patch-ab and patch-ac improve compilation on
a.out, but linking fails (underbar problems).