diff --git a/emulators/Makefile b/emulators/Makefile index 83e3e7b1d611..6d2d06eb2761 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -1,191 +1,192 @@ COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += almostti SUBDIR += anese SUBDIR += aqemu SUBDIR += aranym SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += cannonball SUBDIR += catapult SUBDIR += cemu SUBDIR += cingb SUBDIR += citra SUBDIR += citra-qt5 SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += dosbox-staging SUBDIR += dosbox-x SUBDIR += dps8m SUBDIR += duckstation SUBDIR += dynamips-community SUBDIR += edumips64 SUBDIR += elliott-803 SUBDIR += emu64 SUBDIR += emulationstation SUBDIR += fceux 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 += hugo SUBDIR += hv_kvp_cmd SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libc6-shim SUBDIR += libdsk SUBDIR += libretro-bsnes SUBDIR += libretro-flycast SUBDIR += libretro-kronos SUBDIR += libretro-mame 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_base-c7 SUBDIR += magia SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mesen SUBDIR += mgba SUBDIR += mtools 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-tools SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsx2 SUBDIR += playonbsd SUBDIR += ppsspp SUBDIR += ppsspp-qt5 SUBDIR += py-gns3-converter + SUBDIR += py-m64py SUBDIR += py-unicorn SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-devel SUBDIR += qemu-powernv SUBDIR += qemu-user-static SUBDIR += qemu-user-static-devel SUBDIR += qemu7 SUBDIR += qmc2 SUBDIR += quasi88 SUBDIR += reicast SUBDIR += ripes SUBDIR += riscv-isa-sim SUBDIR += rpcs3 SUBDIR += rubygem-fission 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 += tuxnes 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-additions SUBDIR += virtualbox-ose-additions-legacy SUBDIR += virtualbox-ose-additions-nox11 SUBDIR += virtualbox-ose-additions-nox11-legacy SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-kmod-legacy SUBDIR += virtualbox-ose-legacy SUBDIR += virtualbox-ose-nox11 SUBDIR += virtualbox-ose-nox11-legacy SUBDIR += visualboyadvance-m SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw SUBDIR += vt100 SUBDIR += vxtools SUBDIR += wine SUBDIR += wine-devel SUBDIR += wine-gecko SUBDIR += wine-gecko-devel SUBDIR += wine-mono SUBDIR += wine-mono-devel SUBDIR += wine-proton SUBDIR += wine7 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/py-m64py/Makefile b/emulators/py-m64py/Makefile new file mode 100644 index 000000000000..109876167cfd --- /dev/null +++ b/emulators/py-m64py/Makefile @@ -0,0 +1,41 @@ +PORTNAME= m64py +DISTVERSION= 0.2.5.${RELEASE_DATE} +CATEGORIES= emulators python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= a frontend for Mupen64Plus +WWW= https://github.com/mupen64plus/mupen64plus-ui-python + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSES + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt5-pyqt>0:devel/py-qt5-pyqt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pysdl2>0:devel/py-pysdl2@${PY_FLAVOR} +LIB_DEPENDS= libmupen64plus.so.2:emulators/mupen64plus-core +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt5-pyqt>0:devel/py-qt5-pyqt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pysdl2>0:devel/py-pysdl2@${PY_FLAVOR} \ + ${LOCALBASE}/lib/mupen64plus/mupen64plus-audio-sdl.so:emulators/mupen64plus-audio-sdl \ + ${LOCALBASE}/lib/mupen64plus/mupen64plus-input-sdl.so:emulators/mupen64plus-input-sdl \ + ${LOCALBASE}/lib/mupen64plus/mupen64plus-video-rice.so:emulators/mupen64plus-video-rice \ + ${LOCALBASE}/lib/mupen64plus/mupen64plus-rsp-hle.so:emulators/mupen64plus-rsp-hle + +USE_GITHUB= yes +GH_ACCOUNT= mupen64plus +GH_PROJECT= mupen64plus-ui-python +GH_TAGNAME= 90093ce3b353ff0fbe3277eb5d75130debdf0fab + +USES= desktop-file-utils python qt:5 shebangfix +USE_PYTHON= autoplist distutils +USE_QT= linguisttools + +NO_ARCH= yes + +SHEBANG_FILES= ${WRKSRC}/bin/m64py + +RELEASE_DATE= 20231226 + +post-patch: + ${REINPLACE_CMD} -i "" -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/src/m64py/platform.py + +.include diff --git a/emulators/py-m64py/distinfo b/emulators/py-m64py/distinfo new file mode 100644 index 000000000000..6d59871e6f1a --- /dev/null +++ b/emulators/py-m64py/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1704512889 +SHA256 (mupen64plus-mupen64plus-ui-python-0.2.5.20231226-90093ce3b353ff0fbe3277eb5d75130debdf0fab_GH0.tar.gz) = efa253ad87e5ef9d2509a343d3d217c2e143cd6d0b3031431db2f28553d8f21a +SIZE (mupen64plus-mupen64plus-ui-python-0.2.5.20231226-90093ce3b353ff0fbe3277eb5d75130debdf0fab_GH0.tar.gz) = 14669607 diff --git a/emulators/py-m64py/files/patch-src_m64py_platform.py b/emulators/py-m64py/files/patch-src_m64py_platform.py new file mode 100644 index 000000000000..8490ad7a9c7a --- /dev/null +++ b/emulators/py-m64py/files/patch-src_m64py_platform.py @@ -0,0 +1,18 @@ +--- src/m64py/platform.py.orig 2023-12-26 23:01:25 UTC ++++ src/m64py/platform.py +@@ -31,6 +31,15 @@ if sys.platform.startswith("linux"): + "/usr/lib/i386-linux-gnu/mupen64plus", + "." + ] ++elif sys.platform.startswith("freebsd"): ++ DLL_EXT = ".so" ++ DLL_FILTER = "" ++ DEFAULT_DYNLIB = "libmupen64plus.so.2" ++ SEARCH_DIRS = [ ++ "%%LOCALBASE%%/lib/", ++ "%%LOCALBASE%%/lib/mupen64plus/", ++ "." ++ ] + elif sys.platform.startswith("openbsd"): + DLL_EXT = ".so" + DLL_FILTER = "" diff --git a/emulators/py-m64py/pkg-descr b/emulators/py-m64py/pkg-descr new file mode 100644 index 000000000000..34b3572be179 --- /dev/null +++ b/emulators/py-m64py/pkg-descr @@ -0,0 +1,3 @@ +M64Py is a Qt5 front-end (GUI) for Mupen64Plus, a cross-platform plugin-based +Nintendo 64 emulator. Front-end is written in Python and it provides a +user-friendly interface over the Mupen64Plus shared library.