pkgsrc-WIP-changes archive

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

libretro-mame2014: Import libretro-mame2014-20170316 as wip/libretro-mame2014



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Thu May 11 00:22:39 2017 +0100
Changeset:	47435216aa97864d10c1aa52acededf849f0d22c

Modified Files:
	Makefile
Added Files:
	libretro-mame2014/DESCR
	libretro-mame2014/Makefile
	libretro-mame2014/PLIST
	libretro-mame2014/distinfo
	libretro-mame2014/patches/patch-Makefile

Log Message:
libretro-mame2014: Import libretro-mame2014-20170316 as wip/libretro-mame2014

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.

MAME is the  Multiple Arcade Machine Emulator. This is based on version 0.159
with backported patches for performance and compatibility improvements.

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

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

diffstat:
 Makefile                                 |  1 +
 libretro-mame2014/DESCR                  |  8 ++++++
 libretro-mame2014/Makefile               | 47 ++++++++++++++++++++++++++++++++
 libretro-mame2014/PLIST                  |  2 ++
 libretro-mame2014/distinfo               |  7 +++++
 libretro-mame2014/patches/patch-Makefile | 22 +++++++++++++++
 6 files changed, 87 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index fc36bf344f..cb3d176b59 100644
--- a/Makefile
+++ b/Makefile
@@ -1714,6 +1714,7 @@ SUBDIR+=	libretro-fceumm
 SUBDIR+=	libretro-fuse
 SUBDIR+=	libretro-gambatte
 SUBDIR+=	libretro-mame2003
+SUBDIR+=	libretro-mame2014
 SUBDIR+=	libretro-mednafen-ngp
 SUBDIR+=	libretro-mednafen-pce-fast
 SUBDIR+=	libretro-mednafen-wswan
diff --git a/libretro-mame2014/DESCR b/libretro-mame2014/DESCR
new file mode 100644
index 0000000000..cdab718cfb
--- /dev/null
+++ b/libretro-mame2014/DESCR
@@ -0,0 +1,8 @@
+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.
+
+MAME is the  Multiple Arcade Machine Emulator. This is based on version 0.159
+with backported patches for performance and compatibility improvements.
diff --git a/libretro-mame2014/Makefile b/libretro-mame2014/Makefile
new file mode 100644
index 0000000000..994b55bb21
--- /dev/null
+++ b/libretro-mame2014/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD$
+
+DISTNAME=	libretro-mame2014-20170316
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
+COMMENT=	Libretro core based on the Multiple Arcade Machine Emulator (v0.159)
+LICENSE=	no-commercial-use
+
+GITHUB_PROJECT=	mame2014-libretro
+GITHUB_TAG=	87b2f8cc16c2cac7075595ee8a122e1e36b12ae0
+
+EXTRACT_SUFX=	.zip
+
+USE_TOOLS=	gmake
+
+USE_LANGUAGES=	c c++
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+CFLAGS+=	-DSDLMAME_LINUX
+.elif ${OPSYS} == "NetBSD"
+CFLAGS+=	-DSDLMAME_NETBSD -DSDLMAME_BSD
+.elif ${OPSYS} == "Haiku"
+CFLAGS+=	-DSDLMAME_HAIKU
+.else
+CFLAGS+=	-DSDLMAME_BSD
+.endif
+
+.if ${OPSYS} != "Linux"
+CFLAGS+=	-DNO_AFFINITY_NP
+.endif
+
+.if !empty(MACHINE_ARCH:M*arm*)
+CFLAGS+=	-DSDLMAME_ARM
+.endif
+
+PYTHON_FOR_BUILD_ONLY=	yes
+
+INSTALLATION_DIRS+=	${PREFIX}/lib/libretro
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/mame2014_libretro.so \
+	    ${DESTDIR}${PREFIX}/lib/libretro/mame2014_libretro.so
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libretro-mame2014/PLIST b/libretro-mame2014/PLIST
new file mode 100644
index 0000000000..6aeeb5435b
--- /dev/null
+++ b/libretro-mame2014/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/libretro/mame2014_libretro.so
diff --git a/libretro-mame2014/distinfo b/libretro-mame2014/distinfo
new file mode 100644
index 0000000000..9ae5c1880b
--- /dev/null
+++ b/libretro-mame2014/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 4ac089c5bcd28a896fb3ba201cb67b2e498f5a6c
+RMD160 (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 74c6635373cb1518dcd2efaddfc87af471ff3b7c
+SHA512 (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 63fd147a37f36671324cb90d9987cd2de9337e623aa0387e8a6f135c871f8a915e76c4bed2c28db16b45824beb6abb35bb6d64e832388689932d66092b8aaf42
+Size (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 53870810 bytes
+SHA1 (patch-Makefile) = 9f59427598171177f53ba0434e6c8a4febf0868c
diff --git a/libretro-mame2014/patches/patch-Makefile b/libretro-mame2014/patches/patch-Makefile
new file mode 100644
index 0000000000..4755a9876b
--- /dev/null
+++ b/libretro-mame2014/patches/patch-Makefile
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Avoid linuxisms.
+
+--- Makefile.orig	2017-03-16 20:39:20.000000000 +0000
++++ Makefile
+@@ -135,13 +135,13 @@ ifneq (,$(findstring unix,$(platform)))
+    REALCC ?= gcc
+    NATIVECC ?= g++
+    NATIVECFLAGS ?= -std=gnu99
+-   BASELIBS += -lpthread
++   BASELIBS += -pthread
+    CXX ?= g++
+    #workaround for mame bug (c++ in .c files)
+    CC := $(CXX)
+    AR ?= @ar
+    LD := $(CXX)
+-   LIBS += -lstdc++ -lpthread -ldl
++   LIBS += -pthread
+    ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64)
+       PTR64 = 1
+    endif


Home | Main Index | Thread Index | Old Index