freebsd-ports/games/kodi-addon-game.libretro.genplus/Makefile
Bernhard Froehlich 06afeb8a4b
games/kodi-addon-game.libretro.genplus: Update to 1.7.4.40
PR:		268987
Approved by:	rozhuk.im@gmail.com (maintainer)
2023-02-06 14:11:55 +00:00

40 lines
1.3 KiB
Makefile

PORTNAME= game.libretro.genplus
PORTVERSION= 1.7.4.40
DISTVERSIONSUFFIX= -Matrix
CATEGORIES= games
MAINTAINER= rozhuk.im@gmail.com
COMMENT= Kodi game addon for Sega - MS/GG/MD/CD (Genesis Plus GX)
WWW= https://github.com/libretro/Genesis-Plus-GX
LICENSE= GPLv2+
LIBRETRO_PORT= libretro-genesis_plus_gx
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>