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}/License.txt |
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= f41260d1e797314117689d97a13a03fd398cae39 \ |
34 |
88aaa95093538ce0731632b52e97fd8f3f6bcb4f:codegen \ |
35 |
77caebd7a980ed60b9a44067268b285cc083a242:framework \ |
36 |
4acd7535c57772ff11efbe6a50b4e17deca7656c:dependencies \ |
37 |
3605e869150032ffdd9eae3db93e12f8711a0c82: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= lib/libretro/play_libretro.so |
44 |
|
45 |
CMAKE_ON= BUILD_LIBRETRO_CORE |
46 |
CMAKE_OFF= BUILD_AOT_CACHE \ |
47 |
BUILD_PLAY \ |
48 |
BUILD_PSFPLAYER \ |
49 |
BUILD_TESTS \ |
50 |
ENABLE_AMAZON_S3 |
51 |
CMAKE_ARGS= -DSHORT_HASH=${GH_TAGNAME_DEFAULT} |
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}/lib/libretro; |
73 |
${INSTALL_LIB} $$(find ${WRKDIR}/.build -name "*.so") ${STAGEDIR}/${PREFIX}/lib/libretro; |
74 |
|
75 |
.include <bsd.port.mk> |