mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
games/kodi-addon-game.libretro.pcsx-rearmed: Avoid bundling pcsx_rearmed
PR: 261113 Submitted by: Rozhuk Ivan <rozhuk.im@gmail.com> (maintainer)
This commit is contained in:
parent
cb87af0a07
commit
042db565be
@ -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
|
||||
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 \
|
||||
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
|
||||
GH_ACCOUNT= kodi-game
|
||||
|
||||
CMAKE_ARGS= -DBUILD_SHARED_LIBS=1 \
|
||||
-DADDONS_TO_BUILD=${PORTNAME} \
|
||||
-DPCSX-REARMED_LIB=depends/common/pcsx-rearmed/pcsx_rearmed_libretro.so
|
||||
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
|
||||
|
||||
post-extract:
|
||||
@${MV} ${WRKSRC_pcsx_rearmed}/* ${WRKSRC}/depends/common/pcsx-rearmed/
|
||||
|
||||
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
|
||||
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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user