blob: 3cf0d617f29c64c7c872a8a127d58a656d69de19 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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+
LIBRETRO_PORT= libretro-pcsx_rearmed
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>
|