[Bug 284634] [NEW PORT] devel/libmt32emu: Emulate Roland MT-32, CM-32L and LAPC-I synthesiser modules

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Feb 2025 11:22:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284634

            Bug ID: 284634
           Summary: [NEW PORT] devel/libmt32emu: Emulate Roland MT-32,
                    CM-32L and LAPC-I synthesiser modules
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://munt.sourceforge.net
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bsdcode@disroot.org
 Attachment #257312 maintainer-approval+
             Flags:

Created attachment 257312
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=257312&action=edit
new port devel/libmt32emu

mt32emu is part of the Munt project. It represents a C/C++ library named
libmt32emu which allows to emulate (approximately) the Roland MT-32, CM-32L and
LAPC-I synthesiser modules.

WWW: https://munt.sourceforge.net


Some remarks regarding the port:

1) By default CMakeLists.txt wants to install the pkgconfig files to
${PREFIX}/lib/pkgconfig. The ports framework detects this and corrects it
automatically to ${PREFIX}/libdata/pkgconfig, and suggests to use USES=pathfix
to fix it explicitly. Unfortunatly USES=pathfix can't detect it. So

  CMAKE_ARGS= -Dlibmt32emu_PKGCONFIG_INSTALL_PREFIX=${PREFIX}/libdata

has to be set in the port to fix this explicitly.

2) CMakeLists.txt installs the documentation files to
${PREFIX}/share/doc/munt/libmt32emu. The port sets the DOCSDIR accordingly in
order for the framework to automatically pick the documentation up and handle
it (pkg-plist, DOCS option).

3) libmt32emu is part of the Munt project. The code repository on github for
Munt contains all the subprojects. Because this port is only interested in the
mt32emu subproject, the port only extracts the mt32emu directory from the
distfile via --include in EXTRACT_AFTER_ARGS. WRKSRC_SUBDIR also has to be set
accordingly.


This port allows to enable the Roland MT-32 emulation support in
emulators/dosbox-staging, providing better audio quality for programs and games
supporting it. I'll submit a patch for emulators/dosbox-staging right away.

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