Browse files

higan: 092-1~getdeb1

  * New upstream version
  • Loading branch information...
1 parent 2a7aca7 commit 2768642a87e44388311bfa9b04282a2f967cfcce Christoph Korn committed Mar 14, 2013
View
87 higan/changelog
@@ -0,0 +1,87 @@
+higan (092-1~getdeb1) precise; urgency=low
+
+ * New upstream version
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Sat, 09 Mar 2013 13:37:21 +0100
+
+bsnes (091-1~getdeb2) precise; urgency=low
+
+ * Build purify executable
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Fri, 14 Sep 2012 18:18:29 +0200
+
+bsnes (091-1~getdeb1) precise; urgency=low
+
+ * New upstream version
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Fri, 10 Aug 2012 18:06:16 +0200
+
+bsnes (090-1~getdeb1) precise; urgency=low
+
+ * New upstream version
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Tue, 07 Aug 2012 17:54:25 +0200
+
+bsnes (089-1~getdeb1) precise; urgency=low
+
+ * New upstream version
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Sat, 23 Jun 2012 12:33:40 +0200
+
+bsnes (088-1~getdeb2~precise) precise; urgency=low
+
+ * New upstream version
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Wed, 25 Apr 2012 18:22:31 +0200
+
+bsnes (087-1~getdeb1~precise) precise; urgency=low
+
+ * Rebuild for precise.
+
+ -- Christoph Korn <christoph.korn@getdeb.net> Mon, 02 Apr 2012 19:17:49 +0200
+
+bsnes (0.084-1) unstable; urgency=low
+
+ [ Tobias Hansen ]
+ * New upstream release.
+ * Remove optimization flags not available on alpha.
+
+ [ Gonéri Le Bouder ]
+ * Add: DM-Upload-Allowed: yes
+
+ -- Tobias Hansen <tobias.han@gmx.de> Wed, 09 Nov 2011 23:55:12 +0100
+
+bsnes (0.083-2) unstable; urgency=low
+
+ * Properly detect endianness on all architectures. (Closes: #645710)
+ * Escape minuses in man pages.
+
+ -- Tobias Hansen <tobias.han@gmx.de> Tue, 18 Oct 2011 02:11:24 +0200
+
+bsnes (0.083-1) unstable; urgency=low
+
+ * New upstream release.
+ * Create symlinks instead of copying files in startscript. (Closes: #642348)
+ * Fix FTBFS on kfreebsd due to enabled ALSA and missing check for
+ __FreeBSD_kernel__. (Closes: #640912)
+ * Add Build-Depends: gcc (>= 4.6), because building with gcc 4.5 causes a bug.
+ * Mention update-alternatives in package description.
+ * Add bugfix for snespurify crashing when scanning a broken zip file.
+ * Main license changed to GPL-3.
+ * Mention new functionality in snespurify man page.
+ * Build with -O1 + flags from -O3 instead of -O3.
+
+ -- Tobias Hansen <tobias.han@gmx.de> Sun, 16 Oct 2011 00:45:33 +0200
+
+bsnes (0.081-2) unstable; urgency=low
+
+ * New upstream release.
+ * Fix FTBFS due to hardwired gcc-4.5. (Closes: #637694)
+
+ -- Tobias Hansen <tobias.han@gmx.de> Sat, 13 Aug 2011 23:36:22 +0200
+
+bsnes (0.080-1) unstable; urgency=low
+
+ * Initial release (Closes: #598968)
+
+ -- Tobias Hansen <tobias.han@gmx.de> Fri, 05 Aug 2011 14:02:01 +0200
View
1 higan/compat
@@ -0,0 +1 @@
+9
View
38 higan/control
@@ -0,0 +1,38 @@
+Source: higan
+Section: games
+Priority: optional
+Maintainer: GetDeb Package Ninjas <package.ninjas@getdeb.net>
+Uploaders: Tobias Hansen <tobias.han@gmx.de>
+Build-Depends: debhelper (>= 9),
+ libgtk2.0-dev,
+ libsdl1.2-dev,
+ libpulse-dev,
+ libopenal-dev,
+ libao-dev,
+ libxv-dev,
+ gcc (>= 4.6)
+Standards-Version: 3.9.3
+Homepage: http://byuu.org/higan/
+DM-Upload-Allowed: yes
+
+Package: higan
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Conflicts: bsnes
+Replaces: bsnes
+Description: Accurate SNES/SuperFamicom emulator
+ higan is an emulator that focuses on accuracy, debugging functionality, and
+ clean code. higan does not include speed and game-specific hacks for
+ compatibility, and as a result the minimum system requirements are very high.
+ .
+ There are three profiles that differ in the amount of accuracy and required
+ system resources. Which profile to use can be set with:
+ .
+ # update-alternatives --config higan-bin
+ .
+ Although not as polished as the SNES emulation (yet), there is also support
+ for NES, Gameboy and Gameboy Color games.
+ .
+ higan was formerly known as bsnes. The project was renamed after becoming
+ a multi-system emulator.
View
108 higan/copyright
@@ -0,0 +1,108 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174
+Upstream-Name: higan
+Source: http://byuu.org/higan/
+
+Files: *
+Copyright: 2004-2011 byuu, Nach, blargg, krom, BearOso, RedDwarf, OV2, vladitx, Andreas Naive, Ryphecha
+License: GPL-3
+Comment:
+ The license is stated in the file higan/snes/snes.hpp.
+
+Files: debian/*
+Copyright: 2010 Brandon Barnes <winterknight@nerdshack.com>, 2011 Tobias Hansen <tobias.han@gmx.de>
+License: GPL-2
+
+Files: higan/snes/alt/dsp/*
+Copyright: Copyright (C) 2006-2007 Shay Green
+License: LGPL-2.1+
+
+Files: higan/snes/chip/spc7110/*
+Copyright: Copyright (c) 2008-2010, byuu and neviksti
+License: ISC
+
+Files: higan/nall/inflate.hpp
+ snesfilter/nall/inflate.hpp
+ snespurify/nall/inflate.hpp
+Copyright: Mark Adler, byuu
+License: Zlib
+
+License: GPL-3
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 3 as
+ published by the Free Software Foundation.
+ .
+ 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+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 version 2 as
+ published by the Free Software Foundation.
+ .
+ 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.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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+License: ISC
+ Permission to use, copy, modify, and/or 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.
+ .
+ The software is provided "as is" and the author disclaims all warranties
+ with regard to this software including all implied warranties of
+ merchantibility and fitness, in no event shall the author be liable for
+ any special, direct, indirect, or consequential damages or any damages
+ whatsoever resulting from loss of use, data or profits, whether in an
+ action of contract, negligence or other tortious action, arising out of
+ or in connection with the use or performance of this software.
+
+License: Zlib
+ zlib License
+ .
+ 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.
View
16 higan/higan-accuracy.6
@@ -0,0 +1,16 @@
+.TH higan\-accuracy 6 "August 5, 2011"
+.SH NAME
+higan\-accuracy \- Accurate SNES/Super Famicom emulator (accuracy profile)
+.SH SYNOPSIS
+.B higan\-accuracy
+<ROM location>
+.SH OPTIONS
+<ROM location> \-\- from the command line, you can supply the name of a ROM file as
+an argument to start playing that ROM
+
+.SH SEE ALSO
+
+\fBhigan\fR(6)
+
+.SH MAN PAGE AUTHOR
+Tobias Hansen
View
16 higan/higan-balanced.6
@@ -0,0 +1,16 @@
+.TH higan\-balanced 6 "August 5, 2011"
+.SH NAME
+higan\-balanced \- Balanced SNES/Super Famicom emulator (balanced profile)
+.SH SYNOPSIS
+.B higan\-balanced
+<ROM location>
+.SH OPTIONS
+<ROM location> \-\- from the command line, you can supply the name of a ROM file as
+an argument to start playing that ROM
+
+.SH SEE ALSO
+
+\fBhigan\fR(6)
+
+.SH MAN PAGE AUTHOR
+Tobias Hansen
View
16 higan/higan-bin.6
@@ -0,0 +1,16 @@
+.TH higan\-bin 6 "August 5, 2011"
+.SH NAME
+higan\-bin \- Accurate SNES/Super Famicom emulator (binary)
+.SH SYNOPSIS
+.B higan\-bin
+<ROM location>
+.SH OPTIONS
+<ROM location> \-\- from the command line, you can supply the name of a ROM file as
+an argument to start playing that ROM
+
+.SH SEE ALSO
+
+\fBhigan\fR(6)
+
+.SH MAN PAGE AUTHOR
+Tobias Hansen
View
16 higan/higan-performance.6
@@ -0,0 +1,16 @@
+.TH higan\-performance 6 "August 5, 2011"
+.SH NAME
+higan\-performance \- Accurate SNES/Super Famicom emulator (performance profile)
+.SH SYNOPSIS
+.B higan\-performance
+<ROM location>
+.SH OPTIONS
+<ROM location> \-\- from the command line, you can supply the name of a ROM file as
+an argument to start playing that ROM
+
+.SH SEE ALSO
+
+\fBhigan\fR(6)
+
+.SH MAN PAGE AUTHOR
+Tobias Hansen
View
74 higan/higan.6
@@ -0,0 +1,74 @@
+.TH higan 6 "August 5, 2011"
+.SH NAME
+higan \- Accurate SNES/Super Famicom emulator
+.SH SYNOPSIS
+.B higan
+<ROM location>
+.SH OPTIONS
+<ROM location> \-\- from the command line, you can supply the name of a ROM file as
+an argument to start playing that ROM
+
+.SH KEYBOARD SHORTCUTS
+F11 \-\- toggle fullscreen mode
+
+.SH DESCRIPTION
+
+higan is a Super Nintendo / Super Famicom emulator that strives to provide the
+most faithful hardware emulation possible. It focuses on accuracy and clean
+code, rather than speed and special features. It is meant as a reference
+emulator to document how the underlying hardware works. It is thus very useful
+for development and research. And while it can be used for general purpose
+gaming, it will require significantly more powerful hardware than a typical
+emulator. Although not as polished as the SNES emulation (yet), there is also
+support for NES, Gameboy and Gameboy Color games.
+
+.SH Supported Filetypes
+
+.B SFC:
+SNES cartridge \-\- ROM image.
+
+.B BS:
+Satellaview BS\-X flash cartridge \-\- EEPROM image.
+
+.B ST:
+Sufami Turbo cartridge \-\- ROM image.
+
+.B SRM, PSR:
+non\-volatile memory, often used to save game data \-\- (P)SRAM image.
+
+.B GB/GBC:
+Gameboy (Color) cartridge \-\- ROM image.
+
+.B NES/FC:
+NES cartridge \-\- ROM image.
+
+.SH Known Limitations
+
+.B Satellaview BS\-X emulation:
+this hardware is only partially supported. This is mostly because the satellite
+network it used (St. GIGA) has been shut down. Access to this network would be
+required to properly reverse engineer much of the hardware. Working around this
+would require game\-specific hacks, which are contrary to the design goals of
+this emulator. As a result, most BS\-X software will not function correctly.
+
+.B Netplay:
+internet multiplay is not currently supported nor planned.
+
+.SH PROFILES
+
+higan comes with three profiles, where "accuracy" and "compatibility" are focused on accuracy in emulating the SNES (compatibility makes minor tradeoffs in favor of speed) and "performance" is focused on using less resources. Which profile to use can be set with:
+
+# update\-alternatives \-\-config higan\-bin
+
+.SH SEE ALSO
+
+\fhiganpurify\-gtk\fR(6)
+
+.SH MORE INFO
+Website: http://byuu.org/higan/
+
+.SH higan AUTHOR
+byuu
+
+.SH MAN PAGE AUTHORS
+Brandon Barnes, Tobias Hansen
View
3 higan/higan.dirs
@@ -0,0 +1,3 @@
+usr/share/games/higan/profile
+usr/share/games/higan/shaders
+usr/games
View
3 higan/higan.install
@@ -0,0 +1,3 @@
+debian/higan.xpm usr/share/pixmaps
+debian/scripts/higan usr/games
+higan/out/* usr/games
View
7 higan/higan.manpages
@@ -0,0 +1,7 @@
+debian/higan.6
+debian/higan-bin.6
+debian/higan-balanced.6
+debian/higan-accuracy.6
+debian/higan-performance.6
+debian/snespurify-gtk.6
+
View
5 higan/higan.menu
@@ -0,0 +1,5 @@
+?package(higan): needs="X11" \
+ section="Games/Tools" \
+ title="higan" \
+ command="/usr/games/higan" \
+ icon="/usr/share/pixmaps/higan.xpm"
View
8 higan/higan.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+update-alternatives --install /usr/games/higan-bin higan-bin /usr/games/higan-accuracy 10
+update-alternatives --install /usr/games/higan-bin higan-bin /usr/games/higan-balanced 30
+update-alternatives --install /usr/games/higan-bin higan-bin /usr/games/higan-performance 20
+
+#DEBHELPER#
View
9 higan/higan.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove-all higan-bin
+fi
+
+#DEBHELPER#
View
174 higan/higan.xpm
@@ -0,0 +1,174 @@
+/* XPM */
+static char * higan_xpm[] = {
+"32 32 139 2",
+" c None",
+". c #FFBEBE",
+"+ c #F79A9A",
+"@ c #EF7575",
+"# c #FAA9A9",
+"$ c #FFC7C7",
+"% c #FFBFBF",
+"& c #FEBCBC",
+"* c #FFBCBC",
+"= c #FFBDBD",
+"- c #E95B5B",
+"; c #D91111",
+"> c #D80E0E",
+", c #DF2D2D",
+"' c #EF7676",
+") c #F28787",
+"! c #D91212",
+"~ c #DB1919",
+"{ c #DA1818",
+"] c #DA1515",
+"^ c #E23C3C",
+"/ c #FFC3C3",
+"( c #DA1616",
+"_ c #E95858",
+": c #FFC0C0",
+"< c #FFC4C4",
+"[ c #E44343",
+"} c #DA1717",
+"| c #F38A8A",
+"1 c #FFC1C1",
+"2 c #EB6666",
+"3 c #D91010",
+"4 c #FEBABA",
+"5 c #F9A1A1",
+"6 c #F07C7C",
+"7 c #FDB6B6",
+"8 c #F28686",
+"9 c #F18080",
+"0 c #F07B7B",
+"a c #DF2F2F",
+"b c #FFC6C6",
+"c c #FFC2C2",
+"d c #E13737",
+"e c #FCB1B1",
+"f c #FEBDBD",
+"g c #FFBBBB",
+"h c #D91414",
+"i c #DB1E1E",
+"j c #F28383",
+"k c #FDB7B7",
+"l c #F18181",
+"m c #E44242",
+"n c #FCB3B3",
+"o c #DB1B1B",
+"p c #F79C9C",
+"q c #EC6868",
+"r c #E34141",
+"s c #FEB8B8",
+"t c #F38888",
+"u c #E75050",
+"v c #E23939",
+"w c #D80F0F",
+"x c #FBACAC",
+"y c #DD2222",
+"z c #F58F8F",
+"A c #EA5E5E",
+"B c #FEBBBB",
+"C c #E64C4C",
+"D c #DC2121",
+"E c #E54848",
+"F c #D91313",
+"G c #DB1D1D",
+"H c #F48D8D",
+"I c #ED6D6D",
+"J c #E54646",
+"K c #EA6161",
+"L c #FAA8A8",
+"M c #E54545",
+"N c #E44646",
+"O c #F28181",
+"P c #E95E5E",
+"Q c #DE2727",
+"R c #E74F4F",
+"S c #FCB0B0",
+"T c #FDB8B8",
+"U c #EE6F6F",
+"V c #F89E9E",
+"W c #EE7474",
+"X c #F38989",
+"Y c #F59393",
+"Z c #F79999",
+"` c #FCB2B2",
+" . c #FFC5C5",
+".. c #EB6464",
+"+. c #F59191",
+"@. c #E44141",
+"#. c #DF2E2E",
+"$. c #DB1C1C",
+"%. c #E54747",
+"&. c #FCAFAF",
+"*. c #EF7777",
+"=. c #ED6E6E",
+"-. c #DA1414",
+";. c #F59494",
+">. c #E13838",
+",. c #E13535",
+"'. c #FBAAAA",
+"). c #FAA7A7",
+"!. c #DC2222",
+"~. c #FDB3B3",
+"{. c #E02F2F",
+"]. c #EA5D5D",
+"^. c #F38787",
+"/. c #E34040",
+"(. c #F9A3A3",
+"_. c #EB6565",
+":. c #E75252",
+"<. c #FEB9B9",
+"[. c #FDB5B5",
+"}. c #E03232",
+"|. c #E23A3A",
+"1. c #FDB4B4",
+"2. c #E03030",
+"3. c #E64D4D",
+"4. c #F48C8C",
+"5. c #DF2C2C",
+"6. c #E33C3C",
+"7. c #F8A0A0",
+"8. c #E85555",
+"9. c #F28484",
+"0. c #DE2929",
+"a. c #E95959",
+"b. c #DB1818",
+"c. c #DC1A1A",
+"d. c #F9A7A7",
+"e. c #D91515",
+"f. c #DA1919",
+"g. c #DB1A1A",
+"h. c #DA1A1A",
+" ",
+" . + @ # $ % & * = = = ",
+" = % - ; > , ' # = = = = = * ",
+" = * = . ) ! ~ { ] ^ % = = = * = * = ",
+" = * = = = = / ( { ~ ( _ : = = = = = = = ",
+" = * = = = = & < [ } ~ ! | . = = = = . % & = = ",
+" & . . = & = = = 1 2 ( { 3 4 = = = = = 5 6 7 = & ",
+" : 8 9 % % & = = % 0 ( { a b & = = & c - ! d e = f g ",
+" = $ h ! i j k = = % l ] } m < = = = = n ] { } o p * = ",
+" = = 1 q ] { ] r s & . t ] } u / = = & s v } ~ } w d 7 = ",
+" = = & x y ~ ~ ] _ c = z ] ( A 1 = = B C ] ( D E + $ = = = ",
+" = = = . A F ~ { G $ . H ] ( I : & B J F 3 K L % . & * = = = ",
+" = = = & $ M ( ( N / % O ] ( 0 % B P Q R S c = = = = = = = = ",
+"* = = = & = T U a V = : W ( ] X % Y Z ` : = & = = = = = = = = ",
+"= * = = = = & : .. & 1 ..( ] +.. % = & = = = = = = = = = = = ",
+"* = = = = = = = = = = < @.} { #.: = = = = = = = = = = = = = = ",
+"* = = = = = = = = = = b $.{ ~ ( %.& & = = = = = = = = = = = = ",
+"= * = = = = = = = = = &.w ~ ~ ~ { *.c & = = = = = = = = = = = ",
+"* = = = = = = = = = % =.-.~ } ~ ~ w ;.. & = = = = = = = = = = ",
+" = = = = = = = = = & >.{ ] ,.} ~ { y '.& = = = = = = = = = = ",
+" = = = = = = = = = ).!.{ #.~.D ~ ~ } {.4 = = = = = = = = = = ",
+" = = = = = = = & / ].( ( q c ^.> ~ ~ ( /.& & = = = = = = = ",
+" = = = = = = = . ).w ~ $.(.& < _.} ~ ~ ] :.<.= & = = = = ",
+" = = = = = & [.}.{ { d & & & 4 >.} ~ ~ ] |.1.. & = * = ",
+" * = = = = A ] { ~ ).. = = = * 2.} ~ ~ } $.;.* . f g ",
+" * = & = 3.( ~ { 4.% & = = & = e 5.{ ~ ~ { ~ 6.7. ",
+" = ` 8.] } y 9.: & = = = = = = [.5.} ~ ~ ~ { ! ",
+" 0.F w a.x % & = = = = = = & = 7 =.w ( ~ ~ { { b.{ b. ",
+" c.{ } @.7 c = = = = = = = = = = = & c d.a.e.b.~ ~ f.g.h.~ ",
+" = * = = = = = = = = = = f = ",
+" = * = = = = * * = = = ",
+" "};
View
58 higan/patches/detect-endianness.patch
@@ -0,0 +1,58 @@
+Description: Detect endianness using endian.h
+ Upstream bsnes knows the endianess only for a few architectures and otherwise FTBFS.
+Origin: http://anonscm.debian.org/gitweb/?p=pkg-games/bsnes.git;a=tree;f=debian/patches
+
+Index: higan-092/ananke/nall/intrinsics.hpp
+===================================================================
+--- higan-092.orig/ananke/nall/intrinsics.hpp 2013-01-11 19:26:29.000000000 +0100
++++ higan-092/ananke/nall/intrinsics.hpp 2013-03-09 14:07:38.961486379 +0100
+@@ -1,6 +1,8 @@
+ #ifndef NALL_INTRINSICS_HPP
+ #define NALL_INTRINSICS_HPP
+
++#include <endian.h>
++
+ struct Intrinsics {
+ enum class Compiler : unsigned { GCC, VisualC, Unknown };
+ enum class Platform : unsigned { X, OSX, Windows, Unknown };
+@@ -45,11 +47,11 @@
+
+ /* Endian detection */
+
+-#if defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64)
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define ENDIAN_LSB
+ #define ARCH_LSB
+ Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::LSB; }
+-#elif defined(__powerpc__) || defined(_M_PPC) || defined(__BIG_ENDIAN__)
++#elif __BYTE_ORDER == __BIG_ENDIAN
+ #define ENDIAN_MSB
+ #define ARCH_MSB
+ Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::MSB; }
+Index: higan-092/higan/nall/intrinsics.hpp
+===================================================================
+--- higan-092.orig/higan/nall/intrinsics.hpp 2013-01-14 19:27:28.000000000 +0100
++++ higan-092/higan/nall/intrinsics.hpp 2013-03-09 14:06:30.969488401 +0100
+@@ -1,6 +1,8 @@
+ #ifndef NALL_INTRINSICS_HPP
+ #define NALL_INTRINSICS_HPP
+
++#include <endian.h>
++
+ struct Intrinsics {
+ enum class Compiler : unsigned { GCC, VisualC, Unknown };
+ enum class Platform : unsigned { X, OSX, Windows, Unknown };
+@@ -45,11 +47,11 @@
+
+ /* Endian detection */
+
+-#if defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64)
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define ENDIAN_LSB
+ #define ARCH_LSB
+ Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::LSB; }
+-#elif defined(__powerpc__) || defined(_M_PPC) || defined(__BIG_ENDIAN__)
++#elif __BYTE_ORDER == __BIG_ENDIAN
+ #define ENDIAN_MSB
+ #define ARCH_MSB
+ Intrinsics::Endian Intrinsics::endian() { return Intrinsics::Endian::MSB; }
View
75 higan/patches/misc-makefile-changes.patch
@@ -0,0 +1,75 @@
+Description: Various changes to the upstream makefiles
+
+* Don't strip binaries in Makefile.
+* Install in /usr/games, not /usr/bin.
+* Install cheats.bml into /usr/share/games/bsnes/, not ~/.config/bsnes.
+* Name bsnes.png and bsnes.desktop explicitly.
+* Include ALSA audio backend only on Linux.
+
+Origin: http://anonscm.debian.org/gitweb/?p=pkg-games/bsnes.git;a=tree;f=debian/patches
+
+Index: higan-092/higan/Makefile
+===================================================================
+--- higan-092.orig/higan/Makefile 2013-03-09 13:42:41.505530924 +0100
++++ higan-092/higan/Makefile 2013-03-09 14:01:04.781498105 +0100
+@@ -16,8 +16,8 @@
+ # compiler
+ c := $(compiler) -std=gnu99
+ cpp := $(subst cc,++,$(compiler)) -std=gnu++0x
+-flags := -I. -O3 -fomit-frame-pointer
+-link := -s
++flags := -I. $(CFLAGS) $(CPPFLAGS)
++link := $(LDFLAGS)
+ objects := libco
+
+ # profile-guided optimization mode
+Index: higan-092/higan/target-ethos/Makefile
+===================================================================
+--- higan-092.orig/higan/target-ethos/Makefile 2013-01-12 22:59:47.000000000 +0100
++++ higan-092/higan/target-ethos/Makefile 2013-03-09 13:46:30.093524124 +0100
+@@ -17,8 +17,11 @@
+ # platform
+ ifeq ($(platform),x)
+ ruby := video.glx video.xv video.sdl
+- ruby += audio.alsa audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
++ ruby += audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
+ ruby += input.sdl input.x
++ ifneq ($(findstring Linux,$(uname)),)
++ ruby += audio.alsa
++ endif
+ else ifeq ($(platform),osx)
+ ruby :=
+ ruby += audio.openal
+@@ -84,14 +87,11 @@
+ @echo Please do not run make install as root.
+ @echo The installer needs to know your home directory to install important files.
+ else ifeq ($(platform),x)
+- sudo install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/bin/$(name)
+- sudo install -D -m 644 data/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
+- sudo install -D -m 644 data/$(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop
+-
+- mkdir -p ~/.config/$(name)
+- cp -R profile/* ~/.config/$(name)
+- cp data/cheats.bml ~/.config/$(name)/cheats.bml
+- chmod -R 777 ~/.config/$(name)
++ install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/games/$(name)
++ install -D -m 644 data/higan.png $(DESTDIR)$(prefix)/share/pixmaps/higan.png
++ install -D -m 644 data/higan.desktop $(DESTDIR)$(prefix)/share/applications/higan.desktop
++ install -D -m 644 data/cheats.xml $(DESTDIR)$(prefix)/share/games/higan/cheats.xml
++ cp -R profile/* $(DESTDIR)$(prefix)/share/games/higan/profile/
+ endif
+
+ uninstall:
+Index: higan-092/ananke/Makefile
+===================================================================
+--- higan-092.orig/ananke/Makefile 2013-01-13 00:18:14.000000000 +0100
++++ higan-092/ananke/Makefile 2013-03-09 14:03:14.661494241 +0100
+@@ -2,7 +2,7 @@
+ include phoenix/Makefile
+
+ path := /usr/local/lib
+-flags := -I. -O3 -fomit-frame-pointer
++flags := -I. $(CFLAGS) $(CPPFLAGS)
+ ifeq ($(arch),win32)
+ flags := -m32 $(flags)
+ endif
View
20 higan/patches/remove-march=native-build-flag.patch
@@ -0,0 +1,20 @@
+Description: Remove -march=native build flag.
+ * This will cause gcc to use all instruction subsets
+ available on the build machine, meaning that the program
+ will not work on computers where they are not available.
+ * Also the flag is not supported on many architectures
+ (armhf, s390, s390x, powerpc, ia64, ...).
+Author: Tobias Hansen <tobias.han@gmx.de>
+
+Index: higan-092/higan/Makefile
+===================================================================
+--- higan-092.orig/higan/Makefile 2013-03-09 13:43:21.669529729 +0100
++++ higan-092/higan/Makefile 2013-03-09 13:56:31.949506221 +0100
+@@ -33,7 +33,6 @@
+
+ # platform
+ ifeq ($(platform),x)
+- flags += -march=native
+ link += -Wl,-export-dynamic -ldl -lX11 -lXext
+ else ifeq ($(platform),win)
+ ifeq ($(arch),win32)
View
3 higan/patches/series
@@ -0,0 +1,3 @@
+misc-makefile-changes.patch
+remove-march=native-build-flag.patch
+detect-endianness.patch
View
50 higan/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+
+# With gcc-4.6 4.6.1-15 on Debian unstable i386-kfreebsd something in -O2
+# that can't be controlled by a flag causes problems with the higan GUI.
+# The higan GUI doesn't show up at all, snespurify-gtk crashes all the time.
+# Using -O1 and enabling all additional flags from -O3 works fine.
+CFLAGS += -O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops \
+-falign-labels -fcaller-saves -fcrossjumping -fcse-follow-jumps \
+-fcse-skip-blocks -fdelete-null-pointer-checks -fdevirtualize \
+-fexpensive-optimizations -fgcse -fgcse-lm -finline-small-functions \
+-findirect-inlining -fipa-sra -foptimize-sibling-calls -fpartial-inlining \
+-fpeephole2 -fregmove -freorder-blocks -freorder-functions \
+-frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns \
+-fschedule-insns2 -fstrict-aliasing -fstrict-overflow -ftree-switch-conversion \
+-ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning \
+-fgcse-after-reload -fipa-cp-clone -fomit-frame-pointer
+
+%:
+ dh $@
+
+# We have to clean manually because the Makefile does not support distclean,
+# and does not remove compiled higan binary
+# Don't use make clean for snesfilter because it creates an error if called
+# without files to delete.
+override_dh_auto_clean:
+ make -Chigan clean
+ rm -rf higan/obj higan/out ananke/libananke.so ananke/ananke.o
+
+override_dh_auto_build:
+ mkdir -p higan/obj higan/out
+ dh_auto_build -Dhigan -- compiler=gcc prefix=/usr phoenix=gtk profile=balanced name=higan-balanced
+ make -Chigan clean
+ dh_auto_build -Dhigan -- compiler=gcc prefix=/usr phoenix=gtk profile=accuracy name=higan-accuracy
+ make -Chigan clean
+ dh_auto_build -Dhigan -- compiler=gcc prefix=/usr phoenix=gtk profile=performance name=higan-performance
+
+ dh_auto_build -Dananke -- compiler=gcc
+ chmod 644 shaders/*.OpenGL.shader
+
+override_dh_auto_install:
+ install -D -m 644 higan/data/higan.png debian/higan/usr/share/pixmaps/higan.png
+ install -D -m 644 higan/data/higan.desktop debian/higan/usr/share/applications/higan.desktop
+ install -D -m 644 higan/data/cheats.bml debian/higan/usr/share/games/higan/cheats.bml
+ install -D -m 755 ananke/libananke.so debian/higan/usr/lib/games/libananke.so.1
+ cp -R higan/profile/* debian/higan/usr/share/games/higan/profile
+ chmod 644 debian/higan/usr/share/games/higan/*/*
+ find debian/higan/usr/share/games/higan -type d -exec chmod 755 {} \;
+ cp shaders/*.shader $(CURDIR)/debian/higan/usr/share/games/higan/shaders/
+ find $(CURDIR)/debian/higan/usr/share/games/higan/shaders -type f -exec chmod -x {} \;
+
View
56 higan/scripts/higan
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+if test ! -d $HOME/.config/higan
+ then
+ mkdir -p $HOME/.config/higan
+fi
+
+if test ! -d $HOME/.config/ananke
+ then
+ mkdir -p $HOME/.config/ananke
+fi
+
+if test ! -d $HOME/.config/higan/"Video Shaders"
+ then
+ mkdir -p $HOME/.config/higan/"Video Shaders"
+fi
+
+if test ! -e $HOME/.config/higan/cheats.bml
+ then
+ ln -s /usr/share/games/higan/cheats.bml $HOME/.config/higan/cheats.bml
+fi
+
+if test ! -e $HOME/.config/higan/Famicom.sys
+ then
+ ln -s /usr/share/games/higan/profile/Famicom.sys $HOME/.config/higan/Famicom.sys
+fi
+
+if test ! -e $HOME/.config/higan/"Game Boy.sys"
+ then
+ ln -s /usr/share/games/higan/profile/"Game Boy.sys" $HOME/.config/higan/"Game Boy.sys"
+fi
+
+if test ! -e $HOME/.config/higan/"Game Boy Advance.sys"
+ then
+ ln -s /usr/share/games/higan/profile/"Game Boy Advance.sys" $HOME/.config/higan/"Game Boy Advance.sys"
+fi
+
+if test ! -e $HOME/.config/higan/"Game Boy Color.sys"
+ then
+ ln -s /usr/share/games/higan/profile/"Game Boy Color.sys" $HOME/.config/higan/"Game Boy Color.sys"
+fi
+
+if test ! -e $HOME/.config/higan/"Super Famicom.sys"
+ then
+ ln -s /usr/share/games/higan/profile/"Super Famicom.sys" $HOME/.config/higan/"Super Famicom.sys"
+fi
+
+for shader in $(ls /usr/share/games/higan/shaders/*.OpenGL.shader)
+ do
+ if test ! -f $HOME/.config/higan/"Video Shaders"/${shader##*/}
+ then
+ ln -s $shader $HOME/.config/higan/"Video Shaders"/${shader##*/}
+ fi
+done
+
+higan-bin $@
View
18 higan/snespurify-gtk.6
@@ -0,0 +1,18 @@
+.TH snespurify\-gtk 6 "August 5, 2011"
+.SH NAME
+snespurify\-gtk \- Tool for resolving problems with SNES ROMs
+.SH SYNOPSIS
+.B snespurify\-gtk
+
+.SH DESCRIPTION
+
+higan can only play ROMs without copier headers and with the filename extension .sfc.
+snespurify scans SNES ROMs for these problems and fixes them. In addition it can also
+extract ROMs from zip archives and convert IPS and UPS patches into BPS patches.
+
+.SH SEE ALSO
+
+\fBhigan\fR(6)
+
+.SH MAN PAGE AUTHOR
+Tobias Hansen
View
1 higan/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
View
2 higan/source/lintian-overrides
@@ -0,0 +1,2 @@
+source: debian-rules-ignores-make-clean-error line 12
+source: debian-rules-ignores-make-clean-error line 20
View
3 higan/watch
@@ -0,0 +1,3 @@
+version=3
+http://code.google.com/p/higan/downloads/list \
+ (?:.*/)?higan_v([\d]+)(?:-source)?\.tar\.(?:bz2|gz|xz)

0 comments on commit 2768642

Please sign in to comment.