pkgsrc-WIP-changes archive

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

libretro-picodrive: Enable the Cyclone M68K CPU core on ARM



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Mon Jun 5 01:19:41 2017 +0100
Changeset:	fc06c0023d68501af6c68db6c79269e5c1df8766

Modified Files:
	libretro-picodrive/Makefile
	libretro-picodrive/distinfo
Added Files:
	libretro-picodrive/files/Cyclone.s.gz

Log Message:
libretro-picodrive: Enable the Cyclone M68K CPU core on ARM

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

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

diffstat:
 libretro-picodrive/Makefile           |  36 ++++++++++++++++++++++++++--------
 libretro-picodrive/distinfo           |  12 ++++++++----
 libretro-picodrive/files/Cyclone.s.gz | Bin 0 -> 103074 bytes
 3 files changed, 36 insertions(+), 12 deletions(-)

diffs:
diff --git a/libretro-picodrive/Makefile b/libretro-picodrive/Makefile
index 31ad69c8a2..9c6f71c0f6 100644
--- a/libretro-picodrive/Makefile
+++ b/libretro-picodrive/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.2 2015/02/05 16:57:53 wiz Exp $
 
-DISTNAME=	libretro-picodrive-20170418
+PKGNAME=	libretro-picodrive-20170418
 CATEGORIES=	emulators
 MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
 
@@ -9,14 +9,27 @@ HOMEPAGE=	https://wiki.libretro.com/index.php?title=PicoDrive
 COMMENT=	Fast MegaDrive/MegaCD/32X emulator
 LICENSE=	picodrive-license
 
-GITHUB_PROJECT=	picodrive
-GITHUB_TAG=	cbc93b68dca1d72882d07b54bbe1ef25b980558a
+PICODRIVE_TAG=	cbc93b68dca1d72882d07b54bbe1ef25b980558a
+CYCLONE_TAG=	355815ebb5b1c60916f66d043a43f3af7839589f
 
+DISTFILES+=	${PICODRIVE_TAG}.tar.gz
+SITES.${PICODRIVE_TAG}.tar.gz= \
+	${MASTER_SITE_GITHUB:=libretro/picodrive/archive/}
+
+DISTFILES+=	${CYCLONE_TAG}.tar.gz
+SITES.${CYCLONE_TAG}.tar.gz= \
+	${MASTER_SITE_GITHUB:=notaz/cyclone68000/archive/}
+
+WRKSRC=		${WRKDIR}/picodrive-${PICODRIVE_TAG}
 MAKE_FILE=	Makefile.libretro
 USE_TOOLS+=	gmake
 
 .include "../../mk/bsd.fast.prefs.mk"
 
+NOT_FOR_PLATFORM=	${BIGENDIANPLATFORMS}
+
+INSTALLATION_DIRS+=	${PREFIX}/lib/libretro
+
 .if !empty(MACHINE_ARCH:M*arm*)
 BUILD_MAKE_FLAGS+=	ARCH=arm
 BUILD_MAKE_FLAGS+=	asm_memory=1
@@ -26,17 +39,24 @@ BUILD_MAKE_FLAGS+=	asm_misc=1
 BUILD_MAKE_FLAGS+=	asm_cdpico=0
 BUILD_MAKE_FLAGS+=	asm_cdmemory=1
 BUILD_MAKE_FLAGS+=	asm_mix=1
-BUILD_MAKE_FLAGS+=	use_cyclone=0
-BUILD_MAKE_FLAGS+=	use_fame=1
+BUILD_MAKE_FLAGS+=	use_cyclone=1
+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
 
-NOT_FOR_PLATFORM+=	${BIGENDIANPLATFORMS}
+USE_TOOLS+=		gzcat
 
-INSTALLATION_DIRS+=	${PREFIX}/lib/libretro
+# Cyclone.s is pre-generated because the default build process needs to
+# build a generation program, and the toolchain might not be set up to
+# properly build programs for the host machine. To regenerate
+# ${FILESDIR}/Cyclone.s.gz, go to ${WRKSRC}/cpu/cyclone, then do this:
+# `gmake CONFIG_FILE=../cyclone_config.h && gzip Cyclone.s`
+post-extract:
+	${MV} ${WRKDIR}/cyclone68000-${CYCLONE_TAG}/* ${WRKSRC}/cpu/cyclone
+	${GZCAT} ${FILESDIR}/Cyclone.s.gz >${WRKSRC}/cpu/cyclone/Cyclone.s
+.endif
 
 do-install:
 	${INSTALL_LIB} ${WRKSRC}/picodrive_libretro.so \
diff --git a/libretro-picodrive/distinfo b/libretro-picodrive/distinfo
index 498818288c..d0748eb6ad 100644
--- a/libretro-picodrive/distinfo
+++ b/libretro-picodrive/distinfo
@@ -1,6 +1,10 @@
 $NetBSD: distinfo,v 1.2 2015/11/03 20:30:59 agc Exp $
 
-SHA1 (libretro-picodrive-20170418-cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = d03188e6ac54f33b7714450a0b1c6a973232b7b3
-RMD160 (libretro-picodrive-20170418-cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = c406dd15fd8db07c80b7e16d007092afd3b97b94
-SHA512 (libretro-picodrive-20170418-cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = 5bee0a017a1d2257692460211abf0fa9ce69c8e0b9d2f84e685f76a22487f826e84381d6c1d4dd678edcbce565e44601d71c5fc6c5fa358ebf544b9b2ed1141a
-Size (libretro-picodrive-20170418-cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = 1382599 bytes
+SHA1 (355815ebb5b1c60916f66d043a43f3af7839589f.tar.gz) = b1e6568c3d43887a3148d7129f9f8b104c7befef
+RMD160 (355815ebb5b1c60916f66d043a43f3af7839589f.tar.gz) = 6401abb3af0668c41f6e87469502f9370a106945
+SHA512 (355815ebb5b1c60916f66d043a43f3af7839589f.tar.gz) = 98643f43574707c403dd6ccb65507b1f21ca7a8af713257097c9a752386dd3e78960d45b2b6c595f716c71afa26431d3cd97899d89e48110b8cc668c5b89271d
+Size (355815ebb5b1c60916f66d043a43f3af7839589f.tar.gz) = 63902 bytes
+SHA1 (cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = d03188e6ac54f33b7714450a0b1c6a973232b7b3
+RMD160 (cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = c406dd15fd8db07c80b7e16d007092afd3b97b94
+SHA512 (cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = 5bee0a017a1d2257692460211abf0fa9ce69c8e0b9d2f84e685f76a22487f826e84381d6c1d4dd678edcbce565e44601d71c5fc6c5fa358ebf544b9b2ed1141a
+Size (cbc93b68dca1d72882d07b54bbe1ef25b980558a.tar.gz) = 1382599 bytes
diff --git a/libretro-picodrive/files/Cyclone.s.gz b/libretro-picodrive/files/Cyclone.s.gz
new file mode 100644
index 0000000000..68318be54c
Binary files /dev/null and b/libretro-picodrive/files/Cyclone.s.gz differ


Home | Main Index | Thread Index | Old Index