View | Details | Raw Unified | Return to bug 246060 | Differences between
and this patch

Collapse All | Expand All

(-)games/libretro-play/Makefile (+75 lines)
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>
(-)games/libretro-play/distinfo (+11 lines)
Line 0 Link Here
1
TIMESTAMP = 1589269299
2
SHA256 (jpd002-Play--0.30.0-f41260d1e797314117689d97a13a03fd398cae39_GH0.tar.gz) = 9858a2754801c2001dd5a1636c8a637cebec2d75e04c3258b01327fdcb1d5c70
3
SIZE (jpd002-Play--0.30.0-f41260d1e797314117689d97a13a03fd398cae39_GH0.tar.gz) = 1774934
4
SHA256 (jpd002-Play--CodeGen-88aaa95093538ce0731632b52e97fd8f3f6bcb4f_GH0.tar.gz) = 014986ae24d0be65f5dd00c44e3f9171162063199bb119b812f526364c92d369
5
SIZE (jpd002-Play--CodeGen-88aaa95093538ce0731632b52e97fd8f3f6bcb4f_GH0.tar.gz) = 257257
6
SHA256 (jpd002-Play--Framework-77caebd7a980ed60b9a44067268b285cc083a242_GH0.tar.gz) = 88f343d3ccbf33280df000687ac1fe10863e7b8aff65dde7b5cc83bc920c88a4
7
SIZE (jpd002-Play--Framework-77caebd7a980ed60b9a44067268b285cc083a242_GH0.tar.gz) = 173897
8
SHA256 (jpd002-Play-Dependencies-4acd7535c57772ff11efbe6a50b4e17deca7656c_GH0.tar.gz) = 6c5d25cedd51ec9941408edcbff1aaa4c83a0acaca94c33c7a85f6493a990656
9
SIZE (jpd002-Play-Dependencies-4acd7535c57772ff11efbe6a50b4e17deca7656c_GH0.tar.gz) = 4948345
10
SHA256 (gulrak-filesystem-3605e869150032ffdd9eae3db93e12f8711a0c82_GH0.tar.gz) = ee85f27d11fc446ea7b742b91b531e53dac5f2a86e30d2dc0eee86dc0f4b4e70
11
SIZE (gulrak-filesystem-3605e869150032ffdd9eae3db93e12f8711a0c82_GH0.tar.gz) = 162569
(-)games/libretro-play/pkg-descr (+5 lines)
Line 0 Link Here
1
Play! is a PlayStation 2 emulator for Windows, macOS, UNIX,
2
Android & iOS platforms.
3
4
5
WWW: https://purei.org/

Return to bug 246060