pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/libretro-picodrive emulators/libretro-picodr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f7bee8713845
branches:  trunk
changeset: 383712:f7bee8713845
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Aug 08 22:14:20 2018 +0000

description:
emulators/libretro-picodrive: Update to 20180722.

According to picodrive's author, the code is unsuitable for big endian
platforms. Libretro doesn't provide Picodrive binaries for any of their
supported big endian platforms (mostly PowerPC games consoles). Instead,
they provide Genesis Plus GX, which I shall add to pkgsrc soon(TM).

For now, disable building libretro-picodrive on big endian.

No upstream changelog, unfortunately.

diffstat:

 emulators/libretro-picodrive/Makefile                        |  51 +++++++++--
 emulators/libretro-picodrive/distinfo                        |  11 +-
 emulators/libretro-picodrive/patches/patch-Makefile.libretro |  16 +++
 3 files changed, 62 insertions(+), 16 deletions(-)

diffs (105 lines):

diff -r f2581c8803ce -r f7bee8713845 emulators/libretro-picodrive/Makefile
--- a/emulators/libretro-picodrive/Makefile     Wed Aug 08 20:56:20 2018 +0000
+++ b/emulators/libretro-picodrive/Makefile     Wed Aug 08 22:14:20 2018 +0000
@@ -1,25 +1,54 @@
-# $NetBSD: Makefile,v 1.2 2015/02/05 16:57:53 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2018/08/08 22:14:20 nia Exp $
 
-DISTNAME=      picodrive-libretro-20150203
-PKGNAME=       libretro-picodrive-20150203
+DISTNAME=      libretro-picodrive-20180722
 CATEGORIES=    emulators
-MASTER_SITES=  http://ftp.NetBSD.org/pub/NetBSD/misc/jmcneill/retroarch/
-EXTRACT_SUFX=  .zip
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libretro/}
+GITHUB_PROJECT=        picodrive
+GITHUB_TAG=    2db90628f5f29f1d4030172ce4f57ab757fa9d93
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/libretro/picodrive
+HOMEPAGE=      https://docs.libretro.com/library/picodrive/
 COMMENT=       Fast MegaDrive/MegaCD/32X emulator
 LICENSE=       picodrive-license
 
-WRKSRC=                ${WRKDIR}/picodrive
+EXTRACT_USING= bsdtar
 MAKE_FILE=     Makefile.libretro
 USE_TOOLS+=    gmake
 
-.if !empty(MACHINE_ARCH:M*armv6*)
-MAKE_ENV+=     HAVE_ARMV6=1
-.endif
+MAKE_FLAGS+=   GIT_VERSION="-pkgsrc"
+
+.include "../../mk/bsd.prefs.mk"
+
+NOT_FOR_PLATFORM=      ${BIGENDIANPLATFORMS}
+
 .if !empty(MACHINE_ARCH:M*armv7*)
-MAKE_ENV+=     HAVE_ARMV7=1
+# Avoid mixing in Thumb code with Picodrive's ARM asm.
+CFLAGS+=               -marm
+BUILD_MAKE_FLAGS+=     ARCH=arm
+BUILD_MAKE_FLAGS+=     ARM_ASM=1
+BUILD_MAKE_FLAGS+=     use_cyclone=0
+BUILD_MAKE_FLAGS+=     use_fame=1
+BUILD_MAKE_FLAGS+=     use_drz80=0
+BUILD_MAKE_FLAGS+=     use_cz80=1
+BUILD_MAKE_FLAGS+=     use_sh2drc=1
+BUILD_MAKE_FLAGS+=     use_svpdrc=1
+.elif !empty(MACHINE_ARCH:M*armv6*)
+CFLAGS+=               -marm
+BUILD_MAKE_FLAGS+=     ARCH=arm
+BUILD_MAKE_FLAGS+=     ARM_ASM=1
+BUILD_MAKE_FLAGS+=     asm_memory=1
+BUILD_MAKE_FLAGS+=     asm_render=1
+BUILD_MAKE_FLAGS+=     asm_ym2612=1
+BUILD_MAKE_FLAGS+=     asm_misc=1
+BUILD_MAKE_FLAGS+=     asm_cdpico=1
+BUILD_MAKE_FLAGS+=     asm_cdmemory=1
+BUILD_MAKE_FLAGS+=     asm_mix=1
+BUILD_MAKE_FLAGS+=     use_cyclone=0
+BUILD_MAKE_FLAGS+=     use_fame=0
+BUILD_MAKE_FLAGS+=     use_drz80=1
+BUILD_MAKE_FLAGS+=     use_cz80=0
+BUILD_MAKE_FLAGS+=     use_sh2drc=1
+BUILD_MAKE_FLAGS+=     use_svpdrc=1
 .endif
 
 INSTALLATION_DIRS+=    ${PREFIX}/lib/libretro
diff -r f2581c8803ce -r f7bee8713845 emulators/libretro-picodrive/distinfo
--- a/emulators/libretro-picodrive/distinfo     Wed Aug 08 20:56:20 2018 +0000
+++ b/emulators/libretro-picodrive/distinfo     Wed Aug 08 22:14:20 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 20:30:59 agc Exp $
+$NetBSD: distinfo,v 1.3 2018/08/08 22:14:20 nia Exp $
 
-SHA1 (picodrive-libretro-20150203.zip) = 4be392f3b5a0f3c8b8fbd3fbdb31301bc0c4ee4e
-RMD160 (picodrive-libretro-20150203.zip) = 98401b5992a38dceaa5f6e90f168969bdb0d8baf
-SHA512 (picodrive-libretro-20150203.zip) = 56c1184c30ebad04deaad9a4bc72276adaa50fac7b80e1a63fd91c1a9c06352bfa28db43cba8f92b84feffc487b6f43af7287970c0eaecdab3a1b0fe4cbdc942
-Size (picodrive-libretro-20150203.zip) = 1681676 bytes
+SHA1 (libretro-picodrive-20180722-2db90628f5f29f1d4030172ce4f57ab757fa9d93.tar.gz) = 61b5269de3b1f36f22f13f4d2626bf5bd25b2690
+RMD160 (libretro-picodrive-20180722-2db90628f5f29f1d4030172ce4f57ab757fa9d93.tar.gz) = 40a1b55c0e3f96cdf84aca88b03e4e2492915dea
+SHA512 (libretro-picodrive-20180722-2db90628f5f29f1d4030172ce4f57ab757fa9d93.tar.gz) = 
3241fd627a2a506f2e01241a2cef0635dc2efb1598a8c538809f7c104b3de20629b76342a2223bcff958def5cf71b1da5cc0f136879374339a1067170439035c
+Size (libretro-picodrive-20180722-2db90628f5f29f1d4030172ce4f57ab757fa9d93.tar.gz) = 1411113 bytes
+SHA1 (patch-Makefile.libretro) = 883b434e5c549d3ae855162ed8f5b3ff0bed9c7e
diff -r f2581c8803ce -r f7bee8713845 emulators/libretro-picodrive/patches/patch-Makefile.libretro
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-picodrive/patches/patch-Makefile.libretro      Wed Aug 08 22:14:20 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile.libretro,v 1.1 2018/08/08 22:14:20 nia Exp $
+
+Picodrive is written in C. Let's link with a C compiler instead of
+a C++ compiler.
+
+--- Makefile.libretro.orig     2018-07-22 20:01:05.000000000 +0000
++++ Makefile.libretro
+@@ -656,7 +656,7 @@ else
+       LD = link.exe
+ endif
+ else
+-      LD = $(CXX)
++      LD = $(CC)
+ endif
+ 
+ include Makefile



Home | Main Index | Thread Index | Old Index