Line 0
Link Here
|
|
|
1 |
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= game.libretro.beetle-psx |
5 |
PORTVERSION= 0.9.44.12 |
6 |
DISTVERSIONSUFFIX= -Leia |
7 |
CATEGORIES= games |
8 |
PKGNAMEPREFIX= kodi-addon- |
9 |
PKGNAMESUFFIX= -devel |
10 |
|
11 |
MAINTAINER= rozhuk.im@gmail.com |
12 |
COMMENT= Kodi game addon for Sony - PlayStation (Beetle PSX) |
13 |
|
14 |
LICENSE= GPLv2+ |
15 |
|
16 |
BUILD_DEPENDS= kodi-devel>=19.0.a20200318:multimedia/kodi-devel |
17 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
18 |
RUN_DEPENDS= kodi-devel>=19.0.a20200318:multimedia/kodi-devel \ |
19 |
kodi-addon-game.libretro-devel>=0:multimedia/kodi-addon-game.libretro-devel |
20 |
|
21 |
USES= cmake:noninja gmake localbase |
22 |
USE_GITHUB= yes |
23 |
GH_ACCOUNT= kodi-game \ |
24 |
libretro:beetle_psx |
25 |
GH_PROJECT= beetle-psx-libretro:beetle_psx |
26 |
# Keep in sync with: depends/common/beetle-psx/beetle-psx.txt |
27 |
GH_TAGNAME= c7c8ffd3d2cf1c780ccf98417e60908f9adf970d:beetle_psx |
28 |
|
29 |
PLIST_SUB= SOVERSION=${PORTVERSION} |
30 |
|
31 |
CMAKE_ARGS= -DCMAKE_BUILD_TYPE=Release \ |
32 |
-DBUILD_SHARED_LIBS=1 \ |
33 |
-DADDONS_TO_BUILD=${PORTNAME} \ |
34 |
-DBEETLE-PSX_LIB=depends/common/beetle-psx/mednafen_psx_libretro.so |
35 |
|
36 |
post-extract: |
37 |
@${MV} ${WRKSRC_beetle_psx}/* ${WRKSRC}/depends/common/beetle-psx/ |
38 |
|
39 |
post-patch: |
40 |
@${REINPLACE_CMD} -e 's|find_library(BEETLE-PSX_LIB.*|add_subdirectory(depends/common/beetle-psx)|g' \ |
41 |
${WRKSRC}/CMakeLists.txt |
42 |
@${REINPLACE_CMD} -e 's|defined(BSD)|!defined(CLOCK_REALTIME)|g' \ |
43 |
${WRKSRC}/depends/common/beetle-psx/libretro-common/rthreads/rthreads.c |
44 |
|
45 |
post-install: |
46 |
rm -rf ${STAGEDIR}${PREFIX}/lib/libretro |
47 |
|
48 |
.include <bsd.port.mk> |