Line 0
Link Here
|
|
|
1 |
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= play |
5 |
PORTVERSION= 0.30.0 |
6 |
CATEGORIES= games |
7 |
PKGNAMEPREFIX= libretro- |
8 |
|
9 |
MAINTAINER= rozhuk.im@gmail.com |
10 |
COMMENT= Play! - PlayStation 2 Emulator |
11 |
|
12 |
LICENSE= BSD2CLAUSE |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
15 |
LIB_DEPENDS= libicuuc.so:devel/icu |
16 |
|
17 |
USES= cmake ssl gl compiler:c++17-lang |
18 |
USE_GL= egl gl glew glu |
19 |
USE_LDCONFIG= yes |
20 |
USE_CXXSTD= c++17 |
21 |
|
22 |
USE_GITHUB= yes |
23 |
GH_ACCOUNT= jpd002 \ |
24 |
jpd002:codegen \ |
25 |
jpd002:framework \ |
26 |
jpd002:dependencies \ |
27 |
gulrak:ghc_filesystem |
28 |
GH_PROJECT= Play- \ |
29 |
Play--CodeGen:codegen \ |
30 |
Play--Framework:framework \ |
31 |
Play-Dependencies:dependencies \ |
32 |
filesystem:ghc_filesystem |
33 |
GH_TAGNAME= 83e31d7d2d9944263208010d7f2c2521d54afc63 \ |
34 |
88aaa95093538ce0731632b52e97fd8f3f6bcb4f:codegen \ |
35 |
5920d339846342328f61e92df4e441bc1606c60b:framework \ |
36 |
1d582d48c9768f13e38cc2860061a833ae30b4c2:dependencies \ |
37 |
8ea72cfb7312ac1bce58ebc18cec599b0045bfc9:ghc_filesystem |
38 |
GH_SUBDIR= deps/CodeGen:codegen \ |
39 |
deps/Framework:framework \ |
40 |
deps/Dependencies:dependencies \ |
41 |
deps/Dependencies/ghc_filesystem:ghc_filesystem |
42 |
|
43 |
PLIST_FILES= libexec/libretro/play_libretro.so |
44 |
|
45 |
CMAKE_ARGS= -DSHORT_HASH=${GH_TAGNAME_DEFAULT} \ |
46 |
-DBUILD_PLAY:BOOL=OFF \ |
47 |
-DBUILD_PSFPLAYER:BOOL=OFF \ |
48 |
-DBUILD_TESTS:BOOL=OFF \ |
49 |
-DBUILD_AOT_CACHE:BOOL=OFF \ |
50 |
-DBUILD_LIBRETRO_CORE:BOOL=ON \ |
51 |
-DENABLE_AMAZON_S3:BOOL=OFF |
52 |
|
53 |
post-patch: |
54 |
# Do not call git on configure. |
55 |
@${REINPLACE_CMD} -e 's|execute_process(COMMAND git rev-parse.*|set(SHORT_HASH_RESULT 0)|g' \ |
56 |
${WRKSRC}/CMakeLists.txt |
57 |
# Fix CMake error: Cannot specify compile options for target |
58 |
# "PUBLIC" which is not built by this project. |
59 |
@${REINPLACE_CMD} -e 's|target_compile_options(PUBLIC|add_compile_options(|g' \ |
60 |
${WRKSRC}/Source/CMakeLists.txt |
61 |
# Unneded -static append. |
62 |
@${REINPLACE_CMD} -e 's|list(APPEND PROJECT_LIBS "-static.*||g' \ |
63 |
${WRKSRC}/Source/ui_libretro/CMakeLists.txt |
64 |
# Do not set CXX inside CMake files. |
65 |
@${REINPLACE_CMD} -e 's|set(CMAKE_CXX_STANDARD.*||g' \ |
66 |
${WRKSRC}/deps/Dependencies/cmake-modules/Header.cmake \ |
67 |
${WRKSRC}/deps/Dependencies/ghc_filesystem/CMakeLists.txt \ |
68 |
${WRKSRC}/deps/Framework/build_cmake/Framework_Common.cmake \ |
69 |
${WRKSRC}/deps/CodeGen/build_cmake/CMakeLists.txt |
70 |
|
71 |
do-install: |
72 |
${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/libretro; |
73 |
${INSTALL_LIB} $$(find ${WRKDIR}/.build -name "*.so") ${STAGEDIR}/${PREFIX}/libexec/libretro; |
74 |
|
75 |
.include <bsd.port.mk> |