2017-06-19 20:47:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rpcs3
|
|
|
|
DISTVERSIONPREFIX= v
|
2018-01-13 00:52:36 +00:00
|
|
|
DISTVERSION= 0.0.4-234
|
|
|
|
DISTVERSIONSUFFIX= -gc951601fa
|
2017-06-19 20:47:00 +00:00
|
|
|
CATEGORIES= emulators
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= PS3 emulator/debugger
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE BSL GPLv2 MIT ZLIB
|
|
|
|
LICENSE_COMB= multi
|
2017-10-13 23:30:21 +00:00
|
|
|
LICENSE_FILE_BSD3CLAUSE=${WRKSRC_cereal}/LICENSE
|
|
|
|
LICENSE_FILE_BSL= ${WRKSRC_Optional}/LICENSE
|
|
|
|
LICENSE_FILE_MIT= ${WRKSRC_GSL}/LICENSE
|
|
|
|
LICENSE_FILE_ZLIB= ${WRKSRC_asmjit}/LICENSE.md
|
2017-06-19 20:47:00 +00:00
|
|
|
|
2017-06-24 19:38:03 +00:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
2017-06-19 20:47:00 +00:00
|
|
|
libavcodec.so:multimedia/ffmpeg
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64
|
2017-12-20 23:13:51 +00:00
|
|
|
ONLY_FOR_ARCHS_REASON= requires int128 and SSE2
|
2017-06-19 20:47:00 +00:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= RPCS3
|
2017-08-09 00:59:03 +00:00
|
|
|
GH_TUPLE= RPCS3:hidapi:hidapi-0.8.0-rc1-25-gca39ce8:hidapi/3rdparty/hidapi \
|
2017-06-19 20:47:00 +00:00
|
|
|
RPCS3:yaml-cpp:release-0.5.3-62-g017626a:yamlcpp/Utilities/yaml-cpp \
|
2017-10-13 23:30:21 +00:00
|
|
|
akrzemi1:Optional:f27e790:Optional/3rdparty/Optional \
|
2017-12-20 23:13:51 +00:00
|
|
|
kobalicek:asmjit:673dcef:asmjit/asmjit \
|
2017-06-19 20:47:00 +00:00
|
|
|
Microsoft:GSL:fc5fce4:GSL/3rdparty/GSL \
|
2017-11-20 20:03:21 +00:00
|
|
|
USCiLab:cereal:v1.2.0:cereal/3rdparty/cereal \
|
|
|
|
zeux:pugixml:v1.8.1-148-g257fbb4:pugixml/3rdparty/pugixml
|
2017-06-19 20:47:00 +00:00
|
|
|
|
|
|
|
USES= cmake compiler:c++14-lang iconv:wchar_t localbase:ldflags \
|
|
|
|
openal:soft pkgconfig
|
|
|
|
USE_GL= gl glew
|
2017-12-07 00:57:08 +00:00
|
|
|
USE_QT5= qmake_build buildtools_build core dbus gui network widgets
|
2017-09-20 19:04:01 +00:00
|
|
|
USE_XORG= x11
|
2017-08-25 00:00:54 +00:00
|
|
|
EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL}}
|
|
|
|
EXTRA_PATCHES_FreeBSD_10.3= ${PATCHDIR}/extra-patch-no-thread_local
|
2017-12-20 23:13:51 +00:00
|
|
|
CONFIGURE_ENV+= TRAVIS=1 # XXX Rename to be less generic
|
2018-01-01 13:42:54 +00:00
|
|
|
CMAKE_ON= CMAKE_SKIP_RPATH USE_SYSTEM_FFMPEG USE_SYSTEM_LIBPNG
|
2017-06-19 20:47:00 +00:00
|
|
|
CXXFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528
|
|
|
|
CXXFLAGS+= -Wno-macro-redefined # __STDC_*_MACROS sys/cdefs.h vs. llvm-config
|
|
|
|
LDFLAGS+= -Wl,--as-needed # GLU
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
share/applications/${PORTNAME}.desktop \
|
|
|
|
share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
|
|
|
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
|
|
|
|
|
2017-09-20 19:04:01 +00:00
|
|
|
OPTIONS_DEFINE= ALSA EVDEV GDB LLVM PULSEAUDIO VULKAN
|
|
|
|
OPTIONS_DEFAULT=ALSA LLVM VULKAN
|
|
|
|
.if !exists(${.CURDIR:H:H}/graphics/vulkan-sdk)
|
|
|
|
OPTIONS_EXCLUDE=VULKAN # XXX ports/222175
|
|
|
|
.endif
|
2017-08-06 02:25:13 +00:00
|
|
|
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
|
|
|
|
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
|
|
|
|
ALSA_CMAKE_BOOL= USE_ALSA
|
2017-06-24 19:38:03 +00:00
|
|
|
|
2017-07-27 21:33:44 +00:00
|
|
|
EVDEV_DESC= libevdev-based joystick support
|
|
|
|
EVDEV_CMAKE_BOOL= USE_LIBEVDEV
|
|
|
|
EVDEV_LIB_DEPENDS= libevdev.so:devel/libevdev
|
|
|
|
|
2017-06-24 19:38:03 +00:00
|
|
|
GDB_DESC= GDB remote stub (powerpc64 target)
|
|
|
|
GDB_CMAKE_BOOL= WITH_GDB
|
|
|
|
|
|
|
|
LLVM_DESC= LLVM-based PPU recompiler
|
2017-07-27 21:33:44 +00:00
|
|
|
LLVM_BUILD_DEPENDS= llvm40>0:devel/llvm40
|
2017-06-24 19:38:03 +00:00
|
|
|
LLVM_CMAKE_BOOL_OFF= WITHOUT_LLVM
|
|
|
|
|
2017-08-25 00:00:54 +00:00
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
|
|
|
|
PULSEAUDIO_CMAKE_BOOL= USE_PULSE
|
|
|
|
|
2017-09-20 19:04:01 +00:00
|
|
|
VULKAN_DESC= Vulkan renderer
|
2017-09-20 20:43:39 +00:00
|
|
|
VULKAN_BUILD_DEPENDS= ${LOCALBASE}/lib/libglslang.a:devel/glslang
|
2017-09-20 19:04:01 +00:00
|
|
|
VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-sdk
|
2017-09-20 20:45:47 +00:00
|
|
|
VULKAN_CMAKE_BOOL= USE_VULKAN VULKAN_PREBUILT
|
2017-09-20 19:04:01 +00:00
|
|
|
|
2017-06-19 20:47:00 +00:00
|
|
|
post-patch:
|
2017-09-20 19:04:01 +00:00
|
|
|
@${REINPLACE_CMD} -e '/GIT_BRANCH/s/unknown/master/' \
|
|
|
|
-e '/GIT_VERSION/s/unknown/${GH_TAGNAME:C/[^-]*-//}/' \
|
2017-06-19 20:47:00 +00:00
|
|
|
${WRKSRC}/${PORTNAME}/git-version.cmake
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|