Line 0
Link Here
|
|
|
1 |
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= game.libretro.pcsx-rearmed |
5 |
PORTVERSION= 22.0.0.9 |
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 (PCSX ReARMed) |
13 |
|
14 |
LICENSE= GPLv2+ |
15 |
LICENSE_FILE= ${WRKSRC}/depends/common/pcsx-rearmed/COPYING |
16 |
|
17 |
BUILD_DEPENDS= kodi-devel>=19.0.a20200318:multimedia/kodi-devel |
18 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
19 |
RUN_DEPENDS= kodi-devel>=19.0.a20200318:multimedia/kodi-devel \ |
20 |
kodi-addon-game.libretro-devel>=0:multimedia/kodi-addon-game.libretro-devel |
21 |
|
22 |
USES= cmake:noninja gmake |
23 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= kodi-game \ |
25 |
libretro:pcsx_rearmed |
26 |
GH_PROJECT= pcsx_rearmed:pcsx_rearmed |
27 |
# Keep in sync with: depends/common/pcsx-rearmed/pcsx-rearmed.txt |
28 |
GH_TAGNAME= 3c4ac5bb44b41d23eec217369eaa34f4e155f733:pcsx_rearmed |
29 |
|
30 |
PLIST_SUB= SOVERSION=${PORTVERSION} |
31 |
|
32 |
CMAKE_ARGS= -DCMAKE_BUILD_TYPE=Release \ |
33 |
-DBUILD_SHARED_LIBS=1 \ |
34 |
-DADDONS_TO_BUILD=${PORTNAME} \ |
35 |
-DPCSX-REARMED_LIB=depends/common/pcsx-rearmed/pcsx_rearmed_libretro.so |
36 |
|
37 |
post-extract: |
38 |
@${MV} ${WRKSRC_pcsx_rearmed}/* ${WRKSRC}/depends/common/pcsx-rearmed/ |
39 |
|
40 |
post-patch: |
41 |
@${REINPLACE_CMD} -e 's|find_library(PCSX-REARMED_LIB.*|add_subdirectory(depends/common/pcsx-rearmed)|g' \ |
42 |
${WRKSRC}/CMakeLists.txt |
43 |
|
44 |
post-install: |
45 |
rm -rf ${STAGEDIR}${PREFIX}/lib/libretro |
46 |
|
47 |
.include <bsd.port.mk> |