[Bug 280958] emulators/mednafen: update to 1.32.1 and consolidate port

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Aug 2024 00:37:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280958

            Bug ID: 280958
           Summary: emulators/mednafen: update to 1.32.1 and consolidate
                    port
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://mednafen.github.io/documentation/ChangeLog.txt
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: bsdcode@disroot.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

Created attachment 252968
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252968&action=edit
update emulators/mednafen

While updating the port I realized some obsolete parts in the port which give
opportunity for improvements.

Aside from general cleanups in the LIB_DEPENDS, USES, USE_*, OPTIONS_* and
*_DESC sections, some patches are not needed anymore. Especially everything
relating to Joystick can be dropped, because it's now handled correctly
upstream.

Most bundled libraries are available in the ports tree, so I used these (see
CONFIGURE_ARGS+= --with-external-*). Special attention to audio/libtremor: it
got removed last year from the ports tree. I used the drop-in replacement
libvorbisfile.so:audio/libvorbis and applied some patches so mednafen actually
uses it as replacement instead of tremor.

I added ALSA to the audio options, enabled by default. ALSA is the prioritized
backend upstream, so when ALSA support is compiled in it will be used instead
of the OSS backend with the default "sound.driver default" setting in
mednafen.cfg. I added a patch to set "sound.device sexyal-literal-default" by
default in mednafen.cfg, because "sound.device default" tries to use "hw:0" for
the ALSA device which is not available on FreeBSD. "sexyal-literal-default"
uses the true default value, which is "pcm.default" under the hood I assume. So
this patch ensures users have working audio right from the start without
searching and fiddling around with the configuration file.


Changelog:
https://mednafen.github.io/documentation/ChangeLog.txt

Port changes:
  * consolidate LIB_DEPENDS, USES, USE_*, OPTIONS_*, *_DESC and patches
  * unbundle external libraries
  * ALSA: add support, enabled by default
  * DOCS: install complete documentation
  * SS: remove hardcoded -mtune=haswell
  * pkg-message: add OSS section
  * pet portclippy(1), portfmt(1)

-- 
You are receiving this mail because:
You are the assignee for the bug.