pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libretro-citra: Import libretro-citra-20180227



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Wed Feb 28 00:48:10 2018 +0000
Changeset:	aee5ec5c9cbb94ccb5802fff68cd0229e49799ca

Modified Files:
	Makefile
Added Files:
	libretro-citra/DESCR
	libretro-citra/Makefile
	libretro-citra/PLIST
	libretro-citra/distinfo
	libretro-citra/patches/patch-externals_dynarmic_CMakeLists.txt

Log Message:
libretro-citra: Import libretro-citra-20180227

Libretro is a simple but powerful development interface that allows for
the easy creation of emulators, games and multimedia applications that
can plug straight into any libretro-compatible frontend. This development
interface is open to others so that they can run these pluggable emulator
and game cores also in their own programs or devices.

Citra is a work-in-progress Nintendo 3DS emulator started in early
2014. Citra can currently emulate, with varying degrees of success,
a wide variety of different homebrew applications and commercial software.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=aee5ec5c9cbb94ccb5802fff68cd0229e49799ca

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |   1 +
 libretro-citra/DESCR                               |   9 ++
 libretro-citra/Makefile                            | 117 +++++++++++++++++++++
 libretro-citra/PLIST                               |   2 +
 libretro-citra/distinfo                            |  51 +++++++++
 .../patch-externals_dynarmic_CMakeLists.txt        |  20 ++++
 6 files changed, 200 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0e987c5243..7d060c6803 100644
--- a/Makefile
+++ b/Makefile
@@ -1824,6 +1824,7 @@ SUBDIR+=	libretro-bsnes-mercury
 SUBDIR+=	libretro-bsnes-mercury-accuracy
 SUBDIR+=	libretro-bsnes-mercury-performance
 SUBDIR+=	libretro-cap32
+SUBDIR+=	libretro-citra
 SUBDIR+=	libretro-core-info
 SUBDIR+=	libretro-database
 SUBDIR+=	libretro-desmume
diff --git a/libretro-citra/DESCR b/libretro-citra/DESCR
new file mode 100644
index 0000000000..1c8641f2c5
--- /dev/null
+++ b/libretro-citra/DESCR
@@ -0,0 +1,9 @@
+Libretro is a simple but powerful development interface that allows for
+the easy creation of emulators, games and multimedia applications that
+can plug straight into any libretro-compatible frontend. This development
+interface is open to others so that they can run these pluggable emulator
+and game cores also in their own programs or devices.
+
+Citra is a work-in-progress Nintendo 3DS emulator started in early
+2014. Citra can currently emulate, with varying degrees of success,
+a wide variety of different homebrew applications and commercial software.
diff --git a/libretro-citra/Makefile b/libretro-citra/Makefile
new file mode 100644
index 0000000000..2027265458
--- /dev/null
+++ b/libretro-citra/Makefile
@@ -0,0 +1,117 @@
+# $NetBSD$
+
+PKGNAME=	libretro-citra-20180227
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
+
+HOMEPAGE=	https://docs.libretro.com/library/citra/
+COMMENT=	Libretro core based on the Citra Nintendo 3DS emulator
+LICENSE=	gnu-gpl-v2
+
+CITRA_TAG=	9b6f6a96fa8e6203e912f52b757155420cb00cbd
+BOOST_TAG=	7310c95e2320ed262b0600315fa2f762c4b6cc54
+CATCH_TAG=	62dae592c330ab74cea30c897255ee9518639c3f
+CPR_TAG=	b5758fbc88021437f968fe5174f121b8b92f5d5c
+CRYPTOPP_TAG=	b6c6684451f925ab2e0b99acbaf66fd487ebfbd5
+DYNARMIC_TAG=	d1d4705364031512cb89333aebc00b8d75a2f732
+ENET_TAG=	39a72ab1990014eb399cee9d538fd529df99c6a0
+FMT_TAG=	ac5484c4e7365b59d8c7e14db6778de26635e428
+INIH_TAG=	56edbbbef9ba432521442ee47ba7d1c8de37e63d
+NIHSTRO_TAG=	fd69de1a1b960ec296cc67d32257b0f9e2d89ac6
+SOUNDTOUCH_TAG=	019d2089bbadf70d73ba85aa8ea51490b071262c
+XBYAK_TAG=	c5da3778e7f84013fe8c26fcf18a67881bd1e825
+
+DISTFILES+=	${CITRA_TAG}.tar.gz
+DISTFILES+=	${BOOST_TAG}.tar.gz
+DISTFILES+=	${CATCH_TAG}.tar.gz
+DISTFILES+=	${CPR_TAG}.tar.gz
+DISTFILES+=	${CRYPTOPP_TAG}.tar.gz
+DISTFILES+=	${DYNARMIC_TAG}.tar.gz
+DISTFILES+=	${ENET_TAG}.tar.gz
+DISTFILES+=	${FMT_TAG}.tar.gz
+DISTFILES+=	${INIH_TAG}.tar.gz
+DISTFILES+=	${NIHSTRO_TAG}.tar.gz
+DISTFILES+=	${SOUNDTOUCH_TAG}.tar.gz
+DISTFILES+=	${XBYAK_TAG}.tar.gz
+
+SITES.${CITRA_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=libretro/citra/archive/}
+
+SITES.${BOOST_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=citra-emu/ext-boost/archive/}
+
+SITES.${CATCH_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=philsquared/Catch2/archive/}
+
+SITES.${CPR_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=whoshuu/cpr/archive/}
+
+SITES.${CRYPTOPP_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=weidai11/cryptopp/archive/}
+
+SITES.${DYNARMIC_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=MerryMage/dynarmic/archive/}
+
+SITES.${ENET_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=lsalzman/enet/archive/}
+
+SITES.${FMT_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=fmtlib/fmt/archive/}
+
+SITES.${INIH_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=benhoyt/inih/archive/}
+
+SITES.${NIHSTRO_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=neobrain/nihstro/archive/}
+
+SITES.${SOUNDTOUCH_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=citra-emu/ext-soundtouch/archive/}
+
+SITES.${XBYAK_TAG}.tar.gz= \
+    ${MASTER_SITE_GITHUB:=herumi/xbyak/archive/}
+
+WRKSRC=		${WRKDIR}/citra-${CITRA_TAG}
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++14
+USE_TOOLS=	gmake
+
+CMAKE_ARGS+=	-DENABLE_SDL2=OFF
+CMAKE_ARGS+=	-DENABLE_QT=OFF
+CMAKE_ARGS+=	-DENABLE_LIBRETRO=ON
+CMAKE_ARGS+=	-DENABLE_WEB_SERVICE=OFF
+
+INSTALLATION_DIRS+=	${PREFIX}/lib/libretro
+
+post-extract:
+	# Move git submodules into their correct locations.
+	# .git files are created to fool cmake.
+	${MV} ${WRKDIR}/Catch2-${CATCH_TAG}/* ${WRKSRC}/externals/catch/
+	${TOUCH} ${WRKSRC}/externals/catch/.git
+	${MV} ${WRKDIR}/cryptopp-${CRYPTOPP_TAG}/* ${WRKSRC}/externals/cryptopp/cryptopp/
+	${TOUCH} ${WRKSRC}/externals/cryptopp/cryptopp/.git
+	${MV} ${WRKDIR}/cpr-${CPR_TAG}/* ${WRKSRC}/externals/cpr/
+	${TOUCH} ${WRKSRC}/externals/cpr/.git
+	${MV} ${WRKDIR}/dynarmic-${DYNARMIC_TAG}/* ${WRKSRC}/externals/dynarmic/
+	${TOUCH} ${WRKSRC}/externals/dynarmic/.git
+	${MV} ${WRKDIR}/enet-${ENET_TAG}/* ${WRKSRC}/externals/enet/
+	${TOUCH} ${WRKSRC}/externals/enet/.git
+	${MV} ${WRKDIR}/ext-boost-${BOOST_TAG}/* ${WRKSRC}/externals/boost/
+	${TOUCH} ${WRKSRC}/externals/boost/.git
+	${MV} ${WRKDIR}/ext-soundtouch-${SOUNDTOUCH_TAG}/* ${WRKSRC}/externals/soundtouch/
+	${TOUCH} ${WRKSRC}/externals/soundtouch/.git
+	${MV} ${WRKDIR}/fmt-${FMT_TAG}/* ${WRKSRC}/externals/fmt/
+	${TOUCH} ${WRKSRC}/externals/fmt/.git
+	${MV} ${WRKDIR}/inih-${INIH_TAG}/* ${WRKSRC}/externals/inih/inih/
+	${TOUCH} ${WRKSRC}/externals/inih/inih/.git
+	${MV} ${WRKDIR}/nihstro-${NIHSTRO_TAG}/* ${WRKSRC}/externals/nihstro/
+	${TOUCH} ${WRKSRC}/externals/nihstro/.git
+	${MV} ${WRKDIR}/xbyak-${XBYAK_TAG}/* ${WRKSRC}/externals/xbyak/
+	${TOUCH} ${WRKSRC}/externals/xbyak/.git
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/src/citra_libretro/citra_libretro.so \
+	    ${DESTDIR}${PREFIX}/lib/libretro/citra_libretro.so
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libretro-citra/PLIST b/libretro-citra/PLIST
new file mode 100644
index 0000000000..0a29a4dfe1
--- /dev/null
+++ b/libretro-citra/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/libretro/citra_libretro.so
diff --git a/libretro-citra/distinfo b/libretro-citra/distinfo
new file mode 100644
index 0000000000..9fed3ad71f
--- /dev/null
+++ b/libretro-citra/distinfo
@@ -0,0 +1,51 @@
+$NetBSD$
+
+SHA1 (019d2089bbadf70d73ba85aa8ea51490b071262c.tar.gz) = 72a624151d1ea416ba063ab1abb49fcde24796a6
+RMD160 (019d2089bbadf70d73ba85aa8ea51490b071262c.tar.gz) = 0ed42dbc4c25c796d680cdd34f7dac9692a9f4b2
+SHA512 (019d2089bbadf70d73ba85aa8ea51490b071262c.tar.gz) = 194d941d291c0bad7079b9a0526a11392e831d897f1a2a7e45eb7ea6c4e98dfba3ed45a0627fad38c9d0c05ea148cce4747ae6da8c74a1140b2c4dac3d882800
+Size (019d2089bbadf70d73ba85aa8ea51490b071262c.tar.gz) = 59382 bytes
+SHA1 (39a72ab1990014eb399cee9d538fd529df99c6a0.tar.gz) = 2562b7573eca1d3219720f76c9693a26f428d130
+RMD160 (39a72ab1990014eb399cee9d538fd529df99c6a0.tar.gz) = 81fa787b9bed57862fd290385133bb413877d9e9
+SHA512 (39a72ab1990014eb399cee9d538fd529df99c6a0.tar.gz) = 0b70357629c4a4863c46c6e9a0a11e11b550cd4da56df50a318e564d2132acd4f6ad13e0a9369559dbcb84378f13ec9f28f92a0fc2e6f540f6ea3a685b9c6474
+Size (39a72ab1990014eb399cee9d538fd529df99c6a0.tar.gz) = 79580 bytes
+SHA1 (56edbbbef9ba432521442ee47ba7d1c8de37e63d.tar.gz) = edd67221998b7617c830f3a388f8e40b05eb0113
+RMD160 (56edbbbef9ba432521442ee47ba7d1c8de37e63d.tar.gz) = 22e2a74f9bd39c9ac76120995d1670247f9d8bbe
+SHA512 (56edbbbef9ba432521442ee47ba7d1c8de37e63d.tar.gz) = b6687ff9c56ec1f17f216764ae6134d89b44782fec1067ccc1e32b18bd270287744fd546f6744a1fd761f7e729333ebe262b5a5b27f8778be81c73ca8d8b9145
+Size (56edbbbef9ba432521442ee47ba7d1c8de37e63d.tar.gz) = 11438 bytes
+SHA1 (62dae592c330ab74cea30c897255ee9518639c3f.tar.gz) = 4e7fcfc32802fcfec80e5b3b11e4b92e71707701
+RMD160 (62dae592c330ab74cea30c897255ee9518639c3f.tar.gz) = 5aecef8ce7da426f0c24f0d58f8988fa560a3b52
+SHA512 (62dae592c330ab74cea30c897255ee9518639c3f.tar.gz) = c2ec71eecc1bf7cc687fce95513043450465b7c41acbda581e5bc421f9e7741cb9657b9baabaf66af3351d78702b7fbb2afc0b2389efa6f70c174e980099f9a3
+Size (62dae592c330ab74cea30c897255ee9518639c3f.tar.gz) = 481482 bytes
+SHA1 (7310c95e2320ed262b0600315fa2f762c4b6cc54.tar.gz) = 45d443c68e70885836f68d1fbb1cc0229b7d8bbd
+RMD160 (7310c95e2320ed262b0600315fa2f762c4b6cc54.tar.gz) = ce19ad02ede124c2b0cfbd2ac5225115b12ff8ea
+SHA512 (7310c95e2320ed262b0600315fa2f762c4b6cc54.tar.gz) = 9ef36c21cc37793462b3fb0d479e3b523beb83a0cd7bbbf882b53e2c732c31db239cda81bb4ef6da6ca7df6738e68a1d17d915d2dbe09402f948caf70cda415c
+Size (7310c95e2320ed262b0600315fa2f762c4b6cc54.tar.gz) = 1152595 bytes
+SHA1 (9b6f6a96fa8e6203e912f52b757155420cb00cbd.tar.gz) = 98fdd51d8dddee6719c53cc750c1532fef7b7f73
+RMD160 (9b6f6a96fa8e6203e912f52b757155420cb00cbd.tar.gz) = 290e932488d7f3bdae97a40a2293a61094363533
+SHA512 (9b6f6a96fa8e6203e912f52b757155420cb00cbd.tar.gz) = e95d7bc11920b952750d88c0fc02f5ebe83bc7353df7d37db8e9256c98c1b125f39d59900fad71a2d50da58249b20af75e4a4bd0698491ef922319d4607fa0f3
+Size (9b6f6a96fa8e6203e912f52b757155420cb00cbd.tar.gz) = 1715119 bytes
+SHA1 (ac5484c4e7365b59d8c7e14db6778de26635e428.tar.gz) = 3de642dcd5928295e9a5f9ec2c54d9ca61d7ae0e
+RMD160 (ac5484c4e7365b59d8c7e14db6778de26635e428.tar.gz) = d7ffad8bb12c872054e0262bf698611dedf609ef
+SHA512 (ac5484c4e7365b59d8c7e14db6778de26635e428.tar.gz) = 594c240780563aede0629cab80627f649448a42e203dd487e58d5b2ef19f07eab17111ca844e966754aa85239790b7fc4ea944ee1b02d27e121aa73edf2c8fdf
+Size (ac5484c4e7365b59d8c7e14db6778de26635e428.tar.gz) = 615830 bytes
+SHA1 (b5758fbc88021437f968fe5174f121b8b92f5d5c.tar.gz) = bd258457cf9eda387b53d5ba86ac61fd272ad4c4
+RMD160 (b5758fbc88021437f968fe5174f121b8b92f5d5c.tar.gz) = aae3985b616297ec09ec4f820a3851ae3cae6dc1
+SHA512 (b5758fbc88021437f968fe5174f121b8b92f5d5c.tar.gz) = 0f2984b379dd2e333d7f298f350b765a202c8e7e5ef29b0dcb398230dd0ad7da2df0f4c48fe76ea7b9239788877eb846c2265d6b76196a440c7047baf5dc0730
+Size (b5758fbc88021437f968fe5174f121b8b92f5d5c.tar.gz) = 34089 bytes
+SHA1 (b6c6684451f925ab2e0b99acbaf66fd487ebfbd5.tar.gz) = 28c4f7c4f85a01f7ffc5ca3e8985626d509eae5e
+RMD160 (b6c6684451f925ab2e0b99acbaf66fd487ebfbd5.tar.gz) = 42d8343565d65d01cdb61d1b13b0ae6d499ea84d
+SHA512 (b6c6684451f925ab2e0b99acbaf66fd487ebfbd5.tar.gz) = bcfa9f99e27971733f8b479b2852c33ad34a371fb23c536c14a9b28cff22eda902a3e28830fbed9716618bbfec4ff71d0f13ef99c4674a5b781d5fd616883f7b
+Size (b6c6684451f925ab2e0b99acbaf66fd487ebfbd5.tar.gz) = 7158249 bytes
+SHA1 (c5da3778e7f84013fe8c26fcf18a67881bd1e825.tar.gz) = b90a5a5f45f700d339be616a4747a31332157602
+RMD160 (c5da3778e7f84013fe8c26fcf18a67881bd1e825.tar.gz) = b9bbecf2a1089052114c1e660bfa00d77552d793
+SHA512 (c5da3778e7f84013fe8c26fcf18a67881bd1e825.tar.gz) = b2a30c495ed6f729610258518586e6db59516cdc9ea88849365caf6ccd50c8040488b69282d5f69cccd2dfe676d18ae9498bc46cfbdf22d0c4d3b12b12eff841
+Size (c5da3778e7f84013fe8c26fcf18a67881bd1e825.tar.gz) = 206988 bytes
+SHA1 (d1d4705364031512cb89333aebc00b8d75a2f732.tar.gz) = 58f9890bb696ec7e2f44b33b0e836853a3c2cd64
+RMD160 (d1d4705364031512cb89333aebc00b8d75a2f732.tar.gz) = 2ad78589db730c930f80217faf7ade1b6fa47d92
+SHA512 (d1d4705364031512cb89333aebc00b8d75a2f732.tar.gz) = 1fa34dc3f5e72a8ea4fa254a213047d19175181eac7eb0d95d96ebf638e184ea3733af749688f8f79dde061d1e9c9a1b3dd257c27675385fdc912bdb7e0fbbd6
+Size (d1d4705364031512cb89333aebc00b8d75a2f732.tar.gz) = 1249783 bytes
+SHA1 (fd69de1a1b960ec296cc67d32257b0f9e2d89ac6.tar.gz) = dbbdc48f92fc5ac57dda531014f7d7702b8f677d
+RMD160 (fd69de1a1b960ec296cc67d32257b0f9e2d89ac6.tar.gz) = 838221b759a27053745dc353b3a39aad64c4da87
+SHA512 (fd69de1a1b960ec296cc67d32257b0f9e2d89ac6.tar.gz) = 2bfe22a83054871ac5409fcb543eaa8199f874e04fccb5afdd5d45748a9b372415da034fd511df47144075cde29c06b0fbea80a6a78b4a5b76ea330a0a1330b5
+Size (fd69de1a1b960ec296cc67d32257b0f9e2d89ac6.tar.gz) = 110454 bytes
+SHA1 (patch-externals_dynarmic_CMakeLists.txt) = 6e1fe92e7a8793e45e6d4fcd009164be16c39a9c
diff --git a/libretro-citra/patches/patch-externals_dynarmic_CMakeLists.txt b/libretro-citra/patches/patch-externals_dynarmic_CMakeLists.txt
new file mode 100644
index 0000000000..cb999bfe1e
--- /dev/null
+++ b/libretro-citra/patches/patch-externals_dynarmic_CMakeLists.txt
@@ -0,0 +1,20 @@
+$NetBSD$
+
+If this check isn't disabled configure stops working.
+
+--- externals/dynarmic/CMakeLists.txt.orig	2017-12-12 15:22:23.000000000 +0000
++++ externals/dynarmic/CMakeLists.txt
+@@ -28,13 +28,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
+ # Warn on CMake API deprecations
+ set(CMAKE_WARN_DEPRECATED ON)
+ 
+-# Disable in-source builds
+-set(CMAKE_DISABLE_SOURCE_CHANGES ON)
+-set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
+-if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
+-    message(SEND_ERROR "In-source builds are not allowed.")
+-endif()
+-
+ # Add the module directory to the list of paths
+ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
+ 


Home | Main Index | Thread Index | Old Index