View | Details | Raw Unified | Return to bug 254415
Collapse All | Expand All

(-)b/games/kodi-addon-game.libretro.picodrive/Makefile (-32 / +24 lines)
Lines 9-50 CATEGORIES= games Link Here
9
MAINTAINER=	rozhuk.im@gmail.com
9
MAINTAINER=	rozhuk.im@gmail.com
10
COMMENT=	Kodi game addon for Sega - MS/MD/CD/32X (PicoDrive)
10
COMMENT=	Kodi game addon for Sega - MS/MD/CD/32X (PicoDrive)
11
11
12
LICENSE=	MAME-LICENSE
12
LICENSE=	GPLv2+
13
LICENSE_NAME=	MAME license
14
LICENSE_FILE=	${WRKSRC}/depends/common/picodrive/COPYING
15
LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
16
13
17
LIB_DEPENDS=	libtinyxml.so:textproc/tinyxml
14
LIBRETRO_PORT=	libretro-picodrive
18
RUN_DEPENDS=	kodi-addon-game.libretro>=0:games/kodi-addon-game.libretro
19
15
20
USES=		cmake:noninja gmake kodi
16
RUN_DEPENDS=	kodi-addon-game.libretro>=0:games/kodi-addon-game.libretro \
17
		${LIBRETRO_PORT}>=0:games/${LIBRETRO_PORT}
18
19
NO_ARCH=	yes
20
21
USES=		kodi
21
USE_GITHUB=	yes
22
USE_GITHUB=	yes
22
GH_ACCOUNT=	kodi-game
23
GH_ACCOUNT=	kodi-game
23
24
24
# Keep in sync with: depends/common/picodrive/picodrive.txt and work/picodrive-*/.gitmodules
25
do-build:
25
GH_TUPLE=	libretro:picodrive:046371ad2a3842d938cc74db5a615764ca2ff4ac:libretro_picodrive \
26
	@${MKDIR} ${WRKSRC}/lib
26
		notaz:libpicofe:76e45c3489a0c32d91744413c198f685b553f6c0:notaz_libpicofe \
27
	@LIBRARY_FILENAME_FULL=`${MAKE} -C ../${LIBRETRO_PORT} -V PLIST_FILES | ${SED} 's| .*||g'` && \
27
		notaz:cyclone68000:94a9d9a888e72cbfa4db12113cd113cf5e154f7f:notaz_cyclone68000 \
28
	LIBRARY_FILENAME=`basename "$${LIBRARY_FILENAME_FULL}"` && \
28
		digital-sound-antiques:emu2413:a18c81927fae4963f88a4c946ca150246cb9e9be:digital_sound_antiques_emu2413 \
29
	${LN} -sf "${LOCALBASE}/$${LIBRARY_FILENAME_FULL}" ${WRKSRC}/lib/ && \
29
		lieff:minimp3:ef9e212fa29bb72d23558da21bb5694fd2d01768:lieff_minimp3
30
	${REINPLACE_CMD} -e 's|@PLATFORM@|freebsd|g' \
30
31
		-e "s|@LIBRARY_FILENAME@|$${LIBRARY_FILENAME}|g" \
31
CMAKE_ARGS=	-DCMAKE_BUILD_TYPE=Release \
32
		${WRKSRC}/${PORTNAME}/addon.xml.in
32
		-DBUILD_SHARED_LIBS=1 \
33
	@${MV} ${WRKSRC}/${PORTNAME}/addon.xml.in ${WRKSRC}/${PORTNAME}/addon.xml
33
		-DADDONS_TO_BUILD=${PORTNAME} \
34
	@${RM} -f ${WRKSRC}/${PORTNAME}/addon.xml.in.bak
34
		-DPICODRIVE_LIB=depends/common/picodrive/picodrive_libretro.so
35
35
36
do-install:
36
post-extract:
37
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/kodi/addons/${PORTNAME} \
37
	@${MV} ${WRKSRC_notaz_libpicofe}/* ${WRKSRC_libretro_picodrive}/platform/libpicofe/
38
		${STAGEDIR}${PREFIX}/share/kodi/addons
38
	@${MV} ${WRKSRC_notaz_cyclone68000}/* ${WRKSRC_libretro_picodrive}/cpu/cyclone/
39
	@(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} * ${STAGEDIR}${PREFIX}/lib/kodi/addons/${PORTNAME})
39
	@${MV} ${WRKSRC_digital_sound_antiques_emu2413}/* ${WRKSRC_libretro_picodrive}/pico/sound/emu2413/
40
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/share/kodi/addons)
40
	@${MV} ${WRKSRC_lieff_minimp3}/* ${WRKSRC_libretro_picodrive}/platform/common/minimp3
41
	@${MV} ${WRKSRC_libretro_picodrive}/* ${WRKSRC}/depends/common/picodrive/
42
43
post-patch:
44
	@${REINPLACE_CMD} -e 's|find_library(PICODRIVE_LIB.*|add_subdirectory(depends/common/picodrive)|g' \
45
		${WRKSRC}/CMakeLists.txt
46
47
post-install:
48
	${RM} -rf ${STAGEDIR}${PREFIX}/lib/libretro
49
41
50
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)b/games/kodi-addon-game.libretro.picodrive/distinfo (-11 / +1 lines)
Lines 1-13 Link Here
1
TIMESTAMP = 1611234477
1
TIMESTAMP = 1616181966
2
SHA256 (kodi-game-game.libretro.picodrive-1.97.0.19-Matrix_GH0.tar.gz) = 6685fc276a54affad89c8cbc8f980114bd750153a19e82f6f810ab47456801aa
2
SHA256 (kodi-game-game.libretro.picodrive-1.97.0.19-Matrix_GH0.tar.gz) = 6685fc276a54affad89c8cbc8f980114bd750153a19e82f6f810ab47456801aa
3
SIZE (kodi-game-game.libretro.picodrive-1.97.0.19-Matrix_GH0.tar.gz) = 791215
3
SIZE (kodi-game-game.libretro.picodrive-1.97.0.19-Matrix_GH0.tar.gz) = 791215
4
SHA256 (libretro-picodrive-046371ad2a3842d938cc74db5a615764ca2ff4ac_GH0.tar.gz) = 101155a1a0da985a2d8a7c62967a3ee110825b68703a2519ba906d2eba7fe994
5
SIZE (libretro-picodrive-046371ad2a3842d938cc74db5a615764ca2ff4ac_GH0.tar.gz) = 1573265
6
SHA256 (notaz-libpicofe-76e45c3489a0c32d91744413c198f685b553f6c0_GH0.tar.gz) = a0a1c7e65f88b8fb17f0c3139a947c3677fcab848b90e24ee1cd0c6ae5ffe8c2
7
SIZE (notaz-libpicofe-76e45c3489a0c32d91744413c198f685b553f6c0_GH0.tar.gz) = 86695
8
SHA256 (notaz-cyclone68000-94a9d9a888e72cbfa4db12113cd113cf5e154f7f_GH0.tar.gz) = 1bd2f6558b3cf276ed6d895df303c3e8fc45e501017b10c2f96b35a73d052401
9
SIZE (notaz-cyclone68000-94a9d9a888e72cbfa4db12113cd113cf5e154f7f_GH0.tar.gz) = 64417
10
SHA256 (digital-sound-antiques-emu2413-a18c81927fae4963f88a4c946ca150246cb9e9be_GH0.tar.gz) = b183c44a83451cb5c8ce16f800e11a8c848b8554f6f98e909a279edc927d8db1
11
SIZE (digital-sound-antiques-emu2413-a18c81927fae4963f88a4c946ca150246cb9e9be_GH0.tar.gz) = 17155
12
SHA256 (lieff-minimp3-ef9e212fa29bb72d23558da21bb5694fd2d01768_GH0.tar.gz) = 1290ecb0f0d489506169bc3b886fe8323e5b27e72bf647afd13500716ac64824
13
SIZE (lieff-minimp3-ef9e212fa29bb72d23558da21bb5694fd2d01768_GH0.tar.gz) = 19744364

Return to bug 254415