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}/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>
(-)games/libretro-play/distinfo (+11 lines)
Line 0 Link Here
1
TIMESTAMP = 1588252640
2
SHA256 (jpd002-Play--0.30.0-83e31d7d2d9944263208010d7f2c2521d54afc63_GH0.tar.gz) = bee4b73c829a513be4876f1f7c7b924ae1e8092e6760b9a60707308381324dec
3
SIZE (jpd002-Play--0.30.0-83e31d7d2d9944263208010d7f2c2521d54afc63_GH0.tar.gz) = 1772880
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-5920d339846342328f61e92df4e441bc1606c60b_GH0.tar.gz) = 90a62b7272934415ab5c0d82fb52d9c4b94b9e1cc817d6d483f8136b3e6b4aa2
7
SIZE (jpd002-Play--Framework-5920d339846342328f61e92df4e441bc1606c60b_GH0.tar.gz) = 173887
8
SHA256 (jpd002-Play-Dependencies-1d582d48c9768f13e38cc2860061a833ae30b4c2_GH0.tar.gz) = 4d42dc659add037c386958770d0a4815c53424e48ce4172ed79ec6ba67c2deb2
9
SIZE (jpd002-Play-Dependencies-1d582d48c9768f13e38cc2860061a833ae30b4c2_GH0.tar.gz) = 4949299
10
SHA256 (gulrak-filesystem-8ea72cfb7312ac1bce58ebc18cec599b0045bfc9_GH0.tar.gz) = 3b5dfcf467406a2f594f7f3755dab7cb67c2e1e6a2133b421afc36d3824b0a78
11
SIZE (gulrak-filesystem-8ea72cfb7312ac1bce58ebc18cec599b0045bfc9_GH0.tar.gz) = 161495
(-)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