1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/emulators/citra/Makefile
2021-09-21 00:51:08 +00:00

93 lines
3.3 KiB
Makefile

PORTNAME= citra
PORTVERSION= s20210920
PORTREVISION?= 0
CATEGORIES= emulators
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Nintendo 3DS emulator/debugger
LICENSE= BSD2CLAUSE BSD3CLAUSE BSL GPLv2+ ISCL LGPL21+ MIT OpenSSL UNLICENSE
LICENSE_COMB= multi
LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/externals/fmt/LICENSE.rst
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/externals/inih/inih/LICENSE.txt
LICENSE_FILE_BSL= ${WRKSRC}/externals/catch/LICENSE.txt
LICENSE_FILE_GPLv2+ = ${WRKSRC}/license.txt
LICENSE_FILE_ISCL= ${WRKSRC}/externals/cubeb/LICENSE
LICENSE_FILE_LGPL21+ = ${_LICENSE_STORE}/LGPL21 # soundtouch
LICENSE_FILE_MIT= ${WRKSRC}/externals/enet/LICENSE
LICENSE_FILE_OpenSSL= ${WRKSRC}/externals/libressl/COPYING
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
USE_GITHUB= yes
GH_ACCOUNT= citra-emu
GH_TAGNAME= 19617f7ed
GH_TUPLE= citra-emu:ext-boost:36603a1:boost/externals/boost \
citra-emu:ext-libressl-portable:7d01cb0:libressl/externals/libressl \
citra-emu:ext-soundtouch:060181e:soundtouch/externals/soundtouch \
MerryMage:dynarmic:r3-219-g71e3553d:dynarmic/externals/dynarmic \
arsenm:sanitizers-cmake:aab6948:sanitizers_cmake/externals/cubeb/cmake/sanitizers-cmake \
arun11299:cpp-jwt:v1.1.1:cpp_jwt/externals/cpp-jwt \
benhoyt:inih:r52:inih/externals/inih/inih \
catchorg:Catch2:v2.13.4:catch/externals/catch \
facebook:zstd:v1.4.8:zstd/externals/zstd \
fmtlib:fmt:7.1.2:fmt/externals/fmt \
herumi:xbyak:v5.96:xbyak/externals/xbyak \
kinetiknz:cubeb:cubeb-0.2-1298-g8d53747:cubeb/externals/cubeb \
lsalzman:enet:0eaf48e:enet/externals/enet \
lvandeve:lodepng:31d9704:lodepng/externals/lodepng/lodepng \
neobrain:nihstro:fd69de1:nihstro/externals/nihstro \
weidai11:cryptopp:CRYPTOPP_7_0_0-23-gf320e7d9:cryptopp/externals/cryptopp/cryptopp \
wwylele:teakra:3e032a7:teakra/externals/teakra
USES= cmake:testing compiler:c++17-lang localbase:ldflags sdl
USE_SDL= sdl2
CMAKE_ON= USE_SYSTEM_BOOST Boost_USE_STATIC_LIBS
LDFLAGS+= -Wl,--as-needed # Qt5Network
OPTIONS_DEFINE= ALSA FFMPEG PULSEAUDIO JACK SNDIO
OPTIONS_DEFAULT=FFMPEG PULSEAUDIO JACK SNDIO
OPTIONS_MULTI= GUI
OPTIONS_MULTI_GUI= QT5 SDL
OPTIONS_SLAVE?= SDL
OPTIONS_EXCLUDE:= ${OPTIONS_MULTI_GUI}
ALSA_BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib
ALSA_CMAKE_BOOL= USE_ALSA
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CMAKE_BOOL= ENABLE_FFMPEG_AUDIO_DECODER ENABLE_FFMPEG_VIDEO_DUMPER
JACK_BUILD_DEPENDS= jackit>0:audio/jack
JACK_CMAKE_BOOL= USE_JACK
PULSEAUDIO_BUILD_DEPENDS=pulseaudio>0:audio/pulseaudio
PULSEAUDIO_CMAKE_BOOL= USE_PULSE
SNDIO_BUILD_DEPENDS= sndio>0:audio/sndio
SNDIO_CMAKE_BOOL= USE_SNDIO
SDL_CMAKE_BOOL= ENABLE_SDL2
SDL_PLIST_FILES=bin/${PORTNAME} \
bin/${PORTNAME}-room \
share/man/man6/${PORTNAME}.6.gz
QT5_USES= desktop-file-utils qt:5 shared-mime-info
QT5_USE= QT=qmake_build,buildtools_build,linguisttools_build,concurrent_build,core,gui,multimedia,widgets
QT5_CMAKE_BOOL= ENABLE_QT ENABLE_QT_TRANSLATION
QT5_PLIST_FILES=bin/${PORTNAME}-qt \
"@comment bin/${PORTNAME}-room" \
share/applications/${PORTNAME}.desktop \
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
share/man/man6/${PORTNAME}-qt.6.gz \
share/mime/packages/${PORTNAME}.xml
post-patch:
@${REINPLACE_CMD} -e '/check_submodules_present()/d' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's/@GIT_BRANCH@/master/' \
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
${WRKSRC}/src/common/scm_rev.cpp.in
.include <bsd.port.mk>