Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/libretro-pcsx-rearmed libretro-pcsx-rearmed:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92eb5fec654d
branches:  trunk
changeset: 433368:92eb5fec654d
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jun 01 17:41:02 2020 +0000

description:
libretro-pcsx-rearmed: enable dynarec on non-arm, don't vendor libflac

diffstat:

 emulators/libretro-pcsx-rearmed/Makefile               |  10 +++-
 emulators/libretro-pcsx-rearmed/distinfo               |   3 +-
 emulators/libretro-pcsx-rearmed/patches/patch-Makefile |  47 ++++++++++++++++++
 3 files changed, 57 insertions(+), 3 deletions(-)

diffs (100 lines):

diff -r 94ea284f5725 -r 92eb5fec654d emulators/libretro-pcsx-rearmed/Makefile
--- a/emulators/libretro-pcsx-rearmed/Makefile  Mon Jun 01 16:28:11 2020 +0000
+++ b/emulators/libretro-pcsx-rearmed/Makefile  Mon Jun 01 17:41:02 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2020/05/30 14:49:00 nia Exp $
+# $NetBSD: Makefile,v 1.12 2020/06/01 17:41:02 nia Exp $
 
 DISTNAME=      libretro-pcsx-rearmed-20200526
+PKGREVISION=   1
 CATEGORIES=    emulators
 GITHUB_PROJECT=        pcsx_rearmed
 GITHUB_TAG=    7973b25fe929f92e146a854ecaf4f3cea5b4ffb8
@@ -13,6 +14,8 @@
 USE_LANGUAGES= c c++
 MAKE_FILE=     Makefile.libretro
 
+LDFLAGS+=      -lFLAC
+
 MAKE_FLAGS+=   WANT_ZLIB=0 # disable vendored zlib
 
 .include "../../mk/bsd.prefs.mk"
@@ -27,11 +30,14 @@
 MAKE_FLAGS+=   DYNAREC=ari64
 MAKE_FLAGS+=   HAVE_NEON=0
 MAKE_FLAGS+=   BUILTIN_GPU=peops
+.else
+MAKE_FLAGS+=   DYNAREC=lightrec
+MAKE_FLAGS+=   BUILTIN_GPU=peops
 .endif
 
 LIBRETRO_CORE= pcsx_rearmed
 
 .include "../../emulators/retroarch/core.mk"
-
+.include "../../audio/flac/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 94ea284f5725 -r 92eb5fec654d emulators/libretro-pcsx-rearmed/distinfo
--- a/emulators/libretro-pcsx-rearmed/distinfo  Mon Jun 01 16:28:11 2020 +0000
+++ b/emulators/libretro-pcsx-rearmed/distinfo  Mon Jun 01 17:41:02 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2020/05/30 14:49:00 nia Exp $
+$NetBSD: distinfo,v 1.7 2020/06/01 17:41:02 nia Exp $
 
 SHA1 (libretro-pcsx-rearmed-20200526-7973b25fe929f92e146a854ecaf4f3cea5b4ffb8.tar.gz) = dd07cdb90a432d3626147ae8901fdfd8489f883a
 RMD160 (libretro-pcsx-rearmed-20200526-7973b25fe929f92e146a854ecaf4f3cea5b4ffb8.tar.gz) = dace80b932044463eb0cf6fc0c9eb5917f5c030b
 SHA512 (libretro-pcsx-rearmed-20200526-7973b25fe929f92e146a854ecaf4f3cea5b4ffb8.tar.gz) = 
bd8c2e5ca9d434005790767d3a4a2d7bc86deb1ca272ef73676c99a0cacb1dd92e843732d4f3455f77d0bce4666953befef7a108a616e8a4b2ff752deeef4e69
 Size (libretro-pcsx-rearmed-20200526-7973b25fe929f92e146a854ecaf4f3cea5b4ffb8.tar.gz) = 2278331 bytes
+SHA1 (patch-Makefile) = 2fa7c2c4127c3a688aaa2e62981a5c89436e29b4
diff -r 94ea284f5725 -r 92eb5fec654d emulators/libretro-pcsx-rearmed/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-pcsx-rearmed/patches/patch-Makefile    Mon Jun 01 17:41:02 2020 +0000
@@ -0,0 +1,47 @@
+$NetBSD: patch-Makefile,v 1.1 2020/06/01 17:41:02 nia Exp $
+
+Don't use bundled deps.
+
+--- Makefile.orig      2020-05-26 15:40:04.000000000 +0000
++++ Makefile
+@@ -202,26 +202,6 @@ ifeq "$(HAVE_CHD)" "1"
+ CFLAGS += -Ideps/libchdr
+ OBJS += deps/crypto/md5.o
+ OBJS += deps/crypto/sha1.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/bitmath.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/bitreader.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/cpu.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/crc.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/fixed.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/fixed_intrin_sse2.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/fixed_intrin_ssse3.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/float.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/format.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/lpc.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/lpc_intrin_avx2.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/lpc_intrin_sse2.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/lpc_intrin_sse41.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/lpc_intrin_sse.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/md5.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/memory.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/metadata_iterators.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/metadata_object.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/stream_decoder.o
+-OBJS += deps/flac-1.3.2/src/libFLAC/window.o
+ OBJS += deps/lzma-16.04/C/Alloc.o
+ OBJS += deps/lzma-16.04/C/Bra86.o
+ OBJS += deps/lzma-16.04/C/Bra.o
+@@ -243,12 +223,11 @@ OBJS += deps/libchdr/huffman.o
+ 
+ ifneq (,$(findstring win,$(platform)))
+   CFLAGS += -DHAVE_FSEEKO
+-  OBJS += deps/flac-1.3.2/src/libFLAC/windows_unicode_filenames.o
+ else
+   CFLAGS += -DHAVE_SYS_PARAM_H
+ endif
+ 
+-CFLAGS += -Ideps/crypto -Ideps/flac-1.3.2/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/flac-1.3.2/src/libFLAC/include -Ideps/lzma-16.04/C
++CFLAGS += -Ideps/crypto -Ideps/lzma-16.04/C
+ CFLAGS += -DHAVE_CHD -D'PACKAGE_VERSION="1.3.2"' -DFLAC__HAS_OGG=0 -DFLAC__NO_DLL -DHAVE_LROUND -DHAVE_STDINT_H -DHAVE_STDLIB_H -DFLAC__NO_DLL -D_7ZIP_ST
+ LDFLAGS += -lm
+ endif



Home | Main Index | Thread Index | Old Index