2016-10-10 22:15:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= citra
|
2018-01-18 01:57:55 +01:00
|
|
|
PORTVERSION= s20180118
|
2018-01-18 05:11:02 +01:00
|
|
|
PORTREVISION?= 1
|
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
|
|
|
|
2017-07-15 21:08:23 +02:00
|
|
|
BUILD_DEPENDS= boost-libs>=1.63:devel/boost-libs
|
2016-10-10 22:15:36 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
|
|
|
|
# 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-01-18 01:57:55 +01:00
|
|
|
GH_TAGNAME= 93cca23d
|
2017-09-03 19:37:52 +02:00
|
|
|
GH_TUPLE= citra-emu:ext-soundtouch:019d208:soundtouch/externals/soundtouch \
|
2017-12-08 23:06:09 +01:00
|
|
|
MerryMage:dynarmic:4110494:dynarmic/externals/dynarmic \
|
2017-12-05 01:12:57 +01:00
|
|
|
benhoyt:inih:r40:inih/externals/inih/inih \
|
|
|
|
catchorg:Catch2:v2.0.1:catch/externals/catch \
|
2017-11-06 01:44:04 +01:00
|
|
|
fmtlib:fmt:4.0.0:fmt/externals/fmt \
|
|
|
|
herumi:xbyak:v5.53-1-gc5da377:xbyak/externals/xbyak \
|
2017-07-15 21:08:23 +02:00
|
|
|
lsalzman:enet:a84c120:enet/externals/enet \
|
2017-02-22 03:29:29 +01:00
|
|
|
neobrain:nihstro:7e24743:nihstro/externals/nihstro \
|
2017-09-03 19:37:52 +02:00
|
|
|
weidai11:cryptopp:CRYPTOPP_5_6_5-610-g24bc2b8: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
|
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
|
|
|
|
|
2017-10-01 01:58:00 +02:00
|
|
|
OPTIONS_DEFINE= CURL
|
|
|
|
OPTIONS_DEFAULT=CURL
|
2016-10-10 22:15:36 +02:00
|
|
|
OPTIONS_MULTI= GUI
|
|
|
|
OPTIONS_MULTI_GUI= QT5 SDL
|
|
|
|
OPTIONS_SLAVE?= SDL
|
|
|
|
OPTIONS_EXCLUDE:= ${OPTIONS_MULTI_GUI}
|
|
|
|
|
2017-10-01 01:58:00 +02:00
|
|
|
CURL_GH_TUPLE= whoshuu:cpr:1.3.0-12-gb5758fb:cpr/externals/cpr
|
|
|
|
CURL_LIB_DEPENDS=libcurl.so:ftp/curl
|
|
|
|
CURL_CMAKE_BOOL=ENABLE_WEB_SERVICE USE_SYSTEM_CURL
|
|
|
|
|
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} \
|
|
|
|
man/man6/${PORTNAME}.6.gz
|
2016-10-10 22:15:36 +02:00
|
|
|
|
|
|
|
QT5_USES= desktop-file-utils shared-mime-info
|
2017-12-05 01:12:57 +01:00
|
|
|
QT5_USE= QT5=qmake_build,buildtools_build,concurrent_build,core,gui,opengl,widgets
|
2016-10-10 22:15:36 +02:00
|
|
|
QT5_CMAKE_BOOL= ENABLE_QT
|
|
|
|
QT5_PLIST_FILES=bin/${PORTNAME}-qt \
|
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>
|