diff --git a/emulators/nestopia/Makefile b/emulators/nestopia/Makefile new file mode 100644 index 00000000000..873b64d8bef --- /dev/null +++ b/emulators/nestopia/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2013/01/25 09:08:23 bentley Exp $ + +COMMENT = accurate Nintendo Entertainment System emulator + +DISTNAME = nestopia-1.44 + +CATEGORIES = emulators + +HOMEPAGE = http://0ldsk00l.ca/nestopia.html + +MAINTAINER = Anthony J. Bentley + +# GPLv2+ +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB += GL SDL X11 c gdk-3 gdk_pixbuf-2.0 glib-2.0 gobject-2.0 +WANTLIB += gtk-3 m pthread stdc++ z + +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=nestopiaue/} +EXTRACT_SUFX = .tgz + +RUN_DEPENDS = devel/desktop-file-utils +LIB_DEPENDS = devel/sdl \ + x11/gtk+3 + +MAKE_FLAGS = CC="${CC}" \ + CXX="${CXX}" \ + CFLAGS="${CFLAGS} `sdl-config --cflags` \ + `pkg-config --cflags gtk+-3.0`" \ + CXXFLAGS="${CFLAGS} `sdl-config --cflags` \ + `pkg-config --cflags gtk+-3.0`" +FAKE_FLAGS = PREFIX="${WRKINST}/${TRUEPREFIX}" + +USE_GMAKE = Yes + +NO_REGRESS = Yes + +.include diff --git a/emulators/nestopia/distinfo b/emulators/nestopia/distinfo new file mode 100644 index 00000000000..384e252d322 --- /dev/null +++ b/emulators/nestopia/distinfo @@ -0,0 +1,2 @@ +SHA256 (nestopia-1.44.tgz) = TIihidqquMd9gDhXyLDuh27dcspg11YmYegpx/2yrFw= +SIZE (nestopia-1.44.tgz) = 1954849 diff --git a/emulators/nestopia/patches/patch-Makefile b/emulators/nestopia/patches/patch-Makefile new file mode 100644 index 00000000000..a9a8e1b8862 --- /dev/null +++ b/emulators/nestopia/patches/patch-Makefile @@ -0,0 +1,19 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2013/01/25 09:08:23 bentley Exp $ +--- Makefile.orig Tue Jan 22 10:20:43 2013 ++++ Makefile Fri Jan 25 01:36:56 2013 +@@ -192,13 +192,13 @@ $(BIN): $(OBJS) + install: + mkdir -p $(DATADIR)/icons + mkdir -p $(PREFIX)/share/pixmaps ++ mkdir -p $(PREFIX)/share/applications + install -m 0755 $(BIN) $(BINDIR) +- install -m 0644 source/unix/icons/nestopia.desktop $(DATADIR) ++ install -m 0644 source/unix/icons/nestopia.desktop $(PREFIX)/share/applications + install -m 0644 NstDatabase.xml $(DATADIR) + install -m 0644 source/unix/icons/*.png $(DATADIR)/icons + install -m 0644 source/unix/icons/*.svg $(DATADIR)/icons + install -m 0644 source/unix/icons/nestopia.svg $(PREFIX)/share/pixmaps +- xdg-desktop-menu install --novendor $(DATADIR)/nestopia.desktop + + uninstall: + xdg-desktop-menu uninstall $(DATADIR)/nestopia.desktop diff --git a/emulators/nestopia/pkg/DESCR b/emulators/nestopia/pkg/DESCR new file mode 100644 index 00000000000..55208e14b8f --- /dev/null +++ b/emulators/nestopia/pkg/DESCR @@ -0,0 +1,9 @@ +Nestopia is an accuracy-focused emulator for the Nintendo Entertainment +System/Famicom (and Famicom Disk System). It is a computer program that +acts like a physical piece of hardware. In other words, this is a method +of preserving videogame history, with the welcome side effect of +allowing you to play NES games on a modern computer. + +Nestopia uses highly optimized cycle exact emulation, allowing it to run +titles that rely on precise timing, many of which break under inferior +emulators. diff --git a/emulators/nestopia/pkg/PLIST b/emulators/nestopia/pkg/PLIST new file mode 100644 index 00000000000..9d70a96f69a --- /dev/null +++ b/emulators/nestopia/pkg/PLIST @@ -0,0 +1,17 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2013/01/25 09:08:23 bentley Exp $ +@bin bin/nestopia +share/applications/nestopia.desktop +share/nestopia/ +share/nestopia/NstDatabase.xml +share/nestopia/icons/ +share/nestopia/icons/nespad.svg +share/nestopia/icons/nestopia.svg +share/nestopia/icons/nestopia128.png +share/nestopia/icons/nestopia32.png +share/nestopia/icons/nestopia48.png +share/nestopia/icons/nestopia64.png +share/nestopia/icons/nestopia96.png +share/pixmaps/ +share/pixmaps/nestopia.svg +@exec %D/bin/update-desktop-database +@unexec-delete %D/bin/update-desktop-database