Import emulators/desmume.
DeSmuME is a Nintendo DS emulator. It supports many homebrew NDS rom demos as well as a handful of wireless multiboot demo NDS roms. It also runs DSLinux, the port of Linux to the Nintendo DS. ok landry@ sthen@
This commit is contained in:
parent
9c68462364
commit
c80916cd1f
46
emulators/desmume/Makefile
Normal file
46
emulators/desmume/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/09/21 03:58:08 bentley Exp $
|
||||
|
||||
COMMENT = Nintendo DS emulator
|
||||
|
||||
DISTNAME = desmume-0.9.7
|
||||
|
||||
CATEGORIES = emulators
|
||||
|
||||
HOMEPAGE = http://desmume.org/
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += agg c m pthread stdc++ z GL GLU ICE SM X11 Xcomposite
|
||||
WANTLIB += Xcursor Xdamage Xext Xfixes Xi Xinerama Xmu Xrandr Xrender
|
||||
WANTLIB += Xt expat fontconfig freetype pixman-1 pthread-stubs
|
||||
WANTLIB += xcb xcb-render xcb-shm png xml2 gdk_pixbuf-2.0 gio-2.0
|
||||
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 pangox-1.0 SDL
|
||||
WANTLIB += glade-2.0 atk-1.0 cairo gdk-x11-2.0 gdkglext-x11-1.0 gtk-x11-2.0
|
||||
WANTLIB += gtkglext-x11-1.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 zzip
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=desmume/}
|
||||
|
||||
RUN_DEPENDS = devel/desktop-file-utils
|
||||
|
||||
LIB_DEPENDS = archivers/zziplib \
|
||||
devel/sdl \
|
||||
devel/libglade2 \
|
||||
graphics/agg \
|
||||
graphics/gdk-pixbuf2 \
|
||||
graphics/png \
|
||||
textproc/libxml \
|
||||
x11/gtkglext
|
||||
|
||||
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv"
|
||||
|
||||
MODULES = devel/gettext \
|
||||
lang/lua
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
.include <bsd.port.mk>
|
5
emulators/desmume/distinfo
Normal file
5
emulators/desmume/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (desmume-0.9.7.tar.gz) = wzRA5qAsRCSIcewu7Go3YA==
|
||||
RMD160 (desmume-0.9.7.tar.gz) = h3Ct3xrlqrmxWnDefEsFEbJFIg0=
|
||||
SHA1 (desmume-0.9.7.tar.gz) = GOAPZ10+YhdHSmu/PFVKrems7uU=
|
||||
SHA256 (desmume-0.9.7.tar.gz) = Cg9+88x2/wu8bz30fDaJZTYXB06n/8NU6foSQMUzZSM=
|
||||
SIZE (desmume-0.9.7.tar.gz) = 1142550
|
12
emulators/desmume/patches/patch-src_OGLRender_cpp
Normal file
12
emulators/desmume/patches/patch-src_OGLRender_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_OGLRender_cpp,v 1.1.1.1 2011/09/21 03:58:08 bentley Exp $
|
||||
--- src/OGLRender.cpp.orig Fri Jul 1 10:17:51 2011
|
||||
+++ src/OGLRender.cpp Fri Jul 1 10:18:09 2011
|
||||
@@ -76,7 +76,7 @@ static void ENDGL() {
|
||||
#include "shaders.h"
|
||||
#include "texcache.h"
|
||||
|
||||
-static ALIGN(16) u8 GPU_screen3D [256*192*4];
|
||||
+static DMALIGN(16) u8 GPU_screen3D [256*192*4];
|
||||
|
||||
static const unsigned short map3d_cull[4] = {GL_FRONT_AND_BACK, GL_FRONT, GL_BACK, 0};
|
||||
static const int texEnv[4] = { GL_MODULATE, GL_DECAL, GL_MODULATE, GL_MODULATE };
|
12
emulators/desmume/patches/patch-src_gfx3d_cpp
Normal file
12
emulators/desmume/patches/patch-src_gfx3d_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_gfx3d_cpp,v 1.1.1.1 2011/09/21 03:58:08 bentley Exp $
|
||||
--- src/gfx3d.cpp.orig Fri Jul 1 10:17:51 2011
|
||||
+++ src/gfx3d.cpp Fri Jul 1 10:18:05 2011
|
||||
@@ -606,7 +606,7 @@ static void SetVertex()
|
||||
s16coord[2]
|
||||
};
|
||||
|
||||
- ALIGN(16) s32 coordTransformed[4] = { coord[0], coord[1], coord[2], (1<<12) };
|
||||
+ DMALIGN(16) s32 coordTransformed[4] = { coord[0], coord[1], coord[2], (1<<12) };
|
||||
|
||||
if (texCoordinateTransform == 3)
|
||||
{
|
26
emulators/desmume/patches/patch-src_types_h
Normal file
26
emulators/desmume/patches/patch-src_types_h
Normal file
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-src_types_h,v 1.1.1.1 2011/09/21 03:58:08 bentley Exp $
|
||||
--- src/types.h.orig Fri Jul 1 10:17:51 2011
|
||||
+++ src/types.h Fri Jul 1 10:18:24 2011
|
||||
@@ -90,17 +90,17 @@
|
||||
|
||||
|
||||
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
|
||||
-#define ALIGN(X) __declspec(align(X))
|
||||
+#define DMALIGN(X) __declspec(align(X))
|
||||
#elif __GNUC__
|
||||
-#define ALIGN(X) __attribute__ ((aligned (X)))
|
||||
+#define DMALIGN(X) __attribute__ ((aligned (X)))
|
||||
#else
|
||||
-#define ALIGN(X)
|
||||
+#define DMALIGN(X)
|
||||
#endif
|
||||
|
||||
-#define CACHE_ALIGN ALIGN(32)
|
||||
+#define CACHE_ALIGN DMALIGN(32)
|
||||
|
||||
//use this for example when you want a byte value to be better-aligned
|
||||
-#define FAST_ALIGN ALIGN(4)
|
||||
+#define FAST_ALIGN DMALIGN(4)
|
||||
|
||||
#ifndef FASTCALL
|
||||
#ifdef __MINGW32__
|
5
emulators/desmume/pkg/DESCR
Normal file
5
emulators/desmume/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
DeSmuME is a Nintendo DS emulator.
|
||||
|
||||
It supports many homebrew NDS rom demos as well as a handful of wireless
|
||||
multiboot demo NDS roms. It also runs DSLinux, the port of Linux to the
|
||||
Nintendo DS.
|
18
emulators/desmume/pkg/PLIST
Normal file
18
emulators/desmume/pkg/PLIST
Normal file
@ -0,0 +1,18 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/09/21 03:58:08 bentley Exp $
|
||||
@bin bin/desmume
|
||||
@bin bin/desmume-cli
|
||||
@bin bin/desmume-glade
|
||||
@man man/man1/desmume-cli.1
|
||||
@man man/man1/desmume-glade.1
|
||||
@man man/man1/desmume.1
|
||||
share/applications/desmume-glade.desktop
|
||||
share/applications/desmume.desktop
|
||||
share/desmume/
|
||||
share/desmume/glade/
|
||||
share/desmume/glade/DeSmuME.xpm
|
||||
share/desmume/glade/DeSmuMe.glade
|
||||
share/desmume/glade/DeSmuMe_Dtools.glade
|
||||
share/pixmaps/
|
||||
share/pixmaps/DeSmuME.xpm
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
Loading…
Reference in New Issue
Block a user