1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/emulators/rpcs3/Makefile

87 lines
2.9 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= rpcs3
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.4-234
DISTVERSIONSUFFIX= -gc951601fa
CATEGORIES= emulators
MAINTAINER= jbeich@FreeBSD.org
COMMENT= PS3 emulator/debugger
LICENSE= BSD3CLAUSE BSL GPLv2 MIT ZLIB
LICENSE_COMB= multi
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
LIB_DEPENDS= libpng.so:graphics/png \
libavcodec.so:multimedia/ffmpeg
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= requires int128 and SSE2
USE_GITHUB= yes
GH_ACCOUNT= RPCS3
GH_TUPLE= RPCS3:hidapi:hidapi-0.8.0-rc1-25-gca39ce8:hidapi/3rdparty/hidapi \
RPCS3:yaml-cpp:release-0.5.3-62-g017626a:yamlcpp/Utilities/yaml-cpp \
akrzemi1:Optional:f27e790:Optional/3rdparty/Optional \
kobalicek:asmjit:673dcef:asmjit/asmjit \
Microsoft:GSL:fc5fce4:GSL/3rdparty/GSL \
USCiLab:cereal:v1.2.0:cereal/3rdparty/cereal \
zeux:pugixml:v1.8.1-148-g257fbb4:pugixml/3rdparty/pugixml
USES= cmake compiler:c++14-lang iconv:wchar_t localbase:ldflags \
openal:soft pkgconfig
USE_GL= gl glew
USE_QT5= qmake_build buildtools_build core dbus gui network widgets
USE_XORG= x11
EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL}}
EXTRA_PATCHES_FreeBSD_10.3= ${PATCHDIR}/extra-patch-no-thread_local
CONFIGURE_ENV+= TRAVIS=1 # XXX Rename to be less generic
CMAKE_ON= CMAKE_SKIP_RPATH USE_SYSTEM_FFMPEG USE_SYSTEM_LIBPNG
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 \
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
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
EVDEV_DESC= libevdev-based joystick support
EVDEV_CMAKE_BOOL= USE_LIBEVDEV
EVDEV_LIB_DEPENDS= libevdev.so:devel/libevdev
GDB_DESC= GDB remote stub (powerpc64 target)
GDB_CMAKE_BOOL= WITH_GDB
LLVM_DESC= LLVM-based PPU recompiler
LLVM_BUILD_DEPENDS= llvm40>0:devel/llvm40
LLVM_CMAKE_BOOL_OFF= WITHOUT_LLVM
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_CMAKE_BOOL= USE_PULSE
VULKAN_DESC= Vulkan renderer
2017-09-20 20:43:39 +00:00
VULKAN_BUILD_DEPENDS= ${LOCALBASE}/lib/libglslang.a:devel/glslang
VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-sdk
2017-09-20 20:45:47 +00:00
VULKAN_CMAKE_BOOL= USE_VULKAN VULKAN_PREBUILT
post-patch:
@${REINPLACE_CMD} -e '/GIT_BRANCH/s/unknown/master/' \
-e '/GIT_VERSION/s/unknown/${GH_TAGNAME:C/[^-]*-//}/' \
${WRKSRC}/${PORTNAME}/git-version.cmake
.include <bsd.port.mk>