2016-10-10 22:15:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= citra
|
2018-05-26 02:53:40 +02:00
|
|
|
PORTVERSION= s20180525
|
2018-04-19 02:31:12 +02:00
|
|
|
PORTREVISION?= 0
|
2016-10-10 22:15:36 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Nintendo 3DS emulator/debugger
|
|
|
|
|
2017-07-15 21:14:04 +02:00
|
|
|
LICENSE= BSD2CLAUSE BSD3CLAUSE BSL GPLv2+ LGPL21+ MIT 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
|
2017-07-15 21:14:04 +02:00
|
|
|
LICENSE_FILE_MIT= ${WRKSRC}/externals/enet/LICENSE
|
2017-02-22 03:29:29 +01:00
|
|
|
LICENSE_FILE_LGPL21+ = ${_LICENSE_STORE}/LGPL21 # soundtouch
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2018-05-08 02:34:51 +02:00
|
|
|
BROKEN_FreeBSD_10= libc++ does not support C++17 features e.g., weak_from_this
|
|
|
|
|
2018-03-27 02:24:57 +02:00
|
|
|
BUILD_DEPENDS= boost-libs>=1.66:devel/boost-libs
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
# backend_x64/hostloc.h:93:8: fatal error: no type named 'Reg64' in namespace 'Xbyak'
|
2016-10-21 14:35:17 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= https://github.com/MerryMage/dynarmic/issues/35
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2017-03-05 09:13:28 +01:00
|
|
|
GH_ACCOUNT= citra-emu
|
2018-05-26 02:53:40 +02:00
|
|
|
GH_TAGNAME= 03209efe
|
2018-03-30 23:33:45 +02:00
|
|
|
GH_TUPLE= citra-emu:ext-libressl-portable:cbb1dca:libressl/externals/libressl \
|
2018-03-27 02:24:57 +02:00
|
|
|
citra-emu:ext-soundtouch:019d208:soundtouch/externals/soundtouch \
|
2018-02-03 01:44:00 +01:00
|
|
|
MerryMage:dynarmic:d1d4705:dynarmic/externals/dynarmic \
|
2017-12-05 01:12:57 +01:00
|
|
|
benhoyt:inih:r40:inih/externals/inih/inih \
|
2018-01-30 01:55:34 +01:00
|
|
|
catchorg:Catch2:v2.1.1:catch/externals/catch \
|
2018-04-07 02:18:16 +02:00
|
|
|
fmtlib:fmt:4.0.0-510-g5859e58:fmt/externals/fmt \
|
2018-05-26 02:53:40 +02:00
|
|
|
herumi:xbyak:v5.64:xbyak/externals/xbyak \
|
2018-01-20 01:22:37 +01:00
|
|
|
lsalzman:enet:39a72ab:enet/externals/enet \
|
|
|
|
neobrain:nihstro:fd69de1:nihstro/externals/nihstro \
|
2018-03-06 01:58:04 +01:00
|
|
|
weidai11:cryptopp:CRYPTOPP_6_1_0:cryptopp/externals/cryptopp/cryptopp
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
USES= cmake:outsource compiler:c++14-lang iconv localbase:ldflags
|
2017-08-09 20:41:01 +02:00
|
|
|
USE_SDL= sdl2
|
2018-02-17 00:40:56 +01:00
|
|
|
EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL:R}}
|
|
|
|
EXTRA_PATCHES_FreeBSD_10= ${PATCHDIR}/extra-patch-c++14
|
2016-10-10 22:15:36 +02:00
|
|
|
CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
|
|
|
|
-D_DECLARE_C99_LDBL_MATH # XXX ports/193528
|
2018-05-11 23:48:30 +02:00
|
|
|
LDFLAGS+= -Wl,--as-needed # Qt5Network
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
OPTIONS_MULTI= GUI
|
|
|
|
OPTIONS_MULTI_GUI= QT5 SDL
|
|
|
|
OPTIONS_SLAVE?= SDL
|
|
|
|
OPTIONS_EXCLUDE:= ${OPTIONS_MULTI_GUI}
|
|
|
|
|
|
|
|
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 \
|
2016-12-15 20:54:17 +01:00
|
|
|
man/man6/${PORTNAME}.6.gz
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
QT5_USES= desktop-file-utils shared-mime-info
|
2018-05-11 23:48:30 +02:00
|
|
|
QT5_USE= QT5=qmake_build,buildtools_build,concurrent_build,core,gui,multimedia,opengl,widgets
|
2016-10-10 22:15:36 +02:00
|
|
|
QT5_CMAKE_BOOL= ENABLE_QT
|
|
|
|
QT5_PLIST_FILES=bin/${PORTNAME}-qt \
|
2018-03-12 23:13:35 +01:00
|
|
|
"@comment bin/${PORTNAME}-room" \
|
2016-12-15 20:54:17 +01:00
|
|
|
man/man6/${PORTNAME}-qt.6.gz \
|
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 \
|
|
|
|
share/mime/packages/${PORTNAME}.xml
|
2016-10-10 22:15:36 +02:00
|
|
|
|
2016-11-01 02:28:21 +01:00
|
|
|
post-patch:
|
2016-12-15 20:54:17 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,share/man,man,' \
|
2017-08-09 20:41:26 +02:00
|
|
|
-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>
|