debian/0000755000000000000000000000000012102050306007153 5ustar debian/postinst0000644000000000000000000000207211551403733010777 0ustar #! /bin/sh # postinst script for mednafen # # 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/mednafen 30 \ --slave /usr/share/man/man1/nes.1.gz nes.1.gz /usr/share/man/man6/mednafen.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/watch0000644000000000000000000000025712101330457010217 0ustar # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Track stable releases only http://sf.net/mednafen/mednafen-(\d+\.\d*[02468]\..*)\.tar\.bz2 debian/doc-base0000644000000000000000000000040711551403733010571 0ustar Document: mednafen Title: Mednafen General Documentation Author: The Mednafen Team Abstract: Documentation for the Mednafen multi-system emulator. Section: Emulators Format: HTML Index: /usr/share/doc/mednafen/mednafen.html Files: /usr/share/doc/mednafen/*.html debian/changelog0000644000000000000000000001766212102050060011036 0ustar mednafen (0.8.D.3-6) unstable; urgency=low * Build using the provided libvorbisidec source; mednafen doesn't work correctly with the version currently in Debian (closes: #699143). -- Stephen Kitt Tue, 29 Jan 2013 23:40:10 +0100 mednafen (0.8.D.3-5) unstable; urgency=low * Use ${source:Package} with dpkg-query to retrieve only the package name in the Built-Using field (closes: #677867). * Drop unused GPL-2 license paragraph from debian/copyright. * Fix configure.ac to ensure dpkg-buildflags' CPPFLAGS make it all the way through the build. -- Stephen Kitt Mon, 18 Jun 2012 01:01:20 +0200 mednafen (0.8.D.3-4) unstable; urgency=low * Update debian/watch to track stable releases only. * Pull in relevant changes from the experimental package: - wrap-and-sort debian/control - add a Built-Using relationship to the package from which MiniLZO is copied - build using libvorbisidec-dev rather than the provided tremor source - switch to DEP-5 format for debian/copyright - add cheats.txt to the shipped documentation - build with dh-autoreconf - use debian/gbp.conf to enforce pristine-tar use - add README.source describing the source code replacements -- Stephen Kitt Wed, 16 May 2012 22:50:02 +0200 mednafen (0.8.D.3-3) unstable; urgency=low * Build with zlib 1.2.6 and later (patch by Michał Ziąbkowski, adapted by Steven Chamberlain; closes: #661657). * Build-depend on debhelper 9. * Standards-Version 3.9.3, no change required. -- Stephen Kitt Wed, 29 Feb 2012 23:28:31 +0100 mednafen (0.8.D.3-2) unstable; urgency=low [ Stephen Kitt ] * Fix "debian/control uses hardcoded list of non-Linux architectures" - qualify libasound2-dev dependency using [linux-any] instead of [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386] (closes: #634461). * Install .desktop file allowing file association, with known supported MIME types, as suggested by Damian Yarrick (LP: #886912; helps with #635538). * Simplify rules using dh 9 and enable hardening. * Build-conflict with autoconf2.13 which causes the build to fail. * Standards-Version 3.9.2, no change required beyond the above. [ Piotr Ożarowski ] * Set DM-Upload-Allowed flag to yes -- Stephen Kitt Tue, 08 Nov 2011 07:20:54 +0100 mednafen (0.8.D.3-1) unstable; urgency=low * New upstream version, fixing a significant memory leak. -- Stephen Kitt Fri, 17 Sep 2010 07:18:16 +0200 mednafen (0.8.D.2-1) unstable; urgency=low * New upstream version. * Standards-Version 3.9.1, no change required. * Add build dependency on libjack-dev. -- Stephen Kitt Thu, 05 Aug 2010 08:35:19 +0200 mednafen (0.8.D-1) unstable; urgency=low * New upstream version. * Mention homepage. * Update debian/copyright. * Register documentation with doc-base. -- Stephen Kitt Mon, 31 May 2010 06:49:35 +0200 mednafen (0.8.C-1) unstable; urgency=low * New maintainer (closes: #510531). * New upstream version (closes: #506462): - 10-gcc4.4-const-char.patch: removed, merged upstream. * Standards-Version 3.8.4, no change required. * Provide nes-emulator (closes: #485974). -- Stephen Kitt Thu, 04 Feb 2010 14:50:12 +0100 mednafen (0.8.9-1.1) unstable; urgency=low [Jari Aalto] * Non-maintainer upload. * Update to packaging format "3.0 (quilt)" due to patch. * debian/patches - (number 10): Add patch to fix GCC 4.4 invalid conversion from const char* to char*. (RC bug FTBFS serious; Closes: #560474). * debian/source/format - New file. -- Jari Aalto Sat, 09 Jan 2010 21:00:28 +0200 mednafen (0.8.9-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Mon, 09 Jun 2008 16:38:25 -0400 mednafen (0.8.8-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Thu, 03 Apr 2008 10:43:51 -0400 mednafen (0.8.7-1.1) unstable; urgency=low * Non-maintainer upload. * Explicitly include required headers to fix FTBFS with gcc-4.3. (Closes: #417446) -- James Vega Sun, 09 Mar 2008 17:10:00 -0400 mednafen (0.8.7-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Sun, 06 Jan 2008 11:58:07 -0500 mednafen (0.8.6-1) unstable; urgency=low * New upstream version. * Closes: #417446. Upstream fixed this in a different way than the patch. * Update Debian packaging to compat = 5. * Update x-dev depend to x11proto-core-dev. * Add copyright information for galois. * Add copyright information for Debian packaging. -- Ryan Schultz Fri, 04 Jan 2008 14:48:16 -0500 mednafen (0.8.5-1) unstable; urgency=low * New upstream version. * Closes: #449877. Patch from Raphael Geissert . -- Ryan Schultz Sun, 16 Dec 2007 18:50:43 -0500 mednafen (0.8.4-rc3-1) unstable; urgency=low * New upstream version. * Closes: #447551 -- Ryan Schultz Mon, 22 Oct 2007 22:27:12 -0400 mednafen (0.8.1-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Mon, 22 Oct 2007 22:26:23 -0400 mednafen (0.7.2-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Thu, 22 Feb 2007 16:45:25 -0500 mednafen (0.7.1-1) unstable; urgency=low * New upstream release. -- Ryan Schultz Sun, 24 Dec 2006 13:19:55 -0500 mednafen (0.7.0-1) unstable; urgency=low * New upstream version. * Updated copyright. * Added build rules for ALSA on *BSDs. -- Ryan Schultz Sat, 23 Dec 2006 12:34:18 -0500 mednafen (0.6.5-1) unstable; urgency=low * New upstream version. Closes: #385807 -- Ryan Schultz Wed, 6 Sep 2006 21:04:34 -0400 mednafen (0.6.4-1) unstable; urgency=low * New upstream version. * Update copyrights. -- Ryan Schultz Mon, 28 Aug 2006 13:32:02 -0400 mednafen (0.6.3-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Thu, 10 Aug 2006 14:45:16 -0400 mednafen (0.6.2-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Wed, 21 Jun 2006 16:26:18 -0400 mednafen (0.6.1-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Thu, 1 Jun 2006 20:48:48 -0400 mednafen (0.6.0-1) unstable; urgency=low * New upstream version. -- Ryan Schultz Tue, 16 May 2006 13:06:32 -0400 mednafen (0.5.2-1) unstable; urgency=low * New upstream version. Closes: #351586 -- Ryan Schultz Tue, 16 May 2006 13:06:27 -0400 mednafen (0.4.7-1) unstable; urgency=low * New upstream version. Closes: #349845 * Add Trio copyright info. -- Ryan Schultz Thu, 2 Feb 2006 14:24:53 -0500 mednafen (0.4.5-1) unstable; urgency=low * New upstream version. Closes: #349633 * Remove JACK and ESD dependencies. * Update description. -- Ryan Schultz Tue, 24 Jan 2006 18:01:01 -0500 mednafen (0.4.4-1) unstable; urgency=low * New upstream version. * Add debian/watch file. -- Ryan Schultz Sun, 22 Jan 2006 21:43:34 -0500 mednafen (0.4.1-1) unstable; urgency=low * New upstream release. * Fix some small packaging issues. * Expand debian/copyright file. -- Ryan Schultz Thu, 29 Dec 2005 17:43:00 -0500 mednafen (0.4.0-1) unstable; urgency=low * New upstream release. -- Ryan Schultz Fri, 16 Dec 2005 15:10:58 -0500 mednafen (0.3.7-1) unstable; urgency=low * Initial release Closes: #340378 * Upstream source repackaged to remove CVS dirs -- Ryan Schultz Tue, 22 Nov 2005 22:48:43 -0500 debian/compat0000644000000000000000000000000211656412205010366 0ustar 9 debian/docs0000644000000000000000000000005112101330457010031 0ustar Documentation/*.html Documentation/*.txt debian/copyright0000644000000000000000000004315712101330457011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: mednafen Source: http://mefnafen.sf.net Copyright: 2005-2010 Mednafen Team License: GPL-2+ Files: * Copyright: 2005-2010 Mednafen Team License: GPL-2+ Files: debian/* Copyright: 2005-2008 Ryan Schultz 2010-2012 Stephen Kitt License: GPL-2+ Files: include/mpcdec/* src/mpcdec/* Comment: libmpcdec Copyright: 2005 The Musepack Development Team License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the The Musepack Development Team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: src/tremor/* Comment: Tremor Copyright: 2002 Xiph.org Foundation License: BSD-Xiph Files: include/blip/* src/ngp/T6W28_Apu.cpp src/Stereo_Buffer.cpp src/compress/blz.c src/sms/Sms_Apu.cpp src/nes/ntsc/* src/Ym2612_Emu.cpp src/gb/sound/* src/gba/Gba_Apu.* src/gba/Gba_Oscs.* src/Blip_Buffer.cpp Comment: Gb_Snd_Emu, Blip_Buffer, Sms_Snd_Emu, nes_ntsc Copyright: 2003-2006 Shay Green License: GPL-2+ Files: src/lynx/* Comment: Handy Copyright: 2004 K. Wilkins License: Handy 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. Files: src/cdrom/cdromif.h src/pce/adpcm.* src/pce/cdrom.cpp src/pce/huc.cpp Comment: PC2e Copyright: 2004 Ki License: GPL-2+ Files: src/drivers/scale* Comment: Scale2x Copyright: 2001-2004 Andrea Mazzoleni License: GPL-2+ Files: src/drivers/hq?x.cpp Comment: hq2x, hq3x, hq4x Copyright: 2003 MaxSt License: LGPL-2.1+ Files: src/gb/gb* src/gb/gfx.cpp src/gb/memory.* src/gba/* Comment: VisualBoyAdvance Copyright: 1999-2003 Forgotten 2004-2006 Forgotten and the VBA development team License: GPL-2+ Files: include/trio/* src/trio/* Comment: trio Copyright: 1998-2009 Bjorn Reese and Daniel Stenberg License: trio Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER. Files: src/string/ConvertUTF.* Comment: ConvertUTF Copyright: 2001-2004 Unicode, Inc. License: Unicode This source code is provided as is by Unicode, Inc. No claims are made as to fitness for any particular purpose. No warranties of any kind are expressed or implied. The recipient agrees to determine applicability of information provided. If this file has been purchased on magnetic or optical media from Unicode, Inc., the sole remedy for any claim will be exchange of defective media within 90 days of receipt. . Limitations on Rights to Redistribute This Code . Unicode, Inc. hereby grants the right to freely use the information supplied in this file in the creation of products supporting the Unicode Standard, and to make copies of this file in any form for internal or external distribution as long as this notice remains attached. Files: src/md5.cpp Comment: MD5 Hashing; the exact license statement is contained in later versions of the code (see ) Copyright: Christophe Devine License: GPL-2+ Files: src/pcfx/v810* Comment: V810 Emulator Copyright: 2006 David Tucker License: GPL-2+ Files: src/compress/ioapi.* src/compress/unzip.* Comment: Unzipping Code Copyright: 1998-2005 Gilles Vollant 1990-2000 Info-ZIP License: Zlib 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. Files: src/compress/lzo* src/compress/minilzo.* Comment: MiniLZO Copyright: 1996-2005 Markus Franz Xaver Johannes Oberhumer License: GPL-2+ Files: src/z80-fuse/* Comment: Fuse Z80 emulation code Copyright: 1999-2004 Philip Kendall, Witold Filipczyk License: GPL-2+ Files: src/ngp/* Comment: NeoPop Neo Geo Pocket (Color) Code Copyright: 2001-2002 neopop_uk License: GPL-2+ Files: src/pcfx/jrevdct.cpp Comment: PC-FX MJPEG Decoding Copyright: 1991, 1992 Thomas G. Lane License: JPEG The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. . This software is copyright (C) 1991, 1992, Thomas G. Lane. All Rights Reserved except as specified below. . Permission is hereby granted to use, copy, modify, and distribute this software (or portions thereof) for any purpose, without fee, subject to these conditions: (1) If any part of the source code for this software is distributed, then this README file must be included, with this copyright and no-warranty notice unaltered; and any additions, deletions, or changes to the original files must be clearly indicated in accompanying documentation. (2) If only executable code is distributed, then the accompanying documentation must state that "this software is based in part on the work of the Independent JPEG Group". (3) Permission for use of this software is granted only if the user accepts full responsibility for any undesirable consequences; the authors accept NO LIABILITY for damages of any kind. . Permission is NOT granted for the use of any IJG author's name or company name in advertising or publicity relating to this software or products derived from it. This software may be referred to only as "the Independent JPEG Group's software". . We specifically permit and encourage the use of this software as the basis of commercial products, provided that all warranty or liability claims are assumed by the product vendor. Files: src/wswan/start.h src/wswan/v30mz* Comment: NEC V30MZ Emulator Copyright: Bryan McPhail License: McPhail This NEC V30MZ emulator may be used for purposes both commercial and noncommercial if you give the author, Bryan McPhail, a small credit somewhere(such as in the documentation for an executable package). Files: src/wswan/dis/* Comment: NEC V30MZ disassembler (modified BOCHS x86 disassembler) Copyright: TODO License: LGPL-2+ Files: src/wswan/* Comment: Cygne Copyright: 2002 Dox License: GPL-2+ Files: src/drivers/joystick.cpp src/drivers/main.h src/drivers/sound.cpp src/nes/* Comment: FCE Ultra Copyright: 1998 BERO 2002 Xodnizel 2002 Paul Kuliniewicz 2003 CaH4e3 License: GPL-2+ Files: src/compress/quicklz.* Comment: QuickLZ Copyright: 2006-2008 Lasse Mikkel Reinhold License: GPL-1 or GPL-2 QuickLZ can be used for free under the GPL-1 or GPL-2 license (where anything released into public must be open source) or under a commercial license if such has been acquired (see http://www.quicklz.com/order.html). The commercial license does not cover derived or ported versions created by third parties under GPL. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in /usr/share/common-licenses/GPL-2 Files: src/cdrom/CDUtility.cpp src/cdrom/lec.* Comment: Q-Subchannel CRC16 Code Copyright: 1998-2002 Andreas Mueller License: GPL-2+ Files: src/sms/* Comment: SMS Plus Copyright: 1998-2004 Charles MacDonald License: GPL-2+ Files: src/sms/emu2413.* src/nes/boards/emu2413.* Comment: EMU2413 Copyright: 2004 Mitsutaka Okazaki License: EMU2413 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. Files: src/cdrom/crc32.cpp src/cdrom/dvdisaster.h src/cdrom/galois* src/cdrom/l-ec.cpp src/cdrom/recover-raw.cpp Comment: dvdisaster Copyright: 2004-2007 Carsten Gnoerlich License: GPL-2+ Files: src/Ym2612_Emu.cpp Comment: YM2612 Copyright: 2002 Stephane Dallongeville 2004-2006 Shay Green License: LGPL-2.1+ Files: intl/* m4/* src/gettext.h Comment: GNU gettext Copyright: 1984, 1989, 1990, 1995-2007 Free Software Foundation, Inc. License: LGPL-2+ Files: aclocal.m4 compile config.* configure depcomp INSTALL ltmain.sh Makefile.in missing Comment: autotools files Copyright: 1992-2009 Free Software Foundation, Inc. License: GPL-2+ Files: install-sh Comment: X11 installation tool Copyright: 1994 X Consortium License: X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from the X Consor- tium. Files: src/string/world_strtod.c Copyright: 1991, 1992, 1997, 1999 Free Software Foundation, Inc. License: GPL-2+ Files: src/nes/sound/cputest.* Comment: DSP Utils Copyright: 2000-2002 Fabrice Bellard License: LGPL-2+ License: GPL-2+ This program 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 program 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, 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 General Public License version 2 can be found in /usr/share/common-licenses/GPL-2 License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library 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 Library General Public License along with this library; 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 Library General Public License version 2 can be found in /usr/share/common-licenses/LGPL-2 License: LGPL-2.1+ This program 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 program 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 program; 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: BSD-Xiph Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . - Neither the name of the Xiph.org Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/README.source0000644000000000000000000000133012101330457011336 0ustar mednafen for Debian ------------------- The upstream source includes copies of the following packages which are available separately in Debian: * libmpcdec-dev; the API has changed since the version in Mednafen so the Debian version can't be used directly; * libvorbisidec-dev (tremor); this is patched out of Mednafen and the Debian version used instead; * liblzo2-dev (minilzo); the source files are copied from the Debian package for the build; * libav (jrevdct.cpp); only one function is reproduced, and it doesn't seem useful to modify the build to use libav instead; * gettext, as usual for projects using gettext; the build doesn't update it. -- Stephen Kitt , Wed, 16 May 2012 22:49:44 +0200 debian/mednafen.desktop0000644000000000000000000000050412101330457012331 0ustar [Desktop Entry] Type=Application Version=1.0 Name=Mednafen GenericName=Emulator Comment=Multi-system video game emulator # mednafen doesn't display a file chooser, no point displaying it in # the menus NoDisplay=true Exec=/usr/games/mednafen %f MimeType=application/x-gameboy-rom;application/x-gba-rom;application/x-nes-rom debian/patches/0000755000000000000000000000000012102047570010613 5ustar debian/patches/series0000644000000000000000000000005312102047570012026 0ustar hardening-fixes.patch zlib-1.2.6-fix.patch debian/patches/hardening-fixes.patch0000644000000000000000000000356412101330457014715 0ustar Description: Always use format specifier when formatting a variable string Author: Stephen Kitt --- mednafen.orig/src/ngp/TLCS-900h/TLCS900h_disassemble.cpp +++ mednafen/src/ngp/TLCS-900h/TLCS900h_disassemble.cpp @@ -209,7 +209,7 @@ if (size == 0 && first == 0xC7) { - sprintf(str_r, extra); + sprintf(str_r, "%s", extra); return; } --- mednafen.orig/src/drivers/input.cpp +++ mednafen/src/drivers/input.cpp @@ -1520,12 +1520,9 @@ /* Configures an individual virtual button. */ static int subcon(const char *text, std::vector &bc, int commandkey) { - char buf[256]; - while(1) { - sprintf(buf,"%s (%d)",text,subcon_wc+1); - MDFNI_DispMessage(buf); + MDFNI_DispMessage("%s (%d)", text, subcon_wc + 1); if(subcon_tb != subcon_wc) { --- mednafen.orig/configure.ac +++ mednafen/configure.ac @@ -58,7 +58,7 @@ else AC_PATH_X CFLAGS="-I${x_includes} ${CFLAGS}" - CPPFLAGS="-I${x_includes} ${CFLAGS}" + CPPFLAGS="-I${x_includes} ${CPPFLAGS}" AC_CHECK_HEADER([GL/gl.h],HAVE_GL_GL_H=true, HAVE_GL_GL_H=false) @@ -359,7 +359,7 @@ CFLAGS_SDLNET_BACK="$CFLAGS" CPPFLAGS_SDLNET_BACK="$CPPFLAGS" CFLAGS="$CFLAGS $SDL_CFLAGS" -CPPFLAGS="$CFLAGS $SDL_CFLAGS" +CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" AC_CHECK_HEADER([SDL_net.h],[], [HAS_SDL_NET=no]) if test x$HAS_SDL_NET = xno; then AC_MSG_ERROR([*** SDL_net not found!]) @@ -393,7 +393,7 @@ AX_CFLAGS_GCC_OPTION([-maltivec], ALTIVEC_FLAGS) if test "x$ALTIVEC_FLAGS" != "x"; then CFLAGS="$CFLAGS $ALTIVEC_FLAGS" - CPPFLAGS="$CFLAGS $ALTIVEC_FLAGS" + CPPFLAGS="$CPPFLAGS $ALTIVEC_FLAGS" AC_DEFINE([ARCH_POWERPC_ALTIVEC], [1], [Define if we are compiling with AltiVec usage.]) AM_CONDITIONAL(ARCH_POWERPC_ALTIVEC, true) fi debian/patches/use-system-tremor.patch0000644000000000000000000000422312101330457015257 0ustar Subject: Use packaged libvorbisidec instead of provided copy From: Stephen Kitt Use the version of tremor available in libvorbisidec-dev instead of the source code provided. --- mednafen.orig/configure.ac +++ mednafen/configure.ac @@ -77,6 +77,10 @@ AC_CHECK_LIB([z], [zlibVersion],[], AC_MSG_ERROR([*** zlib not found!])) LIBS="$LIBS -lz" +dnl Check for libvorbisidec (tremor) +AC_CHECK_LIB([vorbisidec], [ov_read], [], AC_MSG_ERROR([*** libvorbisidec not found!])) +LIBS="$LIBS -lvorbisidec" + dnl -fno-unit-at-a-time OPTIMIZER_FLAGS="" @@ -415,4 +419,4 @@ CPPFLAGS="$LIBCDIO_CFLAGS $SNDFILE_CFLAGS $CPPFLAGS" dnl Output Makefiles -AC_OUTPUT([Makefile src/Makefile src/tremor/Makefile src/mpcdec/Makefile src/trio/Makefile src/gb/Makefile src/gba/Makefile src/lynx/Makefile src/pce/Makefile src/pcfx/Makefile src/sms/Makefile src/wswan/Makefile src/nes/Makefile src/ngp/Makefile po/Makefile.in intl/Makefile]) +AC_OUTPUT([Makefile src/Makefile src/mpcdec/Makefile src/trio/Makefile src/gb/Makefile src/gba/Makefile src/lynx/Makefile src/pce/Makefile src/pcfx/Makefile src/sms/Makefile src/wswan/Makefile src/nes/Makefile src/ngp/Makefile po/Makefile.in intl/Makefile]) --- mednafen.orig/src/Makefile.am +++ mednafen/src/Makefile.am @@ -72,9 +72,9 @@ endif if NEED_CDEMU -SUBDIRS += tremor mpcdec -mednafen_LDADD += tremor/libvorbisidec.a mpcdec/libmpcdec.a -mednafen_DEPENDENCIES += tremor/libvorbisidec.a mpcdec/libmpcdec.a +SUBDIRS += mpcdec +mednafen_LDADD += mpcdec/libmpcdec.a +mednafen_DEPENDENCIES += mpcdec/libmpcdec.a include cdrom/Makefile.am.inc endif --- mednafen.orig/src/cdrom/cdromfile.cpp +++ mednafen/src/cdrom/cdromfile.cpp @@ -22,7 +22,7 @@ #include #include #include -#include "../tremor/ivorbisfile.h" +#include #include #include #include --- mednafen.orig/src/cdrom/cdromfile.h +++ mednafen/src/cdrom/cdromfile.h @@ -1,7 +1,7 @@ #ifndef __MDFN_CDROMFILE_H #define __MDFN_CDROMFILE_H -#include "../tremor/ivorbisfile.h" +#include #include #include #include debian/patches/zlib-1.2.6-fix.patch0000644000000000000000000000167212101330457014026 0ustar Description: fixes needed to build with zlib 1.2.6 or newer Author: Steven Chamberlain Bug-Debian: http://bugs.debian.org/661657 Index: mednafen-0.8.D.3/src/file.cpp =================================================================== --- mednafen-0.8.D.3.orig/src/file.cpp 2009-05-15 03:12:55.000000000 +0100 +++ mednafen-0.8.D.3/src/file.cpp 2012-02-29 19:48:21.000000000 +0000 @@ -229,7 +229,7 @@ goto doret; } - while((howmany = gzread(tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) + while((howmany = gzread((gzFile)tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) { cur_size += howmany; cur_alloced <<= 1; @@ -282,7 +282,7 @@ } else if(type == MDFN_FILETYPE_GZIP) { - gzclose(tz); + gzclose((gzFile)tz); } else if(type == MDFN_FILETYPE_ZIP) { @@ -444,7 +444,7 @@ if(!(fceufp = MakeMemWrap(t, 1))) { - gzclose(t); + gzclose((gzFile)t); return(0); } debian/mednafen.install0000644000000000000000000000006011736422444012336 0ustar debian/mednafen.desktop /usr/share/applications debian/mednafen.60000644000000000000000000000131511551403733011034 0ustar .\" Hey, EMACS: -*- nroff -*- .TH MEDNAFEN 6 "November 22, 2005" .SH NAME mednafen - multi-system emulator .SH SYNOPSIS .B mednafen .I [options] romfile .SH DESCRIPTION Mednafen is a command-line driven emulator for many different systems. It has full support for OpenGL and SDL graphics, network play, sound output via various methods (Esound, Jack, etc.), remappable input configuration, joystick and keyboard support, save states, game rewinding, and screenshots. .PP .SH SEE ALSO /usr/share/doc/mednafen/mednafen.html .SH AUTHOR mednafen was written by the Mednafen Team This manual page was written by Ryan Schultz . debian/gbp.conf0000644000000000000000000000012512101330457010577 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True debian/source/0000755000000000000000000000000011723523713010472 5ustar debian/source/format0000644000000000000000000000001411551403733011676 0ustar 3.0 (quilt) debian/control0000644000000000000000000000356312101330457010574 0ustar Source: mednafen Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Stephen Kitt Build-Depends: autotools-dev, debhelper (>= 9), dh-autoreconf, libasound2-dev [linux-any], libcdio-dev, libgl1-mesa-dev | libgl-dev, libjack-dev, liblzo2-dev, libsamplerate0-dev, libsdl-net1.2-dev, libsdl1.2-dev, libsndfile1-dev | libsndfile-dev, libvorbisidec-dev, x11proto-core-dev, zlib1g-dev | libz-dev Build-Conflicts: autoconf2.13 Standards-Version: 3.9.3 Homepage: http://mednafen.sourceforge.net Vcs-Git: git://git.debian.org/git/pkg-games/mednafen.git Vcs-Browser: http://git.debian.org/?p=pkg-games/mednafen.git DM-Upload-Allowed: yes Package: mednafen Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Provides: nes-emulator Built-Using: ${bu:liblzo2} Description: multi-platform emulator, including NES, GB/A, Lynx, PC Engine Mednafen is a command-line driven emulator for many different systems. It has full support for OpenGL and SDL graphics, network play, remappable input configuration, joystick and keyboard support, save states, game rewinding, GSF playback, and screenshots. . The systems supported by Mednafen are: * Atari Lynx * GameBoy * GameBoy Color * GameBoy Advance * NES * PC Engine (TurboGrafx 16) * PC-FX * SuperGrafx * NeoGeo Pocket, NeoGeo Pocket Color * WonderSwan . Hardware emulated by Mednafen includes: * NES gamepad, Zapper, PowerPad * Four-Score, Famicom multiplayer adapter * Arkanoid, HyperShot, Space Shadow, Mahjong controllers * Oeka Kids tablet, Quiz King buzzers, Family Trainer, Barcode World * Game Genie debian/mednafen.manpages0000644000000000000000000000002211656412205012454 0ustar debian/mednafen.6 debian/rules0000755000000000000000000000220212102047613010236 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 liblzo2_source := $(shell dpkg-query -W -f='$${source:Package} (= $${source:Version})' liblzo2-dev) %: dh $@ --with autoreconf override_dh_auto_build: # Update MiniLZO cp src/compress/lzoconf.h src/compress/lzoconf.h.orig cp src/compress/lzodefs.h src/compress/lzodefs.h.orig cp src/compress/minilzo.c src/compress/minilzo.c.orig cp src/compress/minilzo.h src/compress/minilzo.h.orig cp /usr/share/lzo/minilzo/*.[ch] src/compress dh_auto_build override_dh_auto_clean: # Restore MiniLZO [ ! -f src/compress/lzoconf.h.orig ] || mv src/compress/lzoconf.h.orig src/compress/lzoconf.h [ ! -f src/compress/lzodefs.h.orig ] || mv src/compress/lzodefs.h.orig src/compress/lzodefs.h [ ! -f src/compress/minilzo.c.orig ] || mv src/compress/minilzo.c.orig src/compress/minilzo.c [ ! -f src/compress/minilzo.h.orig ] || mv src/compress/minilzo.h.orig src/compress/minilzo.h dh_auto_clean override_dh_auto_configure: dh_auto_configure -- --bindir=/usr/games override_dh_gencontrol-arch: dh_gencontrol -a -- '-Vbu:liblzo2=$(liblzo2_source)' debian/prerm0000644000000000000000000000143111551403733010237 0ustar #! /bin/sh # prerm script for mednafen # # 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/mednafen fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0