Index: games/Makefile =================================================================== --- games/Makefile +++ games/Makefile @@ -511,6 +511,7 @@ SUBDIR += libretro-opera SUBDIR += libretro-pcsx_rearmed SUBDIR += libretro-picodrive + SUBDIR += libretro-play SUBDIR += libretro-prboom SUBDIR += libretro-prosystem SUBDIR += libretro-quicknes Index: games/libretro-play/Makefile =================================================================== --- /dev/null +++ games/libretro-play/Makefile @@ -0,0 +1,75 @@ +# Created by: Rozhuk Ivan +# $FreeBSD$ + +PORTNAME= play +PORTVERSION= 0.30.0 +CATEGORIES= games +PKGNAMEPREFIX= libretro- + +MAINTAINER= rozhuk.im@gmail.com +COMMENT= Play! - PlayStation 2 Emulator + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/License.txt + +LIB_DEPENDS= libicuuc.so:devel/icu + +USES= cmake ssl gl compiler:c++17-lang +USE_GL= egl gl glew glu +USE_LDCONFIG= yes +USE_CXXSTD= c++17 + +USE_GITHUB= yes +GH_ACCOUNT= jpd002 \ + jpd002:codegen \ + jpd002:framework \ + jpd002:dependencies \ + gulrak:ghc_filesystem +GH_PROJECT= Play- \ + Play--CodeGen:codegen \ + Play--Framework:framework \ + Play-Dependencies:dependencies \ + filesystem:ghc_filesystem +GH_TAGNAME= 5fead001e7a46babef38cf563eaa9bbbe1e96bf0 \ + 8ca5b79e03d1ce0780494bbfb994b56abc1eabcb:codegen \ + 77caebd7a980ed60b9a44067268b285cc083a242:framework \ + 4acd7535c57772ff11efbe6a50b4e17deca7656c:dependencies \ + 3605e869150032ffdd9eae3db93e12f8711a0c82:ghc_filesystem +GH_SUBDIR= deps/CodeGen:codegen \ + deps/Framework:framework \ + deps/Dependencies:dependencies \ + deps/Dependencies/ghc_filesystem:ghc_filesystem + +PLIST_FILES= lib/libretro/play_libretro.so + +CMAKE_ON= BUILD_LIBRETRO_CORE +CMAKE_OFF= BUILD_AOT_CACHE \ + BUILD_PLAY \ + BUILD_PSFPLAYER \ + BUILD_TESTS \ + ENABLE_AMAZON_S3 +CMAKE_ARGS= -DSHORT_HASH=${GH_TAGNAME_DEFAULT} + +post-patch: + # Do not call git on configure. + @${REINPLACE_CMD} -e 's|execute_process(COMMAND git rev-parse.*|set(SHORT_HASH_RESULT 0)|g' \ + ${WRKSRC}/CMakeLists.txt + # Fix CMake error: Cannot specify compile options for target + # "PUBLIC" which is not built by this project. + @${REINPLACE_CMD} -e 's|target_compile_options(PUBLIC|add_compile_options(|g' \ + ${WRKSRC}/Source/CMakeLists.txt + # Unneded -static append. + @${REINPLACE_CMD} -e 's|list(APPEND PROJECT_LIBS "-static.*||g' \ + ${WRKSRC}/Source/ui_libretro/CMakeLists.txt + # Do not set CXX inside CMake files. + @${REINPLACE_CMD} -e 's|set(CMAKE_CXX_STANDARD.*||g' \ + ${WRKSRC}/deps/Dependencies/cmake-modules/Header.cmake \ + ${WRKSRC}/deps/Dependencies/ghc_filesystem/CMakeLists.txt \ + ${WRKSRC}/deps/Framework/build_cmake/Framework_Common.cmake \ + ${WRKSRC}/deps/CodeGen/build_cmake/CMakeLists.txt + +do-install: + ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro; + ${INSTALL_LIB} $$(find ${WRKDIR}/.build -name "*.so") ${STAGEDIR}/${PREFIX}/lib/libretro; + +.include Index: games/libretro-play/distinfo =================================================================== --- /dev/null +++ games/libretro-play/distinfo @@ -0,0 +1,11 @@ +TIMESTAMP = 1590166287 +SHA256 (jpd002-Play--0.30.0-5fead001e7a46babef38cf563eaa9bbbe1e96bf0_GH0.tar.gz) = df953440d102daaa83e1ac04c6a0edbcfa273033b59d8d2281d3613c698589fc +SIZE (jpd002-Play--0.30.0-5fead001e7a46babef38cf563eaa9bbbe1e96bf0_GH0.tar.gz) = 1775350 +SHA256 (jpd002-Play--CodeGen-8ca5b79e03d1ce0780494bbfb994b56abc1eabcb_GH0.tar.gz) = 7df102ec47b2afb8ef291ecbccd75f56633db64326013655156e64efcef8d437 +SIZE (jpd002-Play--CodeGen-8ca5b79e03d1ce0780494bbfb994b56abc1eabcb_GH0.tar.gz) = 264453 +SHA256 (jpd002-Play--Framework-77caebd7a980ed60b9a44067268b285cc083a242_GH0.tar.gz) = 88f343d3ccbf33280df000687ac1fe10863e7b8aff65dde7b5cc83bc920c88a4 +SIZE (jpd002-Play--Framework-77caebd7a980ed60b9a44067268b285cc083a242_GH0.tar.gz) = 173897 +SHA256 (jpd002-Play-Dependencies-4acd7535c57772ff11efbe6a50b4e17deca7656c_GH0.tar.gz) = 6c5d25cedd51ec9941408edcbff1aaa4c83a0acaca94c33c7a85f6493a990656 +SIZE (jpd002-Play-Dependencies-4acd7535c57772ff11efbe6a50b4e17deca7656c_GH0.tar.gz) = 4948345 +SHA256 (gulrak-filesystem-3605e869150032ffdd9eae3db93e12f8711a0c82_GH0.tar.gz) = ee85f27d11fc446ea7b742b91b531e53dac5f2a86e30d2dc0eee86dc0f4b4e70 +SIZE (gulrak-filesystem-3605e869150032ffdd9eae3db93e12f8711a0c82_GH0.tar.gz) = 162569 Index: games/libretro-play/pkg-descr =================================================================== --- /dev/null +++ games/libretro-play/pkg-descr @@ -0,0 +1,7 @@ +Play! is a PlayStation 2 emulator for Windows, macOS, UNIX, +Android & iOS platforms. + +Game capability tracker: https://github.com/jpd002/Play-Compatibility/issues + + +WWW: https://purei.org/