1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

emulators/py-m64py: New port: a frontend for Mupen64Plus

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.
This commit is contained in:
Jose Alonso Cardenas Marquez 2024-01-06 11:18:36 -05:00
parent d820fcf123
commit 0dbb00b369
No known key found for this signature in database
GPG Key ID: 335B9246BA5E30F4
5 changed files with 66 additions and 0 deletions

View File

@ -106,6 +106,7 @@
SUBDIR += ppsspp
SUBDIR += ppsspp-qt5
SUBDIR += py-gns3-converter
SUBDIR += py-m64py
SUBDIR += py-unicorn
SUBDIR += qemu
SUBDIR += qemu-cheri

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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 = ""

View File

@ -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.