git: 175382d313ff - main - multimedia/kodi-addon-game.libretro.fceumm: Kodi game addon for NES / Famicom (FCEUmm)

From: Bernhard Froehlich <decke_at_FreeBSD.org>
Date: Fri, 14 Jan 2022 14:43:00 UTC
The branch main has been updated by decke:

URL: https://cgit.FreeBSD.org/ports/commit/?id=175382d313ffaca30d708c9a2d85a7862b4ce9d6

commit 175382d313ffaca30d708c9a2d85a7862b4ce9d6
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2022-01-14 14:38:53 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2022-01-14 14:38:53 +0000

    multimedia/kodi-addon-game.libretro.fceumm: Kodi game addon for NES / Famicom (FCEUmm)
    
    PR:             254418
    Submitted by:   Ivan Rozhuk <rozhuk.im@gmail.com>
---
 games/Makefile                                  |  1 +
 games/kodi-addon-game.libretro.fceumm/Makefile  | 41 +++++++++++++++++++++++++
 games/kodi-addon-game.libretro.fceumm/distinfo  |  3 ++
 games/kodi-addon-game.libretro.fceumm/pkg-descr |  8 +++++
 4 files changed, 53 insertions(+)

diff --git a/games/Makefile b/games/Makefile
index ef175a2876b0..8711ff590621 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -447,6 +447,7 @@
     SUBDIR += kobodeluxe
     SUBDIR += kodi-addon-game.libretro
     SUBDIR += kodi-addon-game.libretro.beetle-psx
+    SUBDIR += kodi-addon-game.libretro.fceumm
     SUBDIR += kodi-addon-game.libretro.genplus
     SUBDIR += kodi-addon-game.libretro.pcsx-rearmed
     SUBDIR += kodi-addon-game.libretro.picodrive
diff --git a/games/kodi-addon-game.libretro.fceumm/Makefile b/games/kodi-addon-game.libretro.fceumm/Makefile
new file mode 100644
index 000000000000..a72e8713225d
--- /dev/null
+++ b/games/kodi-addon-game.libretro.fceumm/Makefile
@@ -0,0 +1,41 @@
+# Created by: Rozhuk Ivan <rozhuk.im@gmail.com>
+
+PORTNAME=	game.libretro.fceumm
+PORTVERSION=	0.0.1.36
+DISTVERSIONSUFFIX=	-Matrix
+CATEGORIES=	games
+
+MAINTAINER=	rozhuk.im@gmail.com
+COMMENT=	Kodi game addon for NES / Famicom (FCEUmm)
+
+LICENSE=	GPLv2+
+
+LIBRETRO_PORT=	libretro-fceumm
+
+RUN_DEPENDS=	kodi-addon-game.libretro>=0:games/kodi-addon-game.libretro \
+		${LIBRETRO_PORT}>=0:games/${LIBRETRO_PORT}
+
+NO_ARCH=	yes
+
+USES=		kodi
+USE_GITHUB=	yes
+GH_ACCOUNT=	kodi-game
+
+do-build:
+	@${MKDIR} ${WRKSRC}/lib
+	@LIBRARY_FILENAME_FULL=`${MAKE} -C ../${LIBRETRO_PORT} -V PLIST_FILES | ${SED} 's| .*||g'` && \
+	LIBRARY_FILENAME=`basename "$${LIBRARY_FILENAME_FULL}"` && \
+	${LN} -sf "${LOCALBASE}/$${LIBRARY_FILENAME_FULL}" ${WRKSRC}/lib/ && \
+	${REINPLACE_CMD} -e 's|@PLATFORM@|freebsd|g' \
+		-e "s|@LIBRARY_FILENAME@|$${LIBRARY_FILENAME}|g" \
+		${WRKSRC}/${PORTNAME}/addon.xml.in
+	@${MV} ${WRKSRC}/${PORTNAME}/addon.xml.in ${WRKSRC}/${PORTNAME}/addon.xml
+	@${RM} -f ${WRKSRC}/${PORTNAME}/addon.xml.in.bak
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/kodi/addons/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/share/kodi/addons
+	@(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} * ${STAGEDIR}${PREFIX}/lib/kodi/addons/${PORTNAME})
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/share/kodi/addons)
+
+.include <bsd.port.mk>
diff --git a/games/kodi-addon-game.libretro.fceumm/distinfo b/games/kodi-addon-game.libretro.fceumm/distinfo
new file mode 100644
index 000000000000..7fea41c1674e
--- /dev/null
+++ b/games/kodi-addon-game.libretro.fceumm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1641913236
+SHA256 (kodi-game-game.libretro.fceumm-0.0.1.36-Matrix_GH0.tar.gz) = fc32ed59816bc4aec3ec66a651dde52dcba282c0435419dbe5211afa9249c987
+SIZE (kodi-game-game.libretro.fceumm-0.0.1.36-Matrix_GH0.tar.gz) = 785145
diff --git a/games/kodi-addon-game.libretro.fceumm/pkg-descr b/games/kodi-addon-game.libretro.fceumm/pkg-descr
new file mode 100644
index 000000000000..33b32001c074
--- /dev/null
+++ b/games/kodi-addon-game.libretro.fceumm/pkg-descr
@@ -0,0 +1,8 @@
+FCE Ultra mappers modified
+
+FCEU "mappers modified" is an unofficial build of FCEU Ultra by CaH4e3,
+which supports a lot of new mappers including some obscure mappers such
+as one for unlicensed NES ROM's.
+
+
+WWW: https://github.com/libretro/libretro-fceumm/