pkgsrc-WIP-changes archive

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

Add melonds.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Fri Aug 9 11:41:17 2019 +0100
Changeset:	b5e46f06944d9961b321d665d21cc22c9321e73f

Modified Files:
	Makefile
Added Files:
	melonds/DESCR
	melonds/Makefile
	melonds/PLIST
	melonds/TODO
	melonds/distinfo
	melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp

Log Message:
Add melonds.

TODO:

- Framerate limiting is broken
- Probably have to wait for this to become more stable
- Install .desktop and icon files
- Rename to melonDS...?

melonDS aims at providing fast and accurate Nintendo DS emulation. While it
is still a work in progress, it has a pretty solid set of features:

* Nearly complete core (CPU, video, audio, ...)
* OpenGL renderer, 3D upscaling
* RTC, microphone, lid close/open
* Joystick support
* Savestates
* Various display position/sizing/rotation modes
* (WIP) Wifi: local multiplayer, online connectivity
* and more are planned!

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

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

diffstat:
 Makefile                                           |  1 +
 melonds/DESCR                                      | 11 ++++++++
 melonds/Makefile                                   | 24 ++++++++++++++++
 melonds/PLIST                                      |  2 ++
 melonds/TODO                                       |  4 +++
 melonds/distinfo                                   |  7 +++++
 melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp | 33 ++++++++++++++++++++++
 7 files changed, 82 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 02ed99ab6c..f0397b8558 100644
--- a/Makefile
+++ b/Makefile
@@ -2189,6 +2189,7 @@ SUBDIR+=	meep-mpi
 SUBDIR+=	meep-openmpi
 SUBDIR+=	megaglest
 SUBDIR+=	meka-git
+SUBDIR+=	melonds
 SUBDIR+=	memdump
 SUBDIR+=	memgrep
 SUBDIR+=	menumaker
diff --git a/melonds/DESCR b/melonds/DESCR
new file mode 100644
index 0000000000..d50cffceab
--- /dev/null
+++ b/melonds/DESCR
@@ -0,0 +1,11 @@
+melonDS aims at providing fast and accurate Nintendo DS emulation. While it
+is still a work in progress, it has a pretty solid set of features:
+
+* Nearly complete core (CPU, video, audio, ...)
+* OpenGL renderer, 3D upscaling
+* RTC, microphone, lid close/open
+* Joystick support
+* Savestates
+* Various display position/sizing/rotation modes
+* (WIP) Wifi: local multiplayer, online connectivity
+* and more are planned!
diff --git a/melonds/Makefile b/melonds/Makefile
new file mode 100644
index 0000000000..7cd5e2cf08
--- /dev/null
+++ b/melonds/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	melonDS-0.8.2
+PKGNAME=	${DISTNAME:S/DS/ds/}
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Arisotura/}
+
+MAINTAINER=	nia%NetBSD.org@localhost
+HOMEPAGE=	http://melonds.kuribo64.net/
+COMMENT=	Nintendo DS emulator, sorta
+LICENSE=	gnu-gpl-v3
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++11
+
+# C++11
+GCC_REQD+=	4.8
+
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE="Release"
+CMAKE_ARGS+=	-DENABLE_LTO=OFF
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/melonds/PLIST b/melonds/PLIST
new file mode 100644
index 0000000000..1ba9e52ece
--- /dev/null
+++ b/melonds/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/melonDS
diff --git a/melonds/TODO b/melonds/TODO
new file mode 100644
index 0000000000..7b4169424b
--- /dev/null
+++ b/melonds/TODO
@@ -0,0 +1,4 @@
+- Framerate limiting is broken
+- Probably have to wait for this to become more stable
+- Install .desktop and icon files
+- Rename to melonDS...?
diff --git a/melonds/distinfo b/melonds/distinfo
new file mode 100644
index 0000000000..865c69f950
--- /dev/null
+++ b/melonds/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (melonDS-0.8.2.tar.gz) = 15451d8c6ffd6f060473782fc7b3fd89eebb2f03
+RMD160 (melonDS-0.8.2.tar.gz) = 284f49cf100723302419e24b3a172763f9fb1411
+SHA512 (melonDS-0.8.2.tar.gz) = 4c7e7bf2b78504b711235a8366a10e946a4c52d46e913ccf08dd7138adbda74a80af9dbc62645d4ba5b808861fbe3d30b32f9674a103a926410afb852c93ea34
+Size (melonDS-0.8.2.tar.gz) = 964182 bytes
+SHA1 (patch-src_libui__sdl_LAN__PCap.cpp) = 1fd806b6b446622e5d214091e96aac3d6eec8490
diff --git a/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp b/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp
new file mode 100644
index 0000000000..bd621ae964
--- /dev/null
+++ b/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp
@@ -0,0 +1,33 @@
+$NetBSD$
+
+Support non-Linux.
+
+--- src/libui_sdl/LAN_PCap.cpp.orig	2019-06-25 17:29:21.000000000 +0000
++++ src/libui_sdl/LAN_PCap.cpp
+@@ -33,8 +33,10 @@
+ 	#include <sys/types.h>
+ 	#include <ifaddrs.h>
+ 	#include <netinet/in.h>
++#ifdef __linux__
+ 	#include <linux/if_packet.h>
+ #endif
++#endif
+ 
+ 
+ // welp
+@@ -270,6 +272,7 @@ bool Init(bool open_adapter)
+                 struct sockaddr_in* sa = (sockaddr_in*)curaddr->ifa_addr;
+                 memcpy(adata->IP_v4, &sa->sin_addr, 4);
+             }
++#ifdef AF_PACKET
+             else if (af == AF_PACKET)
+             {
+                 struct sockaddr_ll* sa = (sockaddr_ll*)curaddr->ifa_addr;
+@@ -278,6 +281,7 @@ bool Init(bool open_adapter)
+                 else
+                     memcpy(adata->MAC, sa->sll_addr, 6);
+             }
++#endif
+             
+             curaddr = curaddr->ifa_next;
+         }


Home | Main Index | Thread Index | Old Index