diff --git a/emulators/Makefile b/emulators/Makefile index 33ea84db8440..52250ab31c97 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -1,203 +1,204 @@ COMMENT = Emulators for other operating systems SUBDIR += 86Box SUBDIR += Ymir SUBDIR += adamem SUBDIR += almostti SUBDIR += amiberry SUBDIR += anese SUBDIR += aqemu SUBDIR += aranym SUBDIR += ares SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += cannonball SUBDIR += catapult SUBDIR += cemu SUBDIR += cingb SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += dosbox-staging SUBDIR += dosbox-x SUBDIR += dps8m SUBDIR += dynamips-community SUBDIR += edumips64 SUBDIR += einstein-newton SUBDIR += elliott-803 SUBDIR += emu64 SUBDIR += emulationstation SUBDIR += emutos SUBDIR += es-de SUBDIR += fbneo SUBDIR += fbsd-duckstation SUBDIR += fceux SUBDIR += firebird SUBDIR += flexemu SUBDIR += flycast SUBDIR += fmsx SUBDIR += frodo SUBDIR += fs-uae SUBDIR += fs-uae-launcher SUBDIR += fuse SUBDIR += fuse-roms SUBDIR += fuse-utils SUBDIR += gbe SUBDIR += gens SUBDIR += gngb SUBDIR += gxemul SUBDIR += hatari SUBDIR += hercules SUBDIR += higan SUBDIR += hv_kvp_cmd SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libc6-shim SUBDIR += libdsk + SUBDIR += libmt32emu SUBDIR += libretro-bsnes SUBDIR += libretro-flycast SUBDIR += libretro-kronos SUBDIR += libretro-pcsx2 SUBDIR += libretro-ppsspp SUBDIR += libretro-reicast SUBDIR += libretro-vice SUBDIR += libspectrum SUBDIR += linux-c7 SUBDIR += linux-power10-functional-sim SUBDIR += linux-power9-functional-sim SUBDIR += linux-rl9 SUBDIR += linux_base-c7 SUBDIR += linux_base-rl9 SUBDIR += magia SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mesen SUBDIR += mgba SUBDIR += mupen64plus SUBDIR += mupen64plus-audio-sdl SUBDIR += mupen64plus-core SUBDIR += mupen64plus-input-sdl SUBDIR += mupen64plus-plugins SUBDIR += mupen64plus-qt SUBDIR += mupen64plus-rsp-cxd4 SUBDIR += mupen64plus-rsp-hle SUBDIR += mupen64plus-rsp-z64 SUBDIR += mupen64plus-ui-console SUBDIR += mupen64plus-video-arachnoid SUBDIR += mupen64plus-video-glide64 SUBDIR += mupen64plus-video-glide64mk2 SUBDIR += mupen64plus-video-rice SUBDIR += mupen64plus-video-z64 SUBDIR += nemu SUBDIR += nestopia SUBDIR += o2em SUBDIR += ods2reader SUBDIR += open-simh SUBDIR += open-vm-kmod SUBDIR += open-vm-tools SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsx2 SUBDIR += playonbsd SUBDIR += ppsspp SUBDIR += py-gns3-converter SUBDIR += py-m64py SUBDIR += py-qemu.qmp SUBDIR += py-unicorn SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-devel SUBDIR += qemu-powernv SUBDIR += qemu-user-static SUBDIR += qemu-user-static-devel SUBDIR += qmc2 SUBDIR += quasi88 SUBDIR += reicast SUBDIR += ripes SUBDIR += riscv-isa-sim SUBDIR += rpcs3 SUBDIR += rubygem-fission SUBDIR += rvvm SUBDIR += rvvm-devel SUBDIR += sameboy SUBDIR += simh SUBDIR += simh-hp2100 SUBDIR += simh-hp3000 SUBDIR += simh-hpdoc SUBDIR += snes9x-gtk SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += teo SUBDIR += tic-80 SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme SUBDIR += tnylpo SUBDIR += tpm-emulator SUBDIR += uae SUBDIR += ucon64 SUBDIR += uconvert SUBDIR += ukncbtl SUBDIR += unicorn SUBDIR += vba SUBDIR += vboxtool SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice SUBDIR += virtualbox-ose SUBDIR += virtualbox-ose-70 SUBDIR += virtualbox-ose-71 SUBDIR += virtualbox-ose-72 SUBDIR += virtualbox-ose-additions SUBDIR += virtualbox-ose-additions-70 SUBDIR += virtualbox-ose-additions-71 SUBDIR += virtualbox-ose-additions-72 SUBDIR += virtualbox-ose-additions-legacy SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-kmod-70 SUBDIR += virtualbox-ose-kmod-71 SUBDIR += virtualbox-ose-kmod-72 SUBDIR += virtualbox-ose-kmod-legacy SUBDIR += virtualbox-ose-legacy SUBDIR += visualboyadvance-m SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw SUBDIR += vt100 SUBDIR += wine SUBDIR += wine-devel SUBDIR += wine-gecko SUBDIR += wine-gecko-devel SUBDIR += wine-mono SUBDIR += wine-mono-devel SUBDIR += wine-proton SUBDIR += winetricks SUBDIR += x16-emulator SUBDIR += x16-rom SUBDIR += x48 SUBDIR += x49gp SUBDIR += xbraitenberg SUBDIR += xcpc SUBDIR += xen-kernel SUBDIR += xhomer SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yaze-ag SUBDIR += yuzu SUBDIR += z80pack SUBDIR += zsnes .include diff --git a/emulators/libmt32emu/Makefile b/emulators/libmt32emu/Makefile new file mode 100644 index 000000000000..a3b2cd6a24e1 --- /dev/null +++ b/emulators/libmt32emu/Makefile @@ -0,0 +1,45 @@ +PORTNAME= libmt32emu +DISTVERSION= 2_7_3 +CATEGORIES= emulators + +MAINTAINER= bsdcode@disroot.org +COMMENT= Emulate Roland MT-32, CM-32L and LAPC-I synthesiser modules +WWW= https://munt.sourceforge.net + +LICENSE= LGPL21+ +LICENSE_FILE= ${WRKSRC}/COPYING.LESSER.txt + +USES= cmake pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= munt +GH_PROJECT= munt +GH_TAGNAME= ${PORTNAME}_${DISTVERSION} + +USE_LDCONFIG= yes + +EXTRACT_AFTER_ARGS= --include ${GH_PROJECT}-${GH_TAGNAME}/mt32emu \ + --no-same-owner --no-same-permissions + +WRKSRC_SUBDIR= mt32emu + +PLIST_SUB= SOVERSION=${PORTVERSION} + +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT= LIBSOXR +OPTIONS_RADIO= RESAMPLER +OPTIONS_RADIO_RESAMPLER= INTERNAL LIBSAMPLERATE LIBSOXR + +INTERNAL_DESC= Built-in samplerate conversion +LIBSAMPLERATE_DESC= Build with libsamplerate support +LIBSOXR_DESC= Build with libsoxr support + +INTERNAL_CMAKE_BOOL= libmt32emu_WITH_INTERNAL_RESAMPLER + +LIBSAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate +LIBSAMPLERATE_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_SampleRate + +LIBSOXR_LIB_DEPENDS= libsoxr.so:audio/libsoxr +LIBSOXR_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_SOXR + +.include diff --git a/emulators/libmt32emu/distinfo b/emulators/libmt32emu/distinfo new file mode 100644 index 000000000000..8dbe24755a5e --- /dev/null +++ b/emulators/libmt32emu/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1774724704 +SHA256 (munt-munt-2_7_3-libmt32emu_2_7_3_GH0.tar.gz) = e51f3475771c9d07116e6cb5ae2e095ef3b11b3107d92c01d3a1dc03be13ff98 +SIZE (munt-munt-2_7_3-libmt32emu_2_7_3_GH0.tar.gz) = 583979 diff --git a/emulators/libmt32emu/files/patch-CMakeLists.txt b/emulators/libmt32emu/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..dfbaa79d5af3 --- /dev/null +++ b/emulators/libmt32emu/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2025-12-26 14:07:56 UTC ++++ CMakeLists.txt +@@ -378,7 +378,7 @@ install(FILES + + install(FILES + AUTHORS.txt COPYING.txt COPYING.LESSER.txt NEWS.txt README.md TODO.txt +- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/munt/${PROJECT_NAME} ++ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME} + ) + + # Facilitates usage of the library in another project either through diff --git a/emulators/libmt32emu/files/patch-cmake_project__data.cmake b/emulators/libmt32emu/files/patch-cmake_project__data.cmake new file mode 100644 index 000000000000..5b7082bf0be0 --- /dev/null +++ b/emulators/libmt32emu/files/patch-cmake_project__data.cmake @@ -0,0 +1,9 @@ +--- cmake/project_data.cmake.orig 2025-12-26 14:07:56 UTC ++++ cmake/project_data.cmake +@@ -4,5 +4,5 @@ set(libmt32emu_VERSION_MINOR 7) + + set(libmt32emu_VERSION_MAJOR 2) + set(libmt32emu_VERSION_MINOR 7) +-set(libmt32emu_VERSION_PATCH 2) ++set(libmt32emu_VERSION_PATCH 3) + set(libmt32emu_VERSION "${libmt32emu_VERSION_MAJOR}.${libmt32emu_VERSION_MINOR}.${libmt32emu_VERSION_PATCH}") diff --git a/emulators/libmt32emu/pkg-descr b/emulators/libmt32emu/pkg-descr new file mode 100644 index 000000000000..56444aece72e --- /dev/null +++ b/emulators/libmt32emu/pkg-descr @@ -0,0 +1,3 @@ +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. diff --git a/emulators/libmt32emu/pkg-plist b/emulators/libmt32emu/pkg-plist new file mode 100644 index 000000000000..d98704fd8913 --- /dev/null +++ b/emulators/libmt32emu/pkg-plist @@ -0,0 +1,29 @@ +include/mt32emu.h +include/mt32emu/Enumerations.h +include/mt32emu/File.h +include/mt32emu/FileStream.h +include/mt32emu/MidiStreamParser.h +include/mt32emu/ROMInfo.h +include/mt32emu/SampleRateConverter.h +include/mt32emu/Synth.h +include/mt32emu/Types.h +include/mt32emu/c_interface/c_interface.h +include/mt32emu/c_interface/c_types.h +include/mt32emu/c_interface/cpp_interface.h +include/mt32emu/config.h +include/mt32emu/globals.h +include/mt32emu/mt32emu.h +lib/cmake/MT32Emu/MT32EmuConfig.cmake +lib/cmake/MT32Emu/MT32EmuConfigVersion.cmake +lib/cmake/MT32Emu/MT32EmuTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/MT32Emu/MT32EmuTargets.cmake +lib/libmt32emu.so +lib/libmt32emu.so.2 +lib/libmt32emu.so.%%SOVERSION%% +libdata/pkgconfig/mt32emu.pc +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS.txt +%%PORTDOCS%%%%DOCSDIR%%/COPYING.LESSER.txt +%%PORTDOCS%%%%DOCSDIR%%/COPYING.txt +%%PORTDOCS%%%%DOCSDIR%%/NEWS.txt +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/TODO.txt