2016-10-10 22:15:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= citra
|
2020-12-08 01:48:44 +01:00
|
|
|
PORTVERSION= s20201207
|
2020-12-06 01:10:25 +01:00
|
|
|
PORTREVISION?= 0
|
2016-10-10 22:15:36 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Nintendo 3DS emulator/debugger
|
|
|
|
|
2019-02-09 11:14:13 +01:00
|
|
|
LICENSE= BSD2CLAUSE BSD3CLAUSE BSL GPLv2+ ISCL LGPL21+ MIT OpenSSL UNLICENSE
|
2016-10-10 22:15:36 +02:00
|
|
|
LICENSE_COMB= multi
|
2017-06-14 00:49:09 +02:00
|
|
|
LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/externals/fmt/LICENSE.rst
|
2016-10-10 22:15:36 +02:00
|
|
|
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/externals/inih/inih/LICENSE.txt
|
2017-06-14 00:49:09 +02:00
|
|
|
LICENSE_FILE_BSL= ${WRKSRC}/externals/catch/LICENSE.txt
|
2016-10-10 22:15:36 +02:00
|
|
|
LICENSE_FILE_GPLv2+ = ${WRKSRC}/license.txt
|
2019-02-09 11:14:13 +01:00
|
|
|
LICENSE_FILE_ISCL= ${WRKSRC}/externals/cubeb/LICENSE
|
2017-02-22 03:29:29 +01:00
|
|
|
LICENSE_FILE_LGPL21+ = ${_LICENSE_STORE}/LGPL21 # soundtouch
|
2019-02-09 11:14:13 +01:00
|
|
|
LICENSE_FILE_MIT= ${WRKSRC}/externals/enet/LICENSE
|
|
|
|
LICENSE_FILE_OpenSSL= ${WRKSRC}/externals/libressl/COPYING
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2020-10-02 23:58:51 +02:00
|
|
|
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs
|
|
|
|
|
2016-10-10 22:15:36 +02:00
|
|
|
USE_GITHUB= yes
|
2017-03-05 09:13:28 +01:00
|
|
|
GH_ACCOUNT= citra-emu
|
2020-12-08 01:48:44 +01:00
|
|
|
GH_TAGNAME= 3f13e1cc2
|
2020-04-19 02:22:06 +02:00
|
|
|
GH_TUPLE= citra-emu:ext-boost:36603a1:boost/externals/boost \
|
|
|
|
citra-emu:ext-libressl-portable:7d01cb0:libressl/externals/libressl \
|
2018-06-09 02:25:29 +02:00
|
|
|
citra-emu:ext-soundtouch:060181e:soundtouch/externals/soundtouch \
|
2020-12-06 01:10:25 +01:00
|
|
|
MerryMage:dynarmic:r3-85-g58abdcce:dynarmic/externals/dynarmic \
|
2019-09-17 00:53:21 +02:00
|
|
|
arsenm:sanitizers-cmake:aab6948:sanitizers_cmake/externals/cubeb/cmake/sanitizers-cmake \
|
2018-12-23 01:54:44 +01:00
|
|
|
arun11299:cpp-jwt:v1.1.1:cpp_jwt/externals/cpp-jwt \
|
2020-11-26 01:30:40 +01:00
|
|
|
benhoyt:inih:r52:inih/externals/inih/inih \
|
2018-08-25 00:31:59 +02:00
|
|
|
catchorg:Catch2:v2.3.0:catch/externals/catch \
|
2020-01-19 01:58:43 +01:00
|
|
|
facebook:zstd:v1.4.4:zstd/externals/zstd \
|
2019-10-08 02:48:20 +02:00
|
|
|
fmtlib:fmt:6.0.0-56-g4b8f8fac:fmt/externals/fmt \
|
2020-08-30 02:49:53 +02:00
|
|
|
herumi:xbyak:v5.95:xbyak/externals/xbyak \
|
2020-12-03 01:43:03 +01:00
|
|
|
kinetiknz:cubeb:cubeb-0.2-1291-g5c2cf26:cubeb/externals/cubeb \
|
2019-07-01 01:51:56 +02:00
|
|
|
lsalzman:enet:0eaf48e:enet/externals/enet \
|
2019-11-12 01:58:42 +01:00
|
|
|
lvandeve:lodepng:31d9704:lodepng/externals/lodepng/lodepng \
|
2018-01-20 01:22:37 +01:00
|
|
|
neobrain:nihstro:fd69de1:nihstro/externals/nihstro \
|
2018-09-25 01:12:37 +02:00
|
|
|
weidai11:cryptopp:CRYPTOPP_7_0_0-23-gf320e7d9:cryptopp/externals/cryptopp/cryptopp \
|
2020-06-14 02:47:17 +02:00
|
|
|
wwylele:teakra:3e032a7:teakra/externals/teakra
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2020-11-14 01:21:04 +01:00
|
|
|
USES= cmake compiler:c++17-lang localbase:ldflags sdl
|
2017-08-09 20:41:01 +02:00
|
|
|
USE_SDL= sdl2
|
2020-10-02 23:58:51 +02:00
|
|
|
CMAKE_ON= USE_SYSTEM_BOOST
|
2018-05-11 23:48:30 +02:00
|
|
|
LDFLAGS+= -Wl,--as-needed # Qt5Network
|
2018-06-02 19:13:04 +02:00
|
|
|
TEST_TARGET= test
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2019-04-04 02:33:50 +02:00
|
|
|
OPTIONS_DEFINE= ALSA FFMPEG PULSEAUDIO JACK SNDIO
|
2020-08-21 20:56:52 +02:00
|
|
|
OPTIONS_DEFAULT=FFMPEG PULSEAUDIO JACK SNDIO
|
2016-10-10 22:15:36 +02:00
|
|
|
OPTIONS_MULTI= GUI
|
|
|
|
OPTIONS_MULTI_GUI= QT5 SDL
|
|
|
|
OPTIONS_SLAVE?= SDL
|
|
|
|
OPTIONS_EXCLUDE:= ${OPTIONS_MULTI_GUI}
|
|
|
|
|
2019-09-07 22:53:21 +02:00
|
|
|
ALSA_BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib
|
2018-06-02 18:50:02 +02:00
|
|
|
ALSA_CMAKE_BOOL= USE_ALSA
|
2018-06-02 02:33:13 +02:00
|
|
|
|
2019-04-04 02:33:50 +02:00
|
|
|
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
2019-08-21 19:51:19 +02:00
|
|
|
FFMPEG_CMAKE_BOOL= ENABLE_FFMPEG_AUDIO_DECODER ENABLE_FFMPEG_VIDEO_DUMPER
|
2019-04-04 02:33:50 +02:00
|
|
|
|
2018-06-02 02:33:13 +02:00
|
|
|
JACK_BUILD_DEPENDS= jackit>0:audio/jack
|
|
|
|
JACK_CMAKE_BOOL= USE_JACK
|
|
|
|
|
2019-09-07 22:53:30 +02:00
|
|
|
PULSEAUDIO_BUILD_DEPENDS=pulseaudio>0:audio/pulseaudio
|
2018-06-02 02:33:13 +02:00
|
|
|
PULSEAUDIO_CMAKE_BOOL= USE_PULSE
|
|
|
|
|
2019-09-07 22:53:21 +02:00
|
|
|
SNDIO_BUILD_DEPENDS= sndio>0:audio/sndio
|
2018-06-02 18:50:02 +02:00
|
|
|
SNDIO_CMAKE_BOOL= USE_SNDIO
|
2018-06-02 02:33:13 +02:00
|
|
|
|
2016-10-10 22:15:36 +02:00
|
|
|
SDL_CMAKE_BOOL= ENABLE_SDL2
|
2016-12-15 20:54:17 +01:00
|
|
|
SDL_PLIST_FILES=bin/${PORTNAME} \
|
2018-03-12 23:13:35 +01:00
|
|
|
bin/${PORTNAME}-room \
|
2020-01-20 03:01:42 +01:00
|
|
|
share/man/man6/${PORTNAME}.6.gz
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2018-06-28 19:39:53 +02:00
|
|
|
QT5_USES= desktop-file-utils qt:5 shared-mime-info
|
2020-11-14 01:21:04 +01:00
|
|
|
QT5_USE= QT=qmake_build,buildtools_build,linguisttools_build,concurrent_build,core,gui,multimedia,widgets
|
2020-11-14 01:20:59 +01:00
|
|
|
QT5_CMAKE_BOOL= ENABLE_QT ENABLE_QT_TRANSLATION
|
2016-10-10 22:15:36 +02:00
|
|
|
QT5_PLIST_FILES=bin/${PORTNAME}-qt \
|
2018-03-12 23:13:35 +01:00
|
|
|
"@comment bin/${PORTNAME}-room" \
|
2016-10-10 22:15:36 +02:00
|
|
|
share/applications/${PORTNAME}.desktop \
|
2017-11-17 21:47:52 +01:00
|
|
|
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
|
2020-01-20 03:01:42 +01:00
|
|
|
share/man/man6/${PORTNAME}-qt.6.gz \
|
2017-11-17 21:47:52 +01:00
|
|
|
share/mime/packages/${PORTNAME}.xml
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2016-11-01 02:28:21 +01:00
|
|
|
post-patch:
|
2020-01-20 03:01:42 +01:00
|
|
|
@${REINPLACE_CMD} -e '/check_submodules_present()/d' \
|
2016-12-15 20:54:17 +01:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
2016-11-01 02:28:21 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/@GIT_BRANCH@/master/' \
|
|
|
|
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
|
|
|
|
${WRKSRC}/src/common/scm_rev.cpp.in
|
|
|
|
|
2016-10-10 22:15:36 +02:00
|
|
|
.include <bsd.port.mk>
|