Tue Jan 1 22:16:15 2019 UTC ()
emulators/snes9x[-gtk]: update to 1.58.

also, rework gtk libretro-snes9x to use emulators/snes9x/Makefile.common

take maintainership since i was basically maintaining the libretro package
which was already the most up to date version in pkgsrc and now everything
uses Makefile.common.

Changelog:

Snes9x 1.58
- Move the LICENSE file to the base directory and use a stub
  in all the source files referring to it.
- Adjust Chou Aniki timing hack.
- Use 1-based numbering when displaying pressed keys.
- Hide controller port if disabled when displaying keys.
- Fix movie playback. (OV2, BearOso)

 libretro:
- Fix interlaced modes when overscan crop is enabled.
- Allow overriding -flto. (orbea)

 GTK+:
- Use shared snes_ntsc implementation.
- Remove extra LGPL licensing to avoid confusion.
- Don't translate config file entries. Fixes breakage on
  non-C languages.
- Fix issue where config file doesn't contain all configurable
  entries.
- Remove config options for Netplay, Joystick, and JMA. SDL 2.0
  is now mandatory.
- Updated gettext and removed intltool. update-po should now catch
  all translatable strings.
- If available, reduce input lag option will now use fences instead
  of glFinish to prevent hogging the CPU.
- Onscreen text can be variable width and will show up in some more
  cases now.

 Win32:
- Add audio device selection (XAudio2 only)

Snes9x 1.57
- Various seta010 emulation fixes.                          (kps501)
- Pass blargg OAM tests with proper write behavior.         (BearOso)
- Prevent interlacing in BG modes 1-4.                      (BearOso)
- Corrected IRQ and NMI emulation to allow more games to
  work properly.                                            (BearOso, OV2)
- Use 1 instead of 0 for initial PPU left window coordinate,
  fixing garbage in left column of pixels in some games.    (turhope)
- Added interpolation option hack for DSP.                  (kps501, mudlord,
                                                            BearOso)
- Added sprite-tile limit disabling hack.                   (Tatsuya79)
- Added libretro's fast snapshot support.                   (OV2)
- Add overclocking hack that increases IPC                  (retrotalker)
- Fix controller initialization issues preventing some games
  from using multitap.                                      (retrotalker)
- Proper write behavior for register $2122.                 (BearOso)
- Fix transparency issue with Star Fox asteroids.           (redguy, BearOso)
- Increase SuperFX speed to more accurately represent
  hardware, and fix bugs with Stunt Race FX and Yoshi's
  Island.                                                   (BearOso)
- Resize viewport on state load.                            (retrotalker)
- Many fixes to variables not saved or saved incorrectly in
  save states.                                              (Dwedit)
- Pass decimal tests in blargg's math test ROMs.            (BearOso)
- Remove memory leak in loadzip.cpp.                        (bonimy)
- Fix screen size not reverting when overscan is turned on
  then off mid-frame.                                       (BearOso)

 Win32:
- Include DirectDraw libraries and compile with DirectDraw
  support by default.                                       (OV2)
- Add a link to DirectX installer in error message displayed
  when the needed DirectX libraries can't be found.         (OV2)
- Save window position when exiting via menu                (OV2)
- Make custom ROM dialog resizable.                         (OV2)
- Fix various cheat dialog issues.                          (OV2)
- Remove d3d9x DLL dependency by using DirectXMath.         (OV2)
- Remove rarely-used HLSL shader option.                    (OV2)
- Add InitialSnapshotFilename support.                      (BearOso)
- Disable BG toggle keys by default.                        (BearOso)
- Proper centering and cropping for overscanned and
  regular height modes.                                     (OV2)
- Remove ability to disable the SNES's hires modes.         (OV2)
- Added a Super Famicom-style icon resource to the EXE.     (BearOso)

 MacOS:
- Partial support for new cheats format.                    (OV2)
- Fix MacOS build.                                          (marconett)
- Set default for new config options.                       (tmkk)
- Fix compilation on Mac OS Mojave                          (meepingsnesroms)

 libretro:
- Massive update of libretro code to latest downstream.      (fr500, kps501,
                                                             OV2, twinaphex,
                                                             BearOso,
                                                             hiddenasbestos,
                                                             m4xw, kxyxz,
                                                             claudiuslollarius)

 GTK+:
- Use datarootdir instead of datadir on install.            (orbea)
- Fix --with-system-zip configure flag.                     (BearOso)
- Draw interlaced fields when ready.                        (BearOso)
- Initial Wayland support.                                  (remicalixte)
- Allow XV only in X11.                                     (BearOso)
- Add Wayland support via EGL.                              (BearOso)
- Significant rewrite of OpenGL driver to support newer
  standards. This won't work on cards < OpenGL ~1.5.        (BearOso)
- Changed frameskip option to speed throttling option with
  simpler, but more relevant methods of speed control.      (BearOso)
- Add support for relative-style save slots.                (ichigo-0, BearOso)
- Remove XML config file format in favor of one more like
  Win32. Make joystick bindings and more options human-
  readable and editable.                                    (BearOso)
- Try more device nodes when initializing OSS.              (BearOso)

Snes9x 1.56.2
- Fixed IRQ corner case that caused Umihara Kawase's water
  to cover the whole screen.                                (BearOso)
- Adjusted IRQ timing slightly. Fixes Dragon Ball Z - Super
  Butouden 2.                                               (BearOso)
- Clear WAI when IRQLine is active. Fixes Top Gear 3000.    (BearOso)
- Fix reading the wrong tile data in mosaic drawing. Gets
  rid of glitch at top of FF6 battle transitions.           (BearOso)
- Break a specific opcode into cycles. Fixes Little Magic.  (BearOso)
- Win32: Don't mix garbage into the last line with NTSC
  filter.                                                   (OV2)
- Win32: Allow disabling scanlines in NTSC filter.          (BearOso)
- GTK+: Added an undo load state option.                    (BearOso)
- GTK+: Fixed compilation on big-endian systems.            (OV2)
- Win32, GTK+: Added integer scaling option.                (BearOso)
- GTK+, Unix: Preserve current joypad state when rewinding. (BearOso)

Snes9x 1.56.1
- Automatic input rate now only works for close multiples   (BearOso)
  of 60Hz.
- Win32: Cheats are now shown in the correct order in the   (BearOso)
  list view.
- GTK+: Check for version greater than 3.22 when using GTK+ (BearOso)
  3.
- GTK+: Don't resize code and description field in GTK+ 2.  (BearOso)

Snes9x 1.56
- Increased the speed of SA1 emulation to match hardware    (BearOso)
  more closely.
- Fixed negative SA1 division                               (BearOso, Jonas Quinn)
- Changed the location where we poll input to potentially   (Brunnis, BearOso)
  reduce lag.
- Fixed the interlace fields being swapped after skipping   (BearOso)
  frames.
- More updates for BS-X support.                            (LuigiBlood)
- Updated xBRZ to version 1.6.                              (zenju, OV2)
- Added a DMA timing hack for rpgone's Koryu no Mimi        (OV2)
  translation.
- Updated HDMA to not update indirect addresses until after (BearOso)
  transfers are completed.
- Improved cheats support. This stores cheats in a human-   (BearOso, OV2)
  readable and editable format as gamename.cht. Cheats are
  converted from the old format on load. They can be added
  in many different formats, but they will convert to the
  simple address=condition?byte format.
  Also, now included is mightymo's cheat database, and the
  ability to match a game and automatically load cheats
  from it.
- Don't reset a pending NMI on vblank end. Fixes Super      (furrykef)
  Punch-Out.
- Redo NMI timing. Fixes Secret of Evermore (PAL).          (BearOso)
- Test for transparency before dithering on SuperFX. This   (RedGuy(yyy))
  fixes some graphical artifacts in Star Fox.
- Change some of the SDD1 guesswork mapping. Fixes a Tales  (BearOso)
  of Phantasia hack.
- Return PPU1 MDR for reads of $2137 instead of CPU MDR.    (BearOso)
  Fixes Mario's Time Machine graphical glitch.
- Memset less memory for sprite calculations.               (Nebuleon)
- Don't spuriously update register 14 when running SuperFX. (BearOso)
  Fixes graphical glitches in Doom.
- Added a SuperFX clock modifier variable.                  (BearOso)
- Write CPU MDR during some DMA and HDMA transfers. Fixes   (BearOso)
  Speedy Gonzales and Funaki Masakatsu Hybrid Wrestler.
- Calculate next IRQ time in advance instead of continously (BearOso, OV2)
  checking for it.
- Added some IRQ timing quirks. Fixes at least Marko's      (BearOso, OV2)
  Magic Football.
- Fixed wrong tile selection in offset-per-tile mode.       (BearOso)
- Advance the VRAM pointer even if VRAM writes at the time  (kps501)
  are invalid.
- Return 0x80 instead of 0xff in DSP1 simulation. Fixes     (kps501)
  Powerfest '94 Mario Kart.
- Initialize controllers on reset. Fixes Looney Tunes       (kps501)
  B-Ball multitap.
- Attached APU instruction tracer and made some additions   (BearOso)
  to debugging output.
- Fix line doubling in interlaced mode.                     (kps501)
- Added support for M.A.C.S. rifle peripheral.              (kps501)
- Fixed a bug where the MSU1 channels were reversed.        (qwertymodo)
- Win32: Added dynamic rate control support for XAudio2     (OV2)
- Win32: Added different volume level configuration for     (OV2)
  regular and turbo speed.
- Win32: Added option to disable EPX scaling for messages   (OV2)
- Win32: Improve multi-rom loading.                         (OV2)
- Win32: Add libpng and zlib dependencies as submodules for (qwertymodo, OV2)
  easier compiling from source.
- Win32: Fixed icon registration.                           (OV2)
- Win32: Better support for running while unfocused.        (OV2)
- Win32: Changed icon.                                      (BearOso)
- Win32: Report hidpi support.                              (BearOso)
- Win32: Added mute hotkey and hotkeys for saving/loading   (OV2)
  from file.
- Win32: Disabled hotplugging in favor of a menu option to  (OV2)
  reconfigure joysticks.
- Win32: Added a reduce input lag option.                   (BearOso)
- Win32: Added ability to use GLSLP shaders with OpenGL,    (OV2)
  including a dialog to tweak custom parameters.
- GTK+: Added dynamic rate control support for audio to     (BearOso)
  reduce buffer overflows and underflows.
- GTK+: Increased SDL requirement to version 2.0. This      (BearOso)
  improves joystick compatibility.
- GTK+: Improved GTK+ 3.0 support and made it the default.  (BearOso)
- GTK+: Added ability to start from a snapshot on the       (julien2512)
  command line.
- GTK+: Added automatic input rate handling.                (BearOso)
- GTK+: Use 16-bit 5-6-5 pixel format for better colors.    (BearOso)
- GTK+: Now disables the compositor in fullscreen mode.     (BearOso)
- GTK+: Changed icon.                                       (BearOso)
- GTK+: Require libepoxy for OpenGL support.                (BearOso)
- GTK+: Add full compatibility with GLSLP shaders, with a   (BearOso)
  parameters dialog to configure them.
- Unix: Add xinerama support and window position hints.     (Francesco149)

Snes9x 1.55
- Added support for the MSU-1 coprocessor.                  (qwertymodo)
- Added support for MSU-1 distribution pack.                (qwertymodo)
- Added support for BS-X Satellaview memory packs and data  (LuigiBlood)
  files.
- Improved BS-X memory mapping accuracy.                    (LuigiBlood)
- Fixed APU error causing issues with some games.           (byuu, qwertymodo)
- Added option to ignore patch checksums.                   (qwertymodo)
- Fixed build warnings / undefined behavior.                (bonimy)
- Correct pixel placement in hires.                         (BearOso, OV2)
- Fixed RAM mapping for Light Fantasy.                      (hex_usr, BearOso)
- Added Circuit USA APU timing hack.                        (BearOso)
- libretro: Merged some changes from downstream repository. (OV2)
- GTK+: Allow use of XDG config directory.                  (BearOso)
- GTK+: Add 10th save slot.                                 (YamashitaRen)
- GTK+: Updated Spanish translation.                        (jristz)
- Win32: Switched to Studio 2017.                           (OV2)
- Win32: Fixed problems when minimized in d3d.              (OV2)
- Win32: Split Patch/Rom directory.                         (OV2)
- Win32: Simplified compilation by removing or including
  some dependencies (included CG headers, completely
  removed FMOD and FMOD_EX, moved direct draw to compile
  switch) and reworking solution/configurations.            (bonimy, OV2)
- Win32: Fixed crash with movie dialog                      (OV2)
- Win32: Changed hotplugging                                (OV2)

Snes9x 1.54.1
- GTK+: Properly use --std=c++11 when compiling xBRZ.       (BearOso)
- Win32: Save window position when toggling fullscreen.     (OV2)
- Win32: Do not assign down-left binding to down-right.     (OV2)

Snes9x 1.54
- Changed the S-SMP core module to one written by byuu.     (byuu, BearOso)
  This has the effect of increased accuracy, fewer
  speed hacks, but also regresses a few speed-hack games.
- Improved IRQ emulation in several cases.                  (OV2)
- Added rewind support.                                     (Themaister, OV2)
- Included libretro port.                                   (OV2, libretro team)
- Added bps soft-patching support                           (OV2)
- Fixed MMC bank register bit 7, restored 64mbit ExLoRom
  map                                                       (FuSoYa)
- GTK+, Windows: Added xBRZ filter                          (Zenju, OV2, nmagre)
- GTK+: Fixed several issues with GTK+3.                    (BearOso)
- GTK+: Added extra aspect ratio options.                   (BearOso)
- GTK+: Added option to mute sound when using turbo mode.   (BearOso)
- GTK+: Fixed expose handling to reduce overdraw and        (BearOso)
  improve performance.
- GTK+: Updated and universalized Spanish translation.      (jristz)
- Unix: Added Xv support and fixed several bugs.            (greg-kennedy)
- Win32: Added CG meta shader support                       (OV2, Themaister)
- Win32: Added support to detect joypad changes             (OV2)
- Win32: Fixed unicode command line parameters,
  Fixed controller command line parameters                  (OV2)
- Win32: Added quit hotkey                                  (OV2)
- Win32: Fixed custom rom dialog                            (OV2)
- Win32: Fixed various cheat dialog issues                  (gocha, OV2)
- Win32: Added hotkey for fast forward toggling             (gocha)
- Win32: Added drag and drop support for movies             (gocha)
- Win32: Fixed blargg filter for regular width hires        (OV2)
- Win32: Fixed snapshot loading from unicode paths          (OV2)
- Win32: Changed open-with file-association method, should
  no longer change explorer icons for otherwise
  unassociated extensions; removed legacy extensions        (OV2)

Snes9x 1.53

- Rebuilt IRQ handling.                                     (zones)
- Improved overall timings, now Snes9x can handle events in
  a opcode a little.                                        (zones)
- Improved screen interlace and sprite interlace supports.  (OV2, zones)
- Fixed Hi-Res pixel plotter.                               (BearOso, zones, OV2)
- Fixed C4 for Mega Man X2's "weapon get" screen.           (Jonas Quinn)
- Fixed Super Buster Bros. graphics after reset.            (Jonas Quinn)
- Improved SA-1 support.                                    (zones)
- Added SA-1 CC2 support.                                   (Jonas Quinn, byuu)
- Fixed SA-1 NMI override mode.                             (zones)
- Fixed Dual Orb 2 sound glitch.                            (byuu)
- New APU timing hack, fixes various games that exhibit
  problems with Blargg's SNES_SPC library.                  (OV2)
- Fixed the problem that echo buffer breaks IPL ROM.        (zones, OV2)
- Fixed movie snapshot unfreeze inconsistency.              (gocha)
- Faster config file saving.                                (OV2)
- Fixed BlockInvalidVRAMAccess config file option.
  (windows port, unix port and gtk legacy config)           (Jonas Quinn)
- Remove POSIX dup and access calls, and rename qword to
  fix compilation with Cell SDK.                            (BearOso)
- Fixed PS3 version save state crash by using heap
  allocation for soundsnapshot.                             (danieldematteis)
- Fixed crash relating to double-closed descriptor.         (BearOso)
- Removed CPUShutdown speedhack, DisableHDMA and
  DisableIRQ options.                                       (zones)
- Removed remaining outdated asm code.                      (zones)
- JMA 64 bit support.                                       (kode54, Nach, friedrich.goepel)
- GTK+, Win32, Mac: Added optional Hi-Res blending.         (BearOso, OV2, zones)
- GTK+, Win32: Support for bsnes-style XML shaders.         (BearOso, OV2)
- Win32: Full unicode support.                              (OV2)
- Win32: Restored OpenGL mode.                              (OV2)
- Win32: x64 version.                                       (OV2)
- Win32: HLSL shader support.                               (mudlord)
- Win32: Win7 jumplist synchronizes with recent roms list.  (OV2)
- Win32: Updated menu structure.                            (OV2)
- Win32: Drag&Drop support for ROMs.                        (gocha, OV2)
- Win32: Reworked movie-recording with size selection.      (gocha, OV2)
- Win32: Restored SPC save option.                          (OV2)
- Win32: Fixed vsync in DirectDraw.                         (OV2)
- Win32: Improved window position saving.                   (OV2)
- Win32: Restored compile with DEBUGGER.                    (gocha)
- Win32: Fixed various edge-case errors and/or possible
  leaks.                                                    (Brian Friesen)
- Win32: Config file option to always center image.         (OV2)
- Win32: Fixed "Turbo Down mode" hotkey assignment.         (gocha)
- Win32: Added and fixed Autofire for D-pad.                (gocha)
- Win32: Fixed aggressive soundsync wait.                   (OV2)
- Win32: Added window size presets.                         (OV2)
- Mac  : Added pause and frame advance functions.           (zones)
- Mac  : Now you can choose any folder for saving files.    (zones)
- Mac  : Updated Music Box (mostly internally).             (zones)
- Mac  : Fixed gliches in open/save dialogs on 10.6.        (zones)
- Mac  : Fixed display configuration in windowed mode.      (zones)
- Unix : Fixed segfault and hang-up with -DNOSOUND.         (zones)
- GTK+ : Added ability to set specific folders for SRAM,
  patches, snapshots, etc.                                  (BearOso)
- GTK+ : Fixed many permissions issues with config folders. (BearOso)
- GTK+ : Updated compatibility with latest GTK+ and
  GtkBuilder. Added experimental support for GTK+ 3.x.      (BearOso)
- GTK+ : Updated software output to use cairo and added the
  ability to use bilinear-filtering with it.                (BearOso)
- GTK+ : Fixed issues where cheats wouldn't stay enabled.   (BearOso)
- GTK+ : Fixed focus issue when there is no window manager. (BearOso)
- GTK+ : Fixed X Visual incompatibilities and expose
  problems in the Xv and OpenGL outputs.                    (BearOso)
- GTK+ : Fixed vsync with new X Server and NVIDIA drivers.  (BearOso)
- GTK+ : Added "Reduce input lag" option to OpenGL output.  (BearOso)
- GTK+ : Added a visual indication of the expected video
  refresh rate for the currently selected sound input rate. (BearOso)

Snes9x 1.52
- IMPORTANT NOTICE: The structure of savestates (also known
  as snapshots / freeze files) is incompatible with older
  versions! Snes9x 1.52 cannot read the savestates created
  by 1.51 or older.                                         (zones)
- Highly acculate SPC700 and S-DSP emulation.               (Blargg)
- Replaced APU emulation cores (SPC700 and S-DSP) with
  ones provided by Blargg's SNES_SPC library. This renders
  savestates incompatible with older versions.              (BearOso, zones)
- SPC7110 emulation.                                        (byuu, neviksti)
- Merged bsnes' SPC7110 emulation code. Note that the .rtc
  file of Far East of Eden Zero is incompatible with older
  versions.                                                 (zones)
- Removed graphics pack support. It's no more necessary.    (zones)
- Replaced S-RTC emulation code with bsnes' one to keep the
  good compatibility of .rtc files between the two
  emulators. As a result, Daikaijuu Monogatari 2 now
  outputs the .rtc file, and its .srm file is incompatible
  with older versions.                                      (zones)
- Added savestate supports for DSP-2, DSP-4, ST-010 and
  OBC1.                                                     (zones)
- Added UPS support.                                        (byuu)
- Fixed DSP-4 AI problem.                                   (Jonas Quinn)
- Fixed invalid memory accesses in C4 and OBC1 codes.       (zones)
- Fixed invalid memory accesses in BSX codes. My mistake.   (zones)
- Fixed the read value of $213e, $4210 and $4211.           (zones)
- Fixed the writing of word values at the memory boundary.  (zones)
- Fixed the bug that the unnecessary SA-1 emulation
  continues once any SA-1 games are launched.               (zones)
- Removed old color blending codes.                         (zones)
- Removed too-old Snes96 and ZSNES snapshot support.        (zones)
- Updated command-line options.                             (zones)
- Code cleaning.                                            (zones)
- GTK+ : Added a port of Snes9x to the GTK+ toolkit.        (BearOso)
- Unix : Reconstructed and simplified all the contents.
  Some features have been removed to be simple, and many
  options have changed. GTK+ port is recommended for most
  of Linux users.                                           (zones)
- Win32: Now uses snes9x.conf to prevent problems with
  modified meaning of settings.                             (OV2)
- Win32: Removed broken OpenGL mode.                        (OV2)
- Win32: Removed support for 8bit output.                   (OV2)
- Win32: Reworked settings dialogues to accomodate the
  new APU core and display settings.                        (OV2)
- Win32: Updated defaults to use D3D and XA2 (better
  Vista and Win7 support).                                  (OV2)
- Win32: Direct3D and XAudio2 support.                      (OV2)
- Win32: Added Blargg's ntsc filter (three presets).        (OV2)
- Mac  : Fixed corrupted screenshot on Intel Mac.           (zones)
- Mac  : Fixed sudden abort in QuickTime movie export on
  Intel Mac.                                                (zones)
- Mac  : Changed sound settings for the new APU core.       (zones)
- Mac  : Changed the default folder which Snes9x looks for
  to 'Application Support' folder.                          (zones)
- Mac  : Changed folder names: 'IPSs' -> 'Patches',
  'BIOSs' -> 'BIOSes'.                                      (zones)
- Mac  : Added Blargg's ntsc filter.                        (zones)
- Mac  : Internal changes for Leopard and Snow Leopard.     (zones)

Snes9x 1.51
- Added DSP1 and SuperFX savestate support.                 (nitsuja)
- Added screen state GFX to save states. (optional)         (nitsuja)
- Fixed desync when loading inconsistent state in playback. (nitsuja)
- When playback reaches a movie's end, recording continues
  instead of the movie suddenly closing. (after recording)  (nitsuja)
- can now record resets and mouse/superscope/justifier(s)   (nitsuja)
- Added same-line-comment support for config files.         (nitsuja)
- input display for all controllers (including peripherals) (nitsuja)
- Win32: Now uses .cfg file instead of Windows registry.    (nitsuja)
- Win32: open ROM dialog bugfixes and speedup and facelift  (nitsuja)
- Win32: option to use standard file open dialog for ROMs   (nitsuja)
- Win32: maintain aspect ratio and bilinear filter stretch  (nitsuja)
- Win32: optional removal of the dreaded "black bar"        (nitsuja)
- Win32: Added EPX,EPX2,EPX3,HQ2X,HQ3X,TV3X,DM3X filters.   (nitsuja)
- Win32: Added hires support for Interlace and TV Mode.     (nitsuja)
- Win32: text removed from .avi output (optional)           (nitsuja)
- Win32: better directory management, customizeable         (nitsuja)
- Win32: Screenshot support is back.                        (nitsuja)
- Win32: Netplay is back (but still not very good).         (nitsuja)
- Win32: Made OpenGL Bi-linear an advanced .cfg option.     (nitsuja)
- Win32: cheat search improvements (address, watch, SuperFX)(nitsuja)
- Win32: Added non-modal ("active") cheat search option.    (nitsuja)
- Win32: new hotkey-config dialog and configurable hotkeys  (nitsuja)
- Win32: Fixed joystick config in input dialog.             (nitsuja)
- Win32: Fixed hires and extended height .avi output.       (nitsuja)
- Win32: various small GUI improvements                     (nitsuja)
- Win32: Netplay fixes.                                     (nitsuja)
- "Fake Mute" desync workaround option for movies, until
  all ports have deterministic sound.                       (Bisqwit, nitsuja)
- Fix for save state blocks > 999999 bytes.                 (Bisqwit)
- C4 games now save C4 data in save states.                 (DeHackEd)
- Unix: Framework for high-speed seeking. Specify a frame
  number in a movie, and the emulator will run at
  maximum speed to that frame. Untested.                    (DeHackEd)
- X11: Support for window exposure. When a window is
  damaged due to overlay, being iconified, etc. it will
  be repainted correctly.                                   (DeHackEd)
- Unix: parameter: -autodemo <filename> loads a movie for
  playback on startup. Only the x11 code handles this
  right now.                                                (DeHackEd)
- Unix: parameter: -oldturbo,  the turbo button renders all
  frames when fast-forwarding.                              (DeHackEd)
- Unix: parameter: -upanddown, override U+D and
  L+R protection.                                           (DeHackEd)
- Unix: parameter: -mute, currently linux only, blocks out
  audio output from your speakers while still emulating
  sound. Not fully tested.                                  (DeHackEd)
- Unix: parameter: -maxframes <target> during movie
  playback, snes9x will exit when the target is hit.        (DeHackEd)
- Unix: parameter: -keypress shows to stderr and on-screen
  the currently pressed buttons on joypad 1.                (DeHackEd)
- Unix: Stream dumping (NOT COMPLETE). With -dumpstreams,
  raw video and raw audio are dumped to videostream%d.dat
  and audiostream%d.dat, where %d increments on each CPU
  reset, starting at zero.                                  (DeHackEd)
- Unix: Non-blocking sound on Linux. It makes seeking nicer.(DeHackEd)
- Unix: Configurable sound device.                          (pierredavidbelanger)
- configure.in now requires a sufficiently new version of
  autoconf.                                                 (anomie)
- Fixed slow versions of branch opcodes.                    (anomie)
- Fixed the mosaic offset bug.                              (anomie)
- No sorting by priority in C4 command 00 00. MegaMan X2
  can go behind the legs of the intro stage boss.           (anomie)
- New RTO discovery, fixes Super Conflict: The Mideast
  title screen.                                             (anomie, byuu)
- A 1->0 transition on $2100.7 causes OAM Address Reset.    (anomie, byuu)
- The final HDMA Indirect Address load is only weird
  on the last channel of the scanline.
  Touge Densetsu Saisoku Battle problem solved.             (anomie, byuu)
- Fixed BGnVOFS bug. Only HOFS needs ~&7 update.            (byuu)
- Fixed superfluous VIRQ triggers.                          (zones)
- Fixed missing IRQ trigger just after the previous one.    (zones)
- Fixed missing IRQ while writing to $4200.                 (zones)
- Fixed IRQ timing after WRAM refresh.                      (zones)
- Fixed NMA timing after DMA transfer.                      (zones)
- Fixed superfluous auto-joypad-reading.                    (zones)
- Fixed missing WRAM refresh during DMA transfer.           (zones)
- Fixed DMA so that HDMA and any HC triggered events can
  run during DMA transfer.                                  (zones)
- Roughly fixed the case that HDMA and DMA use the same
  channel at the same time. HDMA kills DMA. Thanks byuu.    (zones)
- Changed initial DMA registers values.                     (zones)
- Slightly modified APU execute timings.                    (zones)
- Fixed APU I/O registers to get/set the proper value.      (zones)
- Blocked invalid VRAM writings, though you can turn off
  this option due to Snes9x's inaccurate timings.           (zones)
- Omitted SPCTOOL, no one uses it.                          (zones)
- Added Sufami Turbo support.                               (zones)
- Added Same Game add-on cart support.                      (zones)
- Fixed HiROM SRAM and DSP1-4 memory maps a little.         (zones)
- Improved mirroring.                                       (Nach, grinvader, byuu)
- CRC32 on BS dumps now follows uCONSRT standard.           (Nach)
- BS dumps now always run in NTSC mode.                     (Nach)
- Unknown regions (generally betas) default to NTSC.        (Nach)
- Now support NSRT headers for setting up controllers.      (Nach, nitsuja)
- Unix: Fixed command line help output.                     (Nach)
- Unix: Sound now defaults to 32KHz, Stereo, Interpolation
  so Snes9x finally sounds like a real SNES by default.     (Nach)
- Win32: Saner defaults for movie record.                   (Nach)
- Unix: Fixed crashing with mouse or super scope.           (Nach)
- Removed some weird code which was crashing Korean
  League and its varients.                                  (Nach)
- Win32: Can now compile with MinGW.                        (Jonas Quinn, Nach)
- Win32: Can now cross compile Snes9xw.                     (Nach)
- Unix: SSnes9x compiles again.                             (Nach)
- Win32: ZSNES C4 and SuperFX compiles once again.          (Jonas Quinn)
- Unix: Netplay Fixes.                                      (Nach)
- Unix: Netplay Improvements.                               (Fabianx)

Snes9x 1.5
- Pseudo-hires rendering flush, Old 2xsai endian fix        (anomie)
- Added 'oops' auto-snapshot support                        (anomie)
- Fixed usage messages (Unix)                               (anomie)
- Old split-ROM-in-zip bugfix                               (anomie)
- ./configure fix for detecting libpng                      (anomie)
- Fix "no PNG support" error message                        (anomie)
- Anomie's control remapping patch                          (anomie)
- Support for IPS patches in the zip file                   (anomie)
- OBC1 savestate fix                                        (Overload)
- Fix turbo frameskip, X11 keyboard auto-repeat, VRAM reads (anomie)
- Add some missing ifdefs (UNZIP_SUPPORT and ZLIB),
  from AaronOneal                                           (anomie)
- Config file for Unix/X11 and Unix/SVGA                    (anomie)
- CPU instruction fixes (mostly emulation mode & timing)    (anomie)
- Mode 7 fixes                                              (anomie)
- Rewrote the renderer. Enjoy!                              (anomie)
- Correct-ish memmap boundary testing.                      (anomie)
- Add support for saner directory structures under Unix     (anomie)
- Unix: Fixed detection of newer libpng (spotted by vapier) (PBortas)
- Added 4-point gaussian interpolation and proper envelopes
  many thanks to Brad Martin and TRAC.                      (zones)
- Fixed several sound problems.                             (zones)
- Fixed the memory access problem in C++ Super FX core.     (zones)
- Speed adjustment of C++ Super FX emulation.               (zones)
- Various timing fixes: NMI, IRQ, WRAM refresh,
  cycles per line, HBlank start, etc.
  Many thanks to byuu for much information.                 (zones)
- Removed some game specific hacks.                         (zones)
- Added partial Satellaview (BS) emulation.                 (Dreamer Nom, zones)
- Added the Katakana font for onscreen messages.            (107)
- Updated JMA to v1                                         (Nach)
- Unix: Fixed JMA options in config                         (Nach)
- Unix: Removed --with(out)-asmcpu option in config
  because the i386 assembler CPU core is out of date.       (zones)
- Unix: Changed the default settings in config.             (zones)
- Updated porting.html (porting.txt) in sync with 1.5.      (zones)
- Fixed buffer over/under flow due to incorrect logical
  operator in S-RTC code                                    (byuu)
- Fixed HDMA flags bug.                                     (byuu, anomie)
- Fixed bugs causing crashing in Unix.                      (Nach)
- Ported Snes9x to AMD64.                                   (John Weidman, Nach, zones)
- Completed DSP-1 code.                                     (Andreas Naive, Overload, Nach)
- Updated DSP-3 code.                                       (Nach, z80 gaiden)
- Updated DSP-4 code.                                       (Dreamer Nom, Nach, z80 gaiden)
- Overhauled BS detection.                                  (Nach)
- Improved Unix portability.                                (Nach, zones)
- Fixed infiniti loop and invalid read bug in
  C++ C4 core.                                              (Nach)


(nia)
diff -r1.3 -r1.4 pkgsrc/emulators/libretro-snes9x/Makefile
diff -r1.2 -r1.3 pkgsrc/emulators/libretro-snes9x/distinfo
diff -r1.57 -r1.58 pkgsrc/emulators/snes9x/Makefile
diff -r0 -r1.1 pkgsrc/emulators/snes9x/Makefile.common
diff -r1.4 -r1.5 pkgsrc/emulators/snes9x/PLIST
diff -r1.19 -r1.20 pkgsrc/emulators/snes9x/distinfo
diff -r1.61 -r1.62 pkgsrc/emulators/snes9x-gtk/Makefile
diff -r1.4 -r1.5 pkgsrc/emulators/snes9x-gtk/PLIST
diff -r1.9 -r1.10 pkgsrc/emulators/snes9x-gtk/distinfo
diff -r1.1 -r1.2 pkgsrc/emulators/snes9x-gtk/options.mk
diff -r1.2 -r0 pkgsrc/emulators/snes9x-gtk/patches/patch-aa
diff -r1.1 -r0 pkgsrc/emulators/snes9x-gtk/patches/patch-configure
diff -r1.1 -r0 pkgsrc/emulators/snes9x-gtk/patches/patch-src_gtk__s9x.cpp
diff -r0 -r1.1 pkgsrc/emulators/snes9x-gtk/patches/patch-gtk_configure.ac
diff -r1.13 -r0 pkgsrc/emulators/snes9x/patches/patch-aa
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-ab
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-ad
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-ae
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-ah
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-ai
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-aj
diff -r1.3 -r0 pkgsrc/emulators/snes9x/patches/patch-aq
diff -r1.4 -r0 pkgsrc/emulators/snes9x/patches/patch-ac
diff -r1.4 -r0 pkgsrc/emulators/snes9x/patches/patch-af
diff -r1.11 -r0 pkgsrc/emulators/snes9x/patches/patch-ag
diff -r1.2 -r0 pkgsrc/emulators/snes9x/patches/patch-ak
diff -r1.2 -r0 pkgsrc/emulators/snes9x/patches/patch-al
diff -r1.2 -r0 pkgsrc/emulators/snes9x/patches/patch-am
diff -r1.2 -r0 pkgsrc/emulators/snes9x/patches/patch-an
diff -r1.2 -r0 pkgsrc/emulators/snes9x/patches/patch-ao
diff -r1.1 -r0 pkgsrc/emulators/snes9x/patches/patch-ap
diff -r1.1 -r0 pkgsrc/emulators/snes9x/patches/patch-ar
diff -r1.1 -r0 pkgsrc/emulators/snes9x/patches/patch-as
diff -r1.1 -r0 pkgsrc/emulators/snes9x/patches/patch-ba
diff -r1.1 -r0 pkgsrc/emulators/snes9x/patches/patch-bc
diff -r0 -r1.1 pkgsrc/emulators/snes9x/patches/patch-unix_configure

cvs diff -r1.3 -r1.4 pkgsrc/emulators/libretro-snes9x/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/libretro-snes9x/Makefile 2018/12/18 00:56:54 1.3
+++ pkgsrc/emulators/libretro-snes9x/Makefile 2019/01/01 22:16:15 1.4
@@ -1,30 +1,24 @@ @@ -1,30 +1,24 @@
1# $NetBSD: Makefile,v 1.3 2018/12/18 00:56:54 nia Exp $ 1# $NetBSD: Makefile,v 1.4 2019/01/01 22:16:15 nia Exp $
2 2
3DISTNAME= libretro-snes9x-1.58 3.include "../../emulators/snes9x/Makefile.common"
4CATEGORIES= emulators 4
5MASTER_SITES= ${MASTER_SITE_GITHUB:=snes9xgit/} 5PKGNAME= libretro-snes9x-${SNES9X_VERSION}
6GITHUB_PROJECT= snes9x 
7 6
8MAINTAINER= nia@NetBSD.org 7MAINTAINER= nia@NetBSD.org
9HOMEPAGE= https://docs.libretro.com/library/snes9x/ 8HOMEPAGE= https://docs.libretro.com/library/snes9x/
10COMMENT= Libretro core based on the snes9x Super Nintendo emulator 9COMMENT= Libretro core based on the snes9x Super Nintendo emulator
11LICENSE= snes9x-license 
12 
13EXTRACT_USING= bsdtar 
14 10
15WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG} 
16BUILD_DIRS= libretro 11BUILD_DIRS= libretro
17 12
18USE_TOOLS+= gmake 13USE_TOOLS+= gmake
19USE_LANGUAGES= c c++11 
20 14
21MAKE_FLAGS+= GIT_VERSION="-pkgsrc" 15MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
22MAKE_FLAGS+= LTO= 16MAKE_FLAGS+= LTO=
23 17
24INSTALLATION_DIRS+= ${PREFIX}/lib/libretro 18INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
25 19
26do-install: 20do-install:
27 ${INSTALL_LIB} ${WRKSRC}/libretro/snes9x_libretro.so \ 21 ${INSTALL_LIB} ${WRKSRC}/libretro/snes9x_libretro.so \
28 ${DESTDIR}${PREFIX}/lib/libretro/snes9x_libretro.so 22 ${DESTDIR}${PREFIX}/lib/libretro/snes9x_libretro.so
29 23
30.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/emulators/libretro-snes9x/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/libretro-snes9x/distinfo 2018/12/18 00:56:54 1.2
+++ pkgsrc/emulators/libretro-snes9x/distinfo 2019/01/01 22:16:15 1.3
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.2 2018/12/18 00:56:54 nia Exp $ 1$NetBSD: distinfo,v 1.3 2019/01/01 22:16:15 nia Exp $
2 2
3SHA1 (libretro-snes9x-1.58.tar.gz) = c94ceb8d7b322b4bfa030b1327d815b697e4176a 3SHA1 (snes9x-1.58.tar.gz) = c94ceb8d7b322b4bfa030b1327d815b697e4176a
4RMD160 (libretro-snes9x-1.58.tar.gz) = 51f7fe17f003998b35204046ca7d193d37980da1 4RMD160 (snes9x-1.58.tar.gz) = 51f7fe17f003998b35204046ca7d193d37980da1
5SHA512 (libretro-snes9x-1.58.tar.gz) = 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d 5SHA512 (snes9x-1.58.tar.gz) = 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d
6Size (libretro-snes9x-1.58.tar.gz) = 2830667 bytes 6Size (snes9x-1.58.tar.gz) = 2830667 bytes

cvs diff -r1.57 -r1.58 pkgsrc/emulators/snes9x/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x/Makefile 2018/08/15 07:21:07 1.57
+++ pkgsrc/emulators/snes9x/Makefile 2019/01/01 22:16:14 1.58
@@ -1,102 +1,57 @@ @@ -1,102 +1,57 @@
1# $NetBSD: Makefile,v 1.57 2018/08/15 07:21:07 nia Exp $ 1# $NetBSD: Makefile,v 1.58 2019/01/01 22:16:14 nia Exp $
2 2
3SNESVER= 1.43 3.include "../../emulators/snes9x/Makefile.common"
4DISTNAME= snes9x-${SNESVER}-src 
5PKGNAME= snes9x-${SNESVER} 
6PKGREVISION= 1 
7CATEGORIES= emulators 
8MASTER_SITES= http://www.lysator.liu.se/snes9x/${SNESVER}/ 
9MASTER_SITES+= http://files.ipherswipsite.com/snes9x/ 
10 
11MAINTAINER= pkgsrc-users@NetBSD.org 
12HOMEPAGE= http://www.snes9x.com/ 
13COMMENT= Super Nintendo Entertainment System (SNES) emulator 
14LICENSE= snes9x-license 
15 4
16BROKEN_ON_PLATFORM= ${LP64PLATFORMS} 5MAINTAINER= nia@NetBSD.org
17MAKE_JOBS_SAFE= no 6COMMENT= Super Nintendo Entertainment System (SNES) emulator (CLI version)
18 7
19WRKSRC= ${WRKDIR}/${DISTNAME}/snes9x 8CONFIGURE_DIRS= unix
20USE_LANGUAGES= c c++ 9BUILD_DIRS= unix
21USE_TOOLS+= gmake 10USE_TOOLS+= gmake
22PTHREAD_OPTS+= require 11GNU_CONFIGURE= yes
23INSTALLATION_DIRS= bin 
24GNU_CONFIGURE= YES 
25 
26CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include 
27 
28SUBST_CLASSES+= nodos 
29SUBST_STAGE.nodos= pre-patch 
30SUBST_FILES.nodos= ../language.h 
31SUBST_FILES.nodos+= ../readme.txt dsp1.h dsp3emu.cpp dsp4emu.cpp 
32SUBST_FILTER_CMD.nodos= env -i ${TR} -d '\r' 
33 
34SUBST_CLASSES+= paircpp 
35SUBST_STAGE.paircpp= pre-patch 
36SUBST_FILES.paircpp= 65c816.h sa1.h 
37SUBST_SED.paircpp= -e 's|pair|snes9x_pair|g' 
38 12
39do-install: 13CONFIGURE_ARGS+= --enable-netplay
40 ${INSTALL_PROGRAM} ${WRKSRC}/snes9x ${DESTDIR}${PREFIX}/bin 
41 ${INSTALL_PROGRAM} ${WRKSRC}/offsets ${DESTDIR}${PREFIX}/bin 
42 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/snes9x 
43 ${INSTALL_MAN} ${WRKSRC}/doc/porting.txt \ 
44 ${DESTDIR}${PREFIX}/share/doc/snes9x 
45 ${INSTALL_MAN} ${WRKSRC}/changes.txt \ 
46 ${DESTDIR}${PREFIX}/share/doc/snes9x 
47 ${INSTALL_MAN} ${WRKSRC}/hardware.txt \ 
48 ${DESTDIR}${PREFIX}/share/doc/snes9x 
49 ${INSTALL_MAN} ${WRKSRC}/problems.txt \ 
50 ${DESTDIR}${PREFIX}/share/doc/snes9x 
51 ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/readme.txt \ 
52 ${DESTDIR}${PREFIX}/share/doc/snes9x 
53 ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/readme.unix \ 
54 ${DESTDIR}${PREFIX}/share/doc/snes9x 
55 
56.include "../../mk/bsd.prefs.mk" 
57 
58PKG_OPTIONS_VAR= PKG_OPTIONS.snes9x 
59PKG_SUPPORTED_OPTIONS= # empty 
60.if ${MACHINE_ARCH} == "i386" 
61BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm 
62PKG_SUPPORTED_OPTIONS+= mmx 
63.endif 
64 14
65.include "../../mk/bsd.options.mk" 15.include "../../mk/oss.buildlink3.mk"
66 
67.if ${MACHINE_ARCH} == "i386" 
68CONFIGURE_ARGS+= --with-assembler 
69. if !empty(PKG_OPTIONS:Mmmx) 
70CONFIGURE_ARGS+= --with-mmx 
71. endif 
72. if ${OBJECT_FMT} == "a.out" 
73MAKE_ENV+= FILEFORMAT=aoutb 
74MAKE_ENV+= _ASM_UNDERBARS=1 
75. else 
76MAKE_ENV+= FILEFORMAT=elf 
77. endif 
78.endif 
79 16
80.if exists(${X11BASE}/lib/libXxf86dga.a) || ${X11_TYPE} != "native" 17.if ${OSS_TYPE} != "none"
81CONFIGURE_ARGS+= --with-extensions 18SUBST_CLASSES+= oss
 19SUBST_STAGE.oss= pre-configure
 20SUBST_MESSAGE.oss= Correct path to OSS device.
 21SUBST_FILES.oss+= unix/unix.cpp
 22SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
 23
 24CONFIGURE_ARGS+= --enable-sound
 25.else
 26PKG_SKIP_REASON+= "No sound support on this platform"
82.endif 27.endif
83 28
84.if exists(/usr/include/usb.h) || exists(/usr/include/usbhid.h) 29INSTALLATION_DIRS+= bin
85MAKE_ENV+= USBJOY=1 30INSTALLATION_DIRS+= share/doc/snes9x
86. if exists(/usr/include/usbhid.h) 
87MAKE_ENV+= USBHID_H=1 
88. endif 
89.endif 
90 31
91BUILDLINK_DEPMETHOD.libXt?= build 32do-install:
 33 ${INSTALL_PROGRAM} ${WRKSRC}/unix/snes9x \
 34 ${DESTDIR}${PREFIX}/bin
 35 ${INSTALL_MAN} ${WRKSRC}/docs/changes.txt \
 36 ${DESTDIR}${PREFIX}/share/doc/snes9x
 37 ${INSTALL_MAN} ${WRKSRC}/docs/control-inputs.txt \
 38 ${DESTDIR}${PREFIX}/share/doc/snes9x
 39 ${INSTALL_MAN} ${WRKSRC}/docs/controls.txt \
 40 ${DESTDIR}${PREFIX}/share/doc/snes9x
 41 ${INSTALL_MAN} ${WRKSRC}/docs/porting.html \
 42 ${DESTDIR}${PREFIX}/share/doc/snes9x
 43 ${INSTALL_MAN} ${WRKSRC}/docs/snapshots.txt \
 44 ${DESTDIR}${PREFIX}/share/doc/snes9x
 45 ${INSTALL_MAN} ${WRKSRC}/unix/docs/readme_unix.html \
 46 ${DESTDIR}${PREFIX}/share/doc/snes9x
92 47
93.include "../../mk/libusb.buildlink3.mk" 48.include "../../mk/libusb.buildlink3.mk"
94.include "../../devel/zlib/buildlink3.mk" 49.include "../../devel/zlib/buildlink3.mk"
 50.include "../../graphics/png/buildlink3.mk"
 51.include "../../x11/libSM/buildlink3.mk"
95.include "../../x11/libX11/buildlink3.mk" 52.include "../../x11/libX11/buildlink3.mk"
96.include "../../x11/libXext/buildlink3.mk" 53.include "../../x11/libXext/buildlink3.mk"
97.include "../../x11/libXxf86dga/buildlink3.mk" 54.include "../../x11/libXv/buildlink3.mk"
98.include "../../x11/libXxf86vm/buildlink3.mk" 55.include "../../x11/libXinerama/buildlink3.mk"
99.include "../../x11/libXt/buildlink3.mk" 
100.include "../../mk/oss.buildlink3.mk" 
101.include "../../mk/pthread.buildlink3.mk" 56.include "../../mk/pthread.buildlink3.mk"
102.include "../../mk/bsd.pkg.mk" 57.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/emulators/snes9x/Makefile.common
# $NetBSD: Makefile.common,v 1.1 2019/01/01 22:16:14 nia Exp $

# used by emulators/libretro-snes9x/Makefile
# used by emulators/snes9x/Makefile
# used by emulators/snes9x-gtk/Makefile

SNES9X_VERSION=		1.58
DISTNAME=		snes9x-${SNES9X_VERSION}
CATEGORIES=		emulators
MASTER_SITES=		${MASTER_SITE_GITHUB:=snes9xgit/}

HOMEPAGE=		http://www.snes9x.com/
LICENSE=		snes9x-license

EXTRACT_USING=		bsdtar
USE_LANGUAGES=		c c++11

cvs diff -r1.4 -r1.5 pkgsrc/emulators/snes9x/PLIST (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x/PLIST 2018/01/01 22:29:27 1.4
+++ pkgsrc/emulators/snes9x/PLIST 2019/01/01 22:16:14 1.5
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1@comment $NetBSD: PLIST,v 1.4 2018/01/01 22:29:27 rillig Exp $ 1@comment $NetBSD: PLIST,v 1.5 2019/01/01 22:16:14 nia Exp $
2bin/offsets 
3bin/snes9x 2bin/snes9x
4share/doc/snes9x/changes.txt 3share/doc/snes9x/changes.txt
5share/doc/snes9x/hardware.txt 4share/doc/snes9x/control-inputs.txt
6share/doc/snes9x/porting.txt 5share/doc/snes9x/controls.txt
7share/doc/snes9x/problems.txt 6share/doc/snes9x/porting.html
8share/doc/snes9x/readme.txt 7share/doc/snes9x/readme_unix.html
9share/doc/snes9x/readme.unix 8share/doc/snes9x/snapshots.txt

cvs diff -r1.19 -r1.20 pkgsrc/emulators/snes9x/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x/distinfo 2015/11/03 20:31:02 1.19
+++ pkgsrc/emulators/snes9x/distinfo 2019/01/01 22:16:14 1.20
@@ -1,27 +1,7 @@ @@ -1,27 +1,7 @@
1$NetBSD: distinfo,v 1.19 2015/11/03 20:31:02 agc Exp $ 1$NetBSD: distinfo,v 1.20 2019/01/01 22:16:14 nia Exp $
2 2
3SHA1 (snes9x-1.43-src.tar.gz) = c6883c451aeb442030862ec19a8dca25ee02d82c 3SHA1 (snes9x-1.58.tar.gz) = c94ceb8d7b322b4bfa030b1327d815b697e4176a
4RMD160 (snes9x-1.43-src.tar.gz) = d2003f7afb208109405b41f4eec586b93518f9b2 4RMD160 (snes9x-1.58.tar.gz) = 51f7fe17f003998b35204046ca7d193d37980da1
5SHA512 (snes9x-1.43-src.tar.gz) = 99b985d20f5af608be4136c43ac3863667a8dda5b10b897aff7004e0165b047d9590791be3f31e94dd4744f31cae9163ca5ea948126a8eb828bc75743bcdd1f4 5SHA512 (snes9x-1.58.tar.gz) = 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d
6Size (snes9x-1.43-src.tar.gz) = 1016251 bytes 6Size (snes9x-1.58.tar.gz) = 2830667 bytes
7SHA1 (patch-aa) = 3eee1abe554f9ef4e81b22a4c75a04c8c109acd3 7SHA1 (patch-unix_configure) = 9df9a805141396583bceb35bea1bda157ed3ed6b
8SHA1 (patch-ab) = 7dfd2d7a92caceed82549fed3f175746871b3985 
9SHA1 (patch-ac) = c1e35daa7e53536d05c1633b78c00d511ae7feb5 
10SHA1 (patch-ad) = c5febcdd6b5bf0f3b4b5d8b0bc19c4716434a23e 
11SHA1 (patch-ae) = c4258835925ee3a6e3606ad895ff697f379cb22f 
12SHA1 (patch-af) = 19d86d23e3af2c0cef09b8eeff1303d6f100c2f8 
13SHA1 (patch-ag) = 5b2b01add1149f50528ba3ced0c89aa9c35ee3a8 
14SHA1 (patch-ah) = eb5ff0fed972644f9c8599ec5eb6a3cd3ce160cb 
15SHA1 (patch-ai) = 06bd00790d1a84ee31114de4205bba22b48cd547 
16SHA1 (patch-aj) = f5cdf8e917f787d7e9fc657ed7197a2c28460375 
17SHA1 (patch-ak) = a15a54d7b0585ce84bf9d04f200c2d1f3e1c615c 
18SHA1 (patch-al) = 71043b1ec2ee66399ef7a10f6258f15b12dab980 
19SHA1 (patch-am) = 31d0ccf2e6124126929d9064ef2212d2a8bb963e 
20SHA1 (patch-an) = 3ae10526aa66ef235c223e891c67b4aed6fc48df 
21SHA1 (patch-ao) = b5b721563aee09909b7d6143bd699ec86ccaed3b 
22SHA1 (patch-ap) = 1c1b7f1b45d75688870a94dadadb6da055e99cd0 
23SHA1 (patch-aq) = f4d859bc0f569142e2a50bca1c895d133ed26920 
24SHA1 (patch-ar) = 72a158e69b885b9ecf47245b9b83f8b50d48f96d 
25SHA1 (patch-as) = 64a9fb042f40a4a699bd4128d538fae1cb9cb810 
26SHA1 (patch-ba) = 73dccd2fdab90760644af5bf7885c8d87d253a47 
27SHA1 (patch-bc) = d43cdb435692b925347c192acb7c4ff5d8c1454d 

cvs diff -r1.61 -r1.62 pkgsrc/emulators/snes9x-gtk/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x-gtk/Makefile 2018/11/14 22:21:26 1.61
+++ pkgsrc/emulators/snes9x-gtk/Makefile 2019/01/01 22:16:14 1.62
@@ -1,38 +1,45 @@ @@ -1,38 +1,45 @@
1# $NetBSD: Makefile,v 1.61 2018/11/14 22:21:26 kleink Exp $ 1# $NetBSD: Makefile,v 1.62 2019/01/01 22:16:14 nia Exp $
2 2
3DISTNAME= snes9x-1.53-src 3.include "../../emulators/snes9x/Makefile.common"
4PKGNAME= snes9x-gtk-1.53.81 
5PKGREVISION= 40 
6CATEGORIES= emulators 
7MASTER_SITES= http://snes9x-gtk.googlecode.com/files/ 
8EXTRACT_SUFX= .tar.bz2 
9 
10MAINTAINER= pkgsrc-users@NetBSD.org 
11HOMEPAGE= http://www.snes9x.com/phpbb3/viewtopic.php?p=22874 
12COMMENT= SNES emulator with GTK frontend 
13LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 
14 
15WRKSRC= ${WRKDIR}/${DISTNAME}/gtk 
16GNU_CONFIGURE= yes 
17USE_LANGUAGES= c c++03 
18USE_TOOLS+= intltool msgfmt msgmerge perl pkg-config xgettext 
19 4
20LDFLAGS.SunOS+= -lsocket -lnsl 5PKGNAME= snes9x-gtk-${SNES9X_VERSION}
21 6
22.include "options.mk" 7MAINTAINER= nia@NetBSD.org
 8COMMENT= Super Nintendo Entertainment System (SNES) emulator (GUI version)
 9
 10CONFIGURE_DIRS+= gtk
 11BUILD_DIRS+= gtk
 12GNU_CONFIGURE= yes
 13
 14USE_TOOLS+= autoreconf autoconf automake pkg-config
 15USE_TOOLS+= msgfmt xgettext msgmerge
 16USE_TOOLS+= gawk
 17
 18BUILD_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4
23 19
24.if ${MACHINE_ARCH} == "i386" 20.include "../../mk/oss.buildlink3.mk"
25BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm 21
 22.if ${OSS_TYPE} != "none"
 23SUBST_CLASSES+= oss
 24SUBST_STAGE.oss= pre-configure
 25SUBST_MESSAGE.oss= Correct path to OSS device.
 26SUBST_FILES.oss+= gtk/src/gtk_sound_driver_oss.cpp
 27SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
26.endif 28.endif
27 29
28.include "../../audio/portaudio-devel/buildlink3.mk" 30BUILDLINK_TRANSFORM+= rm:-ldl
29.include "../../devel/SDL/buildlink3.mk" 31
30.include "../../devel/libglade/buildlink3.mk" 32pre-configure:
31.include "../../graphics/gtkglext/buildlink3.mk" 33 cd ${WRKSRC}/gtk && ./autogen.sh
 34
 35.include "options.mk"
 36.include "../../converters/libiconv/buildlink3.mk"
 37.include "../../devel/SDL2/buildlink3.mk"
 38.include "../../devel/gettext-lib/buildlink3.mk"
 39.include "../../devel/zlib/buildlink3.mk"
32.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 40.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
33.include "../../sysutils/desktop-file-utils/desktopdb.mk" 41.include "../../graphics/png/buildlink3.mk"
34BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.10.0 42.include "../../x11/libXrandr/buildlink3.mk"
35.include "../../x11/gtk2/buildlink3.mk" 43.include "../../x11/libXv/buildlink3.mk"
36.include "../../x11/libXtst/buildlink3.mk" 
37.include "../../mk/dlopen.buildlink3.mk" 44.include "../../mk/dlopen.buildlink3.mk"
38.include "../../mk/bsd.pkg.mk" 45.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/emulators/snes9x-gtk/PLIST (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x-gtk/PLIST 2010/02/05 12:57:27 1.4
+++ pkgsrc/emulators/snes9x-gtk/PLIST 2019/01/01 22:16:14 1.5
@@ -1,7 +1,16 @@ @@ -1,7 +1,16 @@
1@comment $NetBSD: PLIST,v 1.4 2010/02/05 12:57:27 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.5 2019/01/01 22:16:14 nia Exp $
2bin/snes9x-gtk 2bin/snes9x-gtk
3share/applications/snes9x.desktop 3share/applications/snes9x.desktop
 4share/icons/hicolor/128x128/apps/snes9x.png
4share/icons/hicolor/16x16/apps/snes9x.png 5share/icons/hicolor/16x16/apps/snes9x.png
5share/icons/hicolor/24x24/apps/snes9x.png 6share/icons/hicolor/24x24/apps/snes9x.png
 7share/icons/hicolor/256x256/apps/snes9x.png
6share/icons/hicolor/32x32/apps/snes9x.png 8share/icons/hicolor/32x32/apps/snes9x.png
7share/icons/hicolor/scalable/apps/snes9x.svg 9share/icons/hicolor/64x64/apps/snes9x.png
 10share/locale/es/LC_MESSAGES/snes9x-gtk.mo
 11share/locale/fr_FR/LC_MESSAGES/snes9x-gtk.mo
 12share/locale/ja/LC_MESSAGES/snes9x-gtk.mo
 13share/locale/pt_BR/LC_MESSAGES/snes9x-gtk.mo
 14share/locale/ru/LC_MESSAGES/snes9x-gtk.mo
 15share/locale/sr@latin/LC_MESSAGES/snes9x-gtk.mo
 16share/snes9x/cheats.bml

cvs diff -r1.9 -r1.10 pkgsrc/emulators/snes9x-gtk/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x-gtk/distinfo 2015/11/03 20:31:02 1.9
+++ pkgsrc/emulators/snes9x-gtk/distinfo 2019/01/01 22:16:14 1.10
@@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
1$NetBSD: distinfo,v 1.9 2015/11/03 20:31:02 agc Exp $ 1$NetBSD: distinfo,v 1.10 2019/01/01 22:16:14 nia Exp $
2 2
3SHA1 (snes9x-1.53-src.tar.bz2) = 57be6480369f66b9aaaeb722789ce114f58ed1e2 3SHA1 (snes9x-1.58.tar.gz) = c94ceb8d7b322b4bfa030b1327d815b697e4176a
4RMD160 (snes9x-1.53-src.tar.bz2) = b3f7ba73caee5373951ec1e1decef1ab6c7207f2 4RMD160 (snes9x-1.58.tar.gz) = 51f7fe17f003998b35204046ca7d193d37980da1
5SHA512 (snes9x-1.53-src.tar.bz2) = 3ded506d1b3b6cff4e8e3de77ad557d97981eb97ea23ffc68ce5abbbd4677aca819776f1d11b9aa47f5b1a785b19455acf6ad4dbc536d3581d62c192ebdfbd8c 5SHA512 (snes9x-1.58.tar.gz) = 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d
6Size (snes9x-1.53-src.tar.bz2) = 1838746 bytes 6Size (snes9x-1.58.tar.gz) = 2830667 bytes
7SHA1 (patch-aa) = bb32e36bd1d0c82dc4c68c3fb280f7474d1cf493 7SHA1 (patch-gtk_configure.ac) = fa992d626d0cfc8b567d648f802c3d0944310cc5
8SHA1 (patch-configure) = 3c6491a83a124be05bb0ded5af70e4d92053316d 
9SHA1 (patch-src_gtk__s9x.cpp) = b440b1884a1d81a1e5cc557f2c5bcf56237b8222 

cvs diff -r1.1 -r1.2 pkgsrc/emulators/snes9x-gtk/options.mk (expand / switch to unified diff)

--- pkgsrc/emulators/snes9x-gtk/options.mk 2013/07/06 16:19:41 1.1
+++ pkgsrc/emulators/snes9x-gtk/options.mk 2019/01/01 22:16:14 1.2
@@ -1,49 +1,42 @@ @@ -1,49 +1,42 @@
1# $NetBSD: options.mk,v 1.1 2013/07/06 16:19:41 rodent Exp $ 1# $NetBSD: options.mk,v 1.2 2019/01/01 22:16:14 nia Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.snes9x-gtk 3PKG_OPTIONS_VAR= PKG_OPTIONS.snes9x-gtk
4PKG_SUPPORTED_OPTIONS= alsa opengl png pulseaudio xrandr xvideo zlib 4PKG_SUPPORTED_OPTIONS= alsa opengl pulseaudio
5PKG_SUGGESTED_OPTIONS+= png xrandr xvideo zlib 5PKG_OPTIONS_REQUIRED_GROUPS= gtk
 6PKG_OPTIONS_GROUP.gtk= gtk2 gtk3
 7PKG_SUGGESTED_OPTIONS+= gtk3 opengl
 8PKG_SUGGESTED_OPTIONS.Linux+= alsa
6 9
7.include "../../mk/bsd.options.mk" 10.include "../../mk/bsd.options.mk"
8 11
9.if !empty(PKG_OPTIONS:Malsa) 12.if !empty(PKG_OPTIONS:Malsa)
10.include "../../audio/alsa-lib/buildlink3.mk" 13.include "../../audio/alsa-lib/buildlink3.mk"
11.else 14.else
12CONFIGURE_ARGS+= --without-alsa 15CONFIGURE_ARGS+= --without-alsa
13.endif 16.endif
14 17
15.if !empty(PKG_OPTIONS:Mopengl) 18.if !empty(PKG_OPTIONS:Mgtk2)
16.include "../../graphics/MesaLib/buildlink3.mk" 19.include "../../x11/gtk2/buildlink3.mk"
17.else 20CONFIGURE_ARGS+= --with-gtk2
18CONFIGURE_ARGS+= --without-opengl 
19.endif 
20 
21.if !empty(PKG_OPTIONS:Mpng) 
22.include "../../graphics/png/buildlink3.mk" 
23.else 
24CONFIGURE_ARGS+= --without-screenshot 
25.endif 
26 
27.if !empty(PKG_OPTIONS:Mpulseaudio) 
28.include "../../audio/pulseaudio/buildlink3.mk" 
29.else 21.else
30CONFIGURE_ARGS+= --without-pulseaudio 22CONFIGURE_ARGS+= --without-gtk2
31.endif 23.endif
32 24
33.if !empty(PKG_OPTIONS:Mxrandr) 25.if !empty(PKG_OPTIONS:Mgtk3)
34.include "../../x11/libXrandr/buildlink3.mk" 26.include "../../x11/gtk3/buildlink3.mk"
 27CONFIGURE_ARGS+= --with-gtk3
35.else 28.else
36CONFIGURE_ARGS+= --without-xrandr 29CONFIGURE_ARGS+= --without-gtk3
37.endif 30.endif
38 31
39.if !empty(PKG_OPTIONS:Mxvideo) 32.if !empty(PKG_OPTIONS:Mopengl)
40.include "../../x11/libXv/buildlink3.mk" 33.include "../../graphics/MesaLib/buildlink3.mk"
41.else 34.else
42CONFIGURE_ARGS+= --without-xv 35CONFIGURE_ARGS+= --without-opengl
43.endif 36.endif
44 37
45.if !empty(PKG_OPTIONS:Mzlib) 38.if !empty(PKG_OPTIONS:Mpulseaudio)
46.include "../../devel/zlib/buildlink3.mk" 39.include "../../audio/pulseaudio/buildlink3.mk"
47.else 40.else
48CONFIGURE_ARGS+= --without-zlib 41CONFIGURE_ARGS+= --without-pulseaudio
49.endif 42.endif

File Deleted: pkgsrc/emulators/snes9x-gtk/patches/Attic/patch-aa

File Deleted: pkgsrc/emulators/snes9x-gtk/patches/Attic/patch-configure

File Deleted: pkgsrc/emulators/snes9x-gtk/patches/Attic/patch-src_gtk__s9x.cpp

File Added: pkgsrc/emulators/snes9x-gtk/patches/Attic/patch-gtk_configure.ac
$NetBSD: patch-gtk_configure.ac,v 1.1 2019/01/01 22:16:15 nia Exp $

Attempt to fix the zlib detection.

--- gtk/configure.ac.orig	2018-12-16 17:04:59.000000000 +0000
+++ gtk/configure.ac
@@ -330,11 +330,10 @@ fi
 CFLAGS="$CFLAGS -DNETPLAY_SUPPORT -DJMA_SUPPORT"
 
 if test yes = "$with_zlib"; then
-  AC_CHECK_HEADERS(zlib.h)
-  AC_CHECK_LIB(z, gzread, [
+  AC_CHECK_HEADERS(zlib.h, [
         CFLAGS="$CFLAGS -DZLIB"
         LIBS="$LIBS -lz"
-      ], ,)
+      ])
 fi
 
 if test yes = "$enable_dangerous_hacks"; then

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-aa

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ab

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ad

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ae

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ah

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ai

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-aj

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-aq

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ac

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-af

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ag

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ak

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-al

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-am

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-an

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ao

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ap

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ar

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-as

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-ba

File Deleted: pkgsrc/emulators/snes9x/patches/Attic/patch-bc

File Added: pkgsrc/emulators/snes9x/patches/patch-unix_configure
$NetBSD: patch-unix_configure,v 1.1 2019/01/01 22:16:14 nia Exp $

!Linux sometimes has OSS.

--- unix/configure.orig	2018-12-16 17:04:59.000000000 +0000
+++ unix/configure
@@ -6301,12 +6301,12 @@ $as_echo "yes" >&6; }
 $as_echo "no" >&6; }
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OS is not Linux. Build without sound support." >&5
 $as_echo "$as_me: WARNING: Your OS is not Linux. Build without sound support." >&2;}
-		enable_sound="no"
 	fi
 fi
 
 if test "x$enable_sound" = "xyes"; then
 	ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
+		S9XLIBS="$S9XLIBS $LIBOSSAUDIO"
 if test "x$ac_cv_header_pthread_h" = xyes; then :
 
 		S9XDEFS="$S9XDEFS -DUSE_THREADS"