git: 042db565be2c - main - games/kodi-addon-game.libretro.pcsx-rearmed: Avoid bundling pcsx_rearmed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Jan 2022 12:47:27 UTC
The branch main has been updated by decke: URL: https://cgit.FreeBSD.org/ports/commit/?id=042db565be2c38f0efbdbcf374e2716c317491b1 commit 042db565be2c38f0efbdbcf374e2716c317491b1 Author: Bernhard Froehlich <decke@FreeBSD.org> AuthorDate: 2022-01-18 12:39:20 +0000 Commit: Bernhard Froehlich <decke@FreeBSD.org> CommitDate: 2022-01-18 12:39:20 +0000 games/kodi-addon-game.libretro.pcsx-rearmed: Avoid bundling pcsx_rearmed PR: 261113 Submitted by: Rozhuk Ivan <rozhuk.im@gmail.com> (maintainer) --- .../kodi-addon-game.libretro.pcsx-rearmed/Makefile | 47 ++++++++++++---------- .../kodi-addon-game.libretro.pcsx-rearmed/distinfo | 2 - 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/games/kodi-addon-game.libretro.pcsx-rearmed/Makefile b/games/kodi-addon-game.libretro.pcsx-rearmed/Makefile index 67bce2da1218..37e0b24c8774 100644 --- a/games/kodi-addon-game.libretro.pcsx-rearmed/Makefile +++ b/games/kodi-addon-game.libretro.pcsx-rearmed/Makefile @@ -3,37 +3,40 @@ PORTNAME= game.libretro.pcsx-rearmed PORTVERSION= 22.0.0.39 DISTVERSIONSUFFIX= -Matrix +PORTREVISION= 1 CATEGORIES= games MAINTAINER= rozhuk.im@gmail.com COMMENT= Kodi game addon for Sony - PlayStation (PCSX ReARMed) LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/depends/common/pcsx-rearmed/COPYING -LIB_DEPENDS= libtinyxml.so:textproc/tinyxml -RUN_DEPENDS= kodi-addon-game.libretro>=0:games/kodi-addon-game.libretro +LIBRETRO_PORT= libretro-pcsx_rearmed -USES= cmake:noninja gmake kodi -USE_GITHUB= yes -GH_ACCOUNT= kodi-game \ - libretro:pcsx_rearmed -GH_PROJECT= pcsx_rearmed:pcsx_rearmed -# Keep in sync with: depends/common/pcsx-rearmed/pcsx-rearmed.txt -GH_TAGNAME= 54686ee7ccbba7220aaf69892ad3d77515478776:pcsx_rearmed - -CMAKE_ARGS= -DBUILD_SHARED_LIBS=1 \ - -DADDONS_TO_BUILD=${PORTNAME} \ - -DPCSX-REARMED_LIB=depends/common/pcsx-rearmed/pcsx_rearmed_libretro.so +RUN_DEPENDS= kodi-addon-game.libretro>=0:games/kodi-addon-game.libretro \ + ${LIBRETRO_PORT}>=0:games/${LIBRETRO_PORT} -post-extract: - @${MV} ${WRKSRC_pcsx_rearmed}/* ${WRKSRC}/depends/common/pcsx-rearmed/ +NO_ARCH= yes -post-patch: - @${REINPLACE_CMD} -e 's|find_library(PCSX-REARMED_LIB.*|add_subdirectory(depends/common/pcsx-rearmed)|g' \ - ${WRKSRC}/CMakeLists.txt - -post-install: - ${RM} -rf ${STAGEDIR}${PREFIX}/lib/libretro +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.pcsx-rearmed/distinfo b/games/kodi-addon-game.libretro.pcsx-rearmed/distinfo index c27bbe294266..8656519e5150 100644 --- a/games/kodi-addon-game.libretro.pcsx-rearmed/distinfo +++ b/games/kodi-addon-game.libretro.pcsx-rearmed/distinfo @@ -1,5 +1,3 @@ TIMESTAMP = 1641911788 SHA256 (kodi-game-game.libretro.pcsx-rearmed-22.0.0.39-Matrix_GH0.tar.gz) = b6d72f04246a11052b32942913ffda1775313ac251db7f0c047707c74d191520 SIZE (kodi-game-game.libretro.pcsx-rearmed-22.0.0.39-Matrix_GH0.tar.gz) = 81858 -SHA256 (libretro-pcsx_rearmed-54686ee7ccbba7220aaf69892ad3d77515478776_GH0.tar.gz) = aeb8941cb9a262d4e9f94d6491c2cfaa823df759f40b30dd624c27a36f369fa1 -SIZE (libretro-pcsx_rearmed-54686ee7ccbba7220aaf69892ad3d77515478776_GH0.tar.gz) = 2289399