pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Sep 13 10:12:07 UTC 2019

Modified Files:
        pkgsrc/emulators: Makefile
Added Files:
        pkgsrc/emulators/melonds: DESCR MESSAGE.NetBSD Makefile PLIST distinfo
        pkgsrc/emulators/melonds/patches: patch-src_libui__sdl_LAN__PCap.cpp

Log Message:
Add emulators/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 generate a diff of this commit:
cvs rdiff -u -r1.302 -r1.303 pkgsrc/emulators/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/melonds/DESCR \
    pkgsrc/emulators/melonds/MESSAGE.NetBSD pkgsrc/emulators/melonds/Makefile \
    pkgsrc/emulators/melonds/PLIST pkgsrc/emulators/melonds/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp

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

Modified files:

Index: pkgsrc/emulators/Makefile
diff -u pkgsrc/emulators/Makefile:1.302 pkgsrc/emulators/Makefile:1.303
--- pkgsrc/emulators/Makefile:1.302     Sun Sep  8 11:04:04 2019
+++ pkgsrc/emulators/Makefile   Fri Sep 13 10:12:07 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.302 2019/09/08 11:04:04 nia Exp $
+# $NetBSD: Makefile,v 1.303 2019/09/13 10:12:07 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -138,6 +138,7 @@ SUBDIR+=    makeppf
 SUBDIR+=       mame
 SUBDIR+=       mednafen
 SUBDIR+=       mednaffe
+SUBDIR+=       melonds
 SUBDIR+=       mgba
 SUBDIR+=       minivmac
 SUBDIR+=       mmix

Added files:

Index: pkgsrc/emulators/melonds/DESCR
diff -u /dev/null pkgsrc/emulators/melonds/DESCR:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/DESCR      Fri Sep 13 10:12:07 2019
@@ -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!
Index: pkgsrc/emulators/melonds/MESSAGE.NetBSD
diff -u /dev/null pkgsrc/emulators/melonds/MESSAGE.NetBSD:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/MESSAGE.NetBSD     Fri Sep 13 10:12:07 2019
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2019/09/13 10:12:07 nia Exp $
+
+Lowering the system audio latency (or blk_ms) with sysctl(8) may be
+required to achieve full performance and framerates.
+
+===========================================================================
Index: pkgsrc/emulators/melonds/Makefile
diff -u /dev/null pkgsrc/emulators/melonds/Makefile:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/Makefile   Fri Sep 13 10:12:07 2019
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2019/09/13 10:12:07 nia Exp $
+
+DISTNAME=      melonDS-0.8.3
+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_TOOLS+=    pkg-config
+USE_LANGUAGES= c c++11
+
+# C++11
+GCC_REQD+=     4.8
+
+CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE="Release"
+CMAKE_ARGS+=   -DENABLE_LTO=OFF
+
+ICON_SIZES=    16 32 48 64 128 256
+
+INSTALLATION_DIRS+=    share/applications
+.for s in ${ICON_SIZES}
+INSTALLATION_DIRS+=    share/icons/hicolor/${s}x${s}/apps
+.endfor
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/flatpak/net.kuribo64.melonds.desktop \
+               ${DESTDIR}${PREFIX}/share/applications
+.for s in ${ICON_SIZES}
+       ${INSTALL_DATA} ${WRKSRC}/icon/melon_${s}x${s}.png \
+               ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/net.kuribo64.melonds.png
+.endfor
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/emulators/melonds/PLIST
diff -u /dev/null pkgsrc/emulators/melonds/PLIST:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/PLIST      Fri Sep 13 10:12:07 2019
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/13 10:12:07 nia Exp $
+bin/melonDS
+share/applications/net.kuribo64.melonds.desktop
+share/icons/hicolor/128x128/apps/net.kuribo64.melonds.png
+share/icons/hicolor/16x16/apps/net.kuribo64.melonds.png
+share/icons/hicolor/256x256/apps/net.kuribo64.melonds.png
+share/icons/hicolor/32x32/apps/net.kuribo64.melonds.png
+share/icons/hicolor/48x48/apps/net.kuribo64.melonds.png
+share/icons/hicolor/64x64/apps/net.kuribo64.melonds.png
Index: pkgsrc/emulators/melonds/distinfo
diff -u /dev/null pkgsrc/emulators/melonds/distinfo:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/distinfo   Fri Sep 13 10:12:07 2019
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/09/13 10:12:07 nia Exp $
+
+SHA1 (melonDS-0.8.3.tar.gz) = 9c1a71a05bfa041b727effe6180f6f7b590713a5
+RMD160 (melonDS-0.8.3.tar.gz) = d0753d1a8e959b76f77eac31babbc2b32b2940c4
+SHA512 (melonDS-0.8.3.tar.gz) = 4fed77abd231812d2f9ddb19a7fe6e808fb8e92035bb2fea220032b7c0a98671b4fd79ef0f7c7c559e92f3d1875ea119afaa581be2edacaa10f4437620eecd76
+Size (melonDS-0.8.3.tar.gz) = 965501 bytes
+SHA1 (patch-src_libui__sdl_LAN__PCap.cpp) = 1fd806b6b446622e5d214091e96aac3d6eec8490

Index: pkgsrc/emulators/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp
diff -u /dev/null pkgsrc/emulators/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp:1.1
--- /dev/null   Fri Sep 13 10:12:07 2019
+++ pkgsrc/emulators/melonds/patches/patch-src_libui__sdl_LAN__PCap.cpp Fri Sep 13 10:12:07 2019
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_libui__sdl_LAN__PCap.cpp,v 1.1 2019/09/13 10:12:07 nia Exp $
+
+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