debian/0000755000000000000000000000000012200314073007156 5ustar debian/postinst0000644000000000000000000000207212103647100010767 0ustar #! /bin/sh # postinst script for nestopia # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure) update-alternatives --install /usr/bin/nes nes /usr/games/nestopia 30 \ --slave /usr/share/man/man1/nes.1.gz nes.1.gz /usr/share/man/man6/nestopia.6.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/watch0000644000000000000000000000013712103254406010215 0ustar version=3 opts=dversionmangle=s/.dfsg$// \ http://sf.net/nestopiaue/nestopia-([0-9].*)\.tgz debian/doc-base0000644000000000000000000000040712103254351010563 0ustar Document: nestopia Title: Nestopia Manual Author: Martin Freij Abstract: Documentation for the Nestopia Nintendo Entertainment System emulator. Section: Emulators Format: HTML Index: /usr/share/doc/nestopia/readme.html Files: /usr/share/doc/nestopia/readme.html debian/changelog0000644000000000000000000000055212200314073011032 0ustar nestopia (1.45+dfsg-1) unstable; urgency=low * New upstream release. * Switch to my Debian email address. * Use canonical VCS URIs. -- Stephen Kitt Wed, 07 Aug 2013 02:43:36 +0200 nestopia (1.44+dfsg-1) unstable; urgency=low * Initial release (Closes: #559563). -- Stephen Kitt Sat, 02 Feb 2013 21:02:47 +0100 debian/compat0000644000000000000000000000000212104303201010346 0ustar 9 debian/docs0000644000000000000000000000003012103504724010030 0ustar readme.html README.unix debian/nestopia.60000644000000000000000000000404412132332637011103 0ustar .\" Hey, EMACS: -*- nroff -*- .TH NESTOPIA 6 "August 11, 2011" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME nestopia \- Nintento Entertainment System / Famicom emulator .SH SYNOPSIS .B nestopia .IR game .SH DESCRIPTION This manual page documents briefly the .B nestopia command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. .B nestopia is an emulator for the Nintento Entertainment System. It can execute programs intended for the NES console. .SH OPTIONS .B nestopia has no command\-line options; use the provided GUI to configure it. .SH KEYBOARD CONTROLS The default controls are as follows: .IP Up Player 1 up .IP Down Player 1 down .IP Left Player one left .IP Right Player one right .IP , Player one A .IP . Player one B .IP 1 Player one start .IP 2 Player one select .IP "Keypad 8" Player two up .IP "Keypad 2" Player two down .IP "Keypad 4" Player two left .IP "Keypad 6" Player two right .IP "Keypad /" Player two A .IP "Keypad *" Player two B .IP "Keypad Enter" Player two start .IP "Keypad +" Player two select .IP F1 Save movie .IP F2 Load movie .IP F3 Stop recording movie .IP F4 Reset .IP F5 Flip disk .IP F7 Save .IP F8 Load .IP Escape Stop .IP Backspace Rewind .IP \\ Fast forward .IP 7 Quick save 1 .IP 8 Quick save 2 .IP 9 Quick load 1 .IP 0 Quick load 2 .IP 5 Coin 1 .IP 6 Coin 2 .SH AUTHOR nestopia was written by Martin Freij and ported to Linux by R. Belmont. It is now maintained by R. Danbrook. .PP This manual page was written by Stephen Kitt , for the Debian project (and may be used by others). debian/copyright0000644000000000000000000000633412200310070011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: nestopia Source: Files: * Copyright: 2003-2008 Martin Freij 2012-2013 R. Danbrook License: GPL-2.0+ Files: source/core/NstVideoFilterxBR.cpp Copyright: 2011, 2012 Hyllian/Jararaca License: GPL-2.0+ Files: source/nes_ntsc/* Copyright: 2006 Shay Green License: LGPL-2.1+ Files: source/unix/* Copyright: 2008 R. Belmont License: GPL-2.0+ Files: source/7zip/* Copyright: 1999-2008 Igor Pavlov License: LGPL-2.1+ Files: source/zlib/* Copyright: 1995-2005 Jean-loup Gailly and Mark Adler 1998-2005 Gilles Vollant License: zlib/libpng Files: debian/* Copyright: 2011-2013 Stephen Kitt License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2.1+ This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this module; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1". License: zlib/libpng This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. debian/patches/0000755000000000000000000000000012200314063010604 5ustar debian/patches/series0000644000000000000000000000005512200310373012021 0ustar install-location.patch format-security.patch debian/patches/install-location.patch0000644000000000000000000000332112132332702015104 0ustar Description: Install to FHS-compliant locations and handle DESTDIR Author: Stephen Kitt --- nestopia.orig/Makefile +++ nestopia/Makefile @@ -4,8 +4,8 @@ # By R. Danbrook 2012 # -CC = @gcc -CXX = @g++ +CC = gcc +CXX = g++ CFLAGS ?= -O3 -g3 CXXFLAGS ?= -O3 -g3 CPPFLAGS += -DNST_PRAGMA_ONCE_SUPPORT -D_SZ_ONE_DIRECTORY @@ -36,8 +36,8 @@ CPPFLAGS += -DBSD endif -PREFIX = /usr/local -BINDIR = $(PREFIX)/bin +PREFIX = /usr +BINDIR = $(PREFIX)/games DATADIR = $(PREFIX)/share/nestopia # OpenGL Support @@ -190,15 +190,16 @@ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LIBS) install: - mkdir -p $(DATADIR)/icons - mkdir -p $(PREFIX)/share/pixmaps - install -m 0755 $(BIN) $(BINDIR) - install -m 0644 source/unix/icons/nestopia.desktop $(DATADIR) - 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 + mkdir -p $(DESTDIR)/$(BINDIR) + mkdir -p $(DESTDIR)/$(PREFIX)/share/applications + mkdir -p $(DESTDIR)/$(DATADIR)/icons + mkdir -p $(DESTDIR)/$(PREFIX)/share/pixmaps + install -m 0755 $(BIN) $(DESTDIR)/$(BINDIR) + install -m 0644 source/unix/icons/nestopia.desktop $(DESTDIR)/$(PREFIX)/share/applications + install -m 0644 NstDatabase.xml $(DESTDIR)/$(DATADIR) + install -m 0644 source/unix/icons/*.png $(DESTDIR)/$(DATADIR)/icons + install -m 0644 source/unix/icons/*.svg $(DESTDIR)/$(DATADIR)/icons + install -m 0644 source/unix/icons/nestopia.svg $(DESTDIR)/$(PREFIX)/share/pixmaps uninstall: xdg-desktop-menu uninstall $(DATADIR)/nestopia.desktop debian/patches/format-security.patch0000644000000000000000000000114412200313667014773 0ustar Description: Use a format specifier with gtk_message_dialog_new Author: Stephen Kitt --- a/source/unix/gtkui.cpp +++ b/source/unix/gtkui.cpp @@ -1348,7 +1348,7 @@ } void create_messagewindow(char* message) { - messagewindow = gtk_message_dialog_new(GTK_WINDOW(mainwindow), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message); + messagewindow = gtk_message_dialog_new(GTK_WINDOW(mainwindow), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message); gtk_dialog_run (GTK_DIALOG (messagewindow)); gtk_widget_destroy (messagewindow); } debian/menu0000644000000000000000000000016212103646757010067 0ustar ?package(nestopia):needs="X11" section="Applications/Emulators"\ title="nestopia" command="/usr/games/nestopia" debian/gbp.conf0000644000000000000000000000012512200307311010570 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True debian/source/0000755000000000000000000000000012103254351010462 5ustar debian/source/format0000644000000000000000000000001412103254351011670 0ustar 3.0 (quilt) debian/control0000644000000000000000000000216212200313773010570 0ustar Source: nestopia Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Stephen Kitt Build-Depends: debhelper (>= 9), libarchive-dev, libasound2-dev, libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libgtk-3-dev, libsdl1.2-dev, zlib1g-dev Standards-Version: 3.9.4 Homepage: http://0ldsk00l.ca/nestopia.html Vcs-Git: git://anonscm.debian.org/pkg-games/nestopia.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/nestopia.git;a=summary Package: nestopia Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Provides: nes-emulator Description: accurate emulator of the Nintendo Entertainment System NEStopia is a NES (Nintento Entertainment System, also known as Famicom) emulator designed to provide a highly accurate emulation. It features: * support for a variety of formats * save states * a video recorder * a game rewinder * configuration using a GUI * autodetection of PAL and NTSC games debian/nestopia.manpages0000644000000000000000000000002212103646774012531 0ustar debian/nestopia.6 debian/rules0000755000000000000000000000222212103254370010241 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ get-orig-source: DEHS=$$(mktemp) && \ export NST_DSTDIR=$$PWD && \ export NST_TMPDIR=$$(mktemp -d) && \ cd $$NST_TMPDIR && \ uscan --dehs --download --destdir . --package nestopia \ --upstream-version 0 --repack \ --force-download --watchfile $(dir $(_))/watch > $$DEHS && \ VERSION=$$(sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p' $$DEHS) && \ mkdir nestopia-$$VERSION+dfsg && \ cd nestopia-$$VERSION+dfsg && \ tar xf ../nestopia-$$VERSION.tgz && \ mv nestopia-$$VERSION/* . && \ rm -rf nestopia-$$VERSION && \ rm -rf dll lib source/kaillera source/unrar && \ cd .. && \ tar cjf $$NST_DSTDIR/nestopia_$$VERSION+dfsg.orig.tar.bz2 nestopia-$$VERSION+dfsg && \ rm -rf $$NST_TMPDIR debian/prerm0000644000000000000000000000142412103647113010235 0ustar #! /bin/sh # prerm script for nst # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package if [ "$1" != "upgrade" ]; then update-alternatives --remove nes /usr/games/nestopia fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0