--- sffview-0.4.orig/debian/menu
+++ sffview-0.4/debian/menu
@@ -0,0 +1,2 @@
+?package(sffview):needs="X11" section="Applications/Viewers"\
+  title="Structed Fax File (SFF) Viewer" command="/usr/bin/sffview"
--- sffview-0.4.orig/debian/control
+++ sffview-0.4/debian/control
@@ -0,0 +1,15 @@
+Source: sffview
+Section: graphics
+Priority: optional
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Build-Depends: debhelper (>= 7), docbook-to-man, libwxgtk2.6-dev, libboost-filesystem-dev (>= 1.32.0+1.33.0), quilt
+Standards-Version: 3.8.2
+Homepage: http://sfftools.sourceforge.net/sffview.html
+
+Package: sffview
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Structured Fax File (SFF) Viewer
+ sffview is a X11 viewer SFF files.
+ SFF means 'structured fax file' and is the file format that ISDN
+ cards with CAPI interface expect and create.
--- sffview-0.4.orig/debian/manpages
+++ sffview-0.4/debian/manpages
@@ -0,0 +1 @@
+sffview.1
--- sffview-0.4.orig/debian/copyright
+++ sffview-0.4/debian/copyright
@@ -0,0 +1,23 @@
+This package was debianized by Achim Bohnet <ach@mpe.mpg.de> on
+Wed, 19 Mar 2003 00:46:28 +0100.
+
+It was downloaded from http://sfftools.sourceforge.net
+
+Upstream Author: Peter Schaefer-Hutter <peter.schaefer@gmx.net>
+
+Copyright (C) 2000-2006 Peter Schaefer-Hutter ("THE AUTHOR")
+
+Permission to use, copy, modify, distribute, and sell this software and 
+its documentation for any purpose is hereby granted without fee.
+
+THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
+EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
+WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
+
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INCIDENTAL, 
+INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER 
+RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF 
+THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT 
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+You can contact the original author by email at peter.schaefer@gmx.de.
--- sffview-0.4.orig/debian/rules
+++ sffview-0.4/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+%:
+	dh --with quilt $@
+
+clean:
+	rm -f sffview.1
+	dh --with quilt $@
+
+override_dh_auto_build:
+	dh_auto_build
+	docbook-to-man debian/sffview.sgml > sffview.1
+
+override_dh_installchangelogs:
+	dh_installchangelogs doc/changes
--- sffview-0.4.orig/debian/docs
+++ sffview-0.4/debian/docs
@@ -0,0 +1 @@
+doc/readme
--- sffview-0.4.orig/debian/sffview.sgml
+++ sffview-0.4/debian/sffview.sgml
@@ -0,0 +1,129 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Achim</firstname>">
+  <!ENTITY dhsurname   "<surname>Bohnet</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>March 19, 2003</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>ach@mpe.mpg.de</email>">
+  <!ENTITY dhusername  "Achim Bohnet">
+  <!ENTITY dhucpackage "<refentrytitle>SFFVIEW</refentrytitle>">
+  <!ENTITY dhpackage   "sffview">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>X11 viewer for structured fax files (SFF)</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para><command>&dhpackage;</command> is a tool to view
+    "structured fax files" in X11.
+    "Structured fax file" (SFF) is the file format that ISDN
+     cards with CAPI interface expect and create.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>NONE</para>
+  
+  </refsect1>
+  <refsect1>
+    <title>BUGS</title>
+  	<para>Only German localication</para>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>sfftobmp (1).</para>
+
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the <acronym>GNU</acronym> Free Documentation
+      License, Version 1.1 or any later version published by the Free
+      Software Foundation; with no Invariant Sections, no Front-Cover
+      Texts and no Back-Cover Texts.</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
--- sffview-0.4.orig/debian/install
+++ sffview-0.4/debian/install
@@ -0,0 +1 @@
+sffview usr/bin
--- sffview-0.4.orig/debian/dirs
+++ sffview-0.4/debian/dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/doc/sffview
+usr/share/man/man1
--- sffview-0.4.orig/debian/changelog
+++ sffview-0.4/debian/changelog
@@ -0,0 +1,132 @@
+sffview (0.4-4) unstable; urgency=low
+
+  * QA upload.
+  * Extract all Debian-specific changes into quilt patch series.
+  * Adjust 01-fix-ftbfs-with-gcc-4.4.diff to really fix FTBFS under GCC 4.4.
+    (Closes: #504859)
+  * Fix lintian warnings:
+    - Correct quote usage in debian/sffview.sgml so that generated groff file
+      has correct format
+    - Update debian/copyright to incldue a "Copyright (C) [..]" statement
+    - Add patch to prepend "-Wl,--as-needed" before WXCONFIG_LD to drop
+      unnecessary dependencies
+
+ -- Chris Lamb <lamby@debian.org>  Sun, 02 Aug 2009 01:30:59 +0100
+
+sffview (0.4-3) unstable; urgency=low
+
+  * QA upload.
+  * Apply patch by Martin Michlmayr to fix building under GCC 4.4. Tested
+    using gcc-snapshot 20090718-1. (Closes: #504859)
+  * debian/control:
+    - Bump Standards-Version to 3.8.2
+    - Move homepage in long description to 'Homepage' field
+    - Add ${misc:Depends} to binary Depends
+  * debian/rules:
+    - Don't ignore errors in clean target
+    - Remove NOP configure/configure-stamp target
+    - Move to minimal dh7 debian/rules
+    - Correct upstream changelog handling to avoid installing it as "changes".
+  * Use 'Applications' section in menu file, not 'Apps'.
+
+ -- Chris Lamb <lamby@debian.org>  Tue, 28 Jul 2009 14:55:40 +0200
+
+sffview (0.4-2) unstable; urgency=low
+
+  * Orphan the package.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 01 Mar 2009 22:55:44 +0100
+
+sffview (0.4-1) unstable; urgency=low
+
+  * New upstream version.
+  * Fix build failures with g++-4.3. Closes: #455326.
+  * Update watch file. Closes: #450218.
+
+ -- Matthias Klose <doko@debian.org>  Mon, 28 Jan 2008 22:12:38 +0100
+
+sffview (0.3-7) unstable; urgency=low
+
+  * Rebuild using g++-4.1.
+
+ -- Matthias Klose <doko@debian.org>  Sun,  9 Jul 2006 15:23:20 +0000
+
+sffview (0.3-6) unstable; urgency=low
+
+  * Fix spelling error in package description (closes: #300039).
+
+ -- Matthias Klose <doko@debian.org>  Fri, 14 Apr 2006 23:13:47 +0000
+
+sffview (0.3-5) unstable; urgency=low
+
+  * Build-depend on libwxgtk2.6-dev.
+
+ -- Matthias Klose <doko@debian.org>  Wed, 24 Aug 2005 07:13:50 +0000
+
+sffview (0.3-4) unstable; urgency=low
+
+  * Fix typo in package description (closes: #300039).
+
+ -- Matthias Klose <doko@debian.org>  Fri, 25 Mar 2005 21:39:02 +0100
+
+sffview (0.3-3) unstable; urgency=low
+
+  * Add build dependency on libboost-filesystem-dev (closes: #290966).
+
+ -- Matthias Klose <doko@debian.org>  Sat, 22 Jan 2005 09:48:48 +0100
+
+sffview (0.3-2) unstable; urgency=low
+
+  * Do not use backward compatible headers (closes: #278018).
+  * Build using libwxgtk2.5-dev.
+  * New upstream version handles files passe on the cmd line (closes: #290493).
+  * Fix build failures (Daniel J. Priem).
+
+ -- Matthias Klose <doko@debian.org>  Sat, 15 Jan 2005 10:52:47 +0100
+
+sffview (0.3-1) unstable; urgency=low
+
+  * New upstream version.
+  * Packaging fixes.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 26 Sep 2004 22:06:59 +0200
+
+sffview (0.2-5) unstable; urgency=low
+
+  * Build using g++-3.4 on amd64 (closes: #278018).
+
+ -- Matthias Klose <doko@debian.org>  Wed, 10 Nov 2004 19:41:15 +0100
+
+sffview (0.2-4) unstable; urgency=low
+
+  * Packaging fixes.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 26 Sep 2004 22:18:29 +0200
+
+sffview (0.2-3) unstable; urgency=low
+
+  * build-dep on libwxgtk2.4-dev instead of wxwin2.2-headers
+  * build-dep on g++-3.2 instead of g++ (3.3 has no strstream.h)
+  * comment out TRUE and FALSE defs in  sfftobmp.h
+  * Makefile use g++-3.2 instead of g++
+  * fix path to COPYING in debian/copyright
+  * added homepage URL to long description
+  * recompile on sid
+
+ -- Achim Bohnet <ach@mpe.mpg.de>  Wed, 15 Sep 2004 20:54:10 +0200
+
+sffview (0.2-2) stable; urgency=low
+
+  * fix typo in pkg description and manpage
+  * fill debian/copyright, delete README.debian
+
+ -- Achim Bohnet <ach@mpe.mpg.de>  Wed, 19 Mar 2003 01:44:19 +0100
+
+sffview (0.2-1) stable; urgency=low
+
+  * Initial Woody package
+  * Makefile: use wx-config --cxxflags instead of --cflags
+  * added simple manpage sffview.1
+
+ -- Achim Bohnet <ach@mpe.mpg.de>  Wed, 19 Mar 2003 01:22:14 +0100
+
--- sffview-0.4.orig/debian/watch
+++ sffview-0.4/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="uversionmangle=s/_/./g" \
+http://sf.net/sfftools/ sffview_([\d\._]*)_src.zip
--- sffview-0.4.orig/debian/compat
+++ sffview-0.4/debian/compat
@@ -0,0 +1 @@
+7
--- sffview-0.4.orig/debian/patches/03-link-as-needed.diff
+++ sffview-0.4/debian/patches/03-link-as-needed.diff
@@ -0,0 +1,17 @@
+
+ Add -Wl,--as-needed before WXCONFIG_LD to drop unnecessary dependencies.
+
+   -- Chris Lamb <lamby@debian.org>  Sun, 02 Aug 2009 01:29:09 +0100
+
+--- sffview-0.4.orig/Makefile
++++ sffview-0.4/Makefile
+@@ -58,7 +58,7 @@
+ all:    $(PROGRAM)
+ 
+ $(PROGRAM):	$(OBJECTS)
+-	$(CC) -o $(PROGRAM) $(OBJECTS) $(WXCONFIG_LD)
++	$(CC) -o $(PROGRAM) $(OBJECTS) -Wl,--as-needed $(WXCONFIG_LD)
+ 
+ clean: 
+ 	rm -f *.o $(PROGRAM)
+
--- sffview-0.4.orig/debian/patches/series
+++ sffview-0.4/debian/patches/series
@@ -0,0 +1,3 @@
+01-fix-ftbfs-with-gcc-4.4.diff
+02-no-march-in-cflags.diff
+03-link-as-needed.diff
--- sffview-0.4.orig/debian/patches/02-no-march-in-cflags.diff
+++ sffview-0.4/debian/patches/02-no-march-in-cflags.diff
@@ -0,0 +1,16 @@
+
+ Don't specify -march=i686 in GCC parameters
+
+  -- Chris Lamb <lamby@debian.org>  Sun, 02 Aug 2009 00:56:44 +0100
+
+--- sffview-0.4.orig/Makefile
++++ sffview-0.4/Makefile
+@@ -53,7 +53,7 @@
+ .SUFFIXES:	.o .cpp
+ 
+ .cpp.o :
+-	$(CC) -g -march=i686 -Os -c $(WXCONFIG_CPP) -o $@ $<
++	$(CC) -g -Os -c $(WXCONFIG_CPP) -o $@ $<
+ 
+ all:    $(PROGRAM)
+
--- sffview-0.4.orig/debian/patches/01-fix-ftbfs-with-gcc-4.4.diff
+++ sffview-0.4/debian/patches/01-fix-ftbfs-with-gcc-4.4.diff
@@ -0,0 +1,27 @@
+
+ Fix FTBFS with GCC 4.4. See #504859.
+
+  -- Chris Lamb <lamby@debian.org>  Sun, 02 Aug 2009 00:55:41 +0100
+
+--- sffview-0.4.orig/sfffile.cpp
++++ sffview-0.4/sfffile.cpp
+@@ -31,6 +31,8 @@
+ 
+ ---RCS-Info--------------------------------------------------*/
+ 
++#include <cstdlib>
++#include <cstring>
+ #include <vector>
+ #include <iostream>
+ 
+--- sffview-0.4.orig/common.cpp
++++ sffview-0.4/common.cpp
+@@ -45,6 +45,7 @@
+ #include <sys/stat.h>
+ 
+ #include <cassert>
++#include <cstdio>
+ #include <iostream>
+ 
+ using namespace std;
+
