[tiemu] 03/03: Clean/update debian/ directory.

Andreas B. Mundt andi at alioth.debian.org
Thu Aug 15 19:44:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

andi pushed a commit to branch master
in repository tiemu.

commit 4b1352ce8d8e6ccd616c0fa5768796434b4cb4a0
Author: Andreas B. Mundt <andi at debian.org>
Date:   Thu Aug 15 19:43:47 2013 +0200

    Clean/update debian/ directory.
---
 debian/changelog                                   |   20 +++-
 debian/compat                                      |    2 +-
 debian/control                                     |   24 ++++-
 debian/get-orig-source.sh                          |   28 ++++++
 debian/patches/00list                              |    6 --
 debian/patches/01_gtk_disable_deprecated.dpatch    |   72 --------------
 debian/patches/02_tiemu3_dock_fixes.dpatch         |   65 ------------
 debian/patches/03_memset_include_cstring.dpatch    |   18 ----
 debian/patches/05_remove_vlc_cable.dpatch          |   32 ------
 debian/patches/06_drop_GtkNotebookPage.dpatch      |   19 ----
 debian/patches/README                              |   24 +++++
 .../patches/disable-GTK_DISABLE_DEPRECATED.patch   |   43 ++++++++
 debian/patches/format-security.patch               |   72 ++++++++++++++
 ...d_gtk_calls.dpatch => replace-GTK_WIDGET.patch} |  103 ++++++++------------
 debian/patches/replace_GtkFunction.patch           |   27 +++++
 debian/patches/replace_GtkNotebookPage.patch       |   18 ++++
 debian/patches/series                              |    5 +
 debian/rules                                       |   90 ++---------------
 debian/source/format                               |    1 +
 debian/tiemu.README.Debian                         |    7 ++
 debian/watch                                       |    4 +
 21 files changed, 317 insertions(+), 363 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cdd3830..30b7c9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,19 @@
+tiemu (3.03-nogdb+dfsg-1) UNRELEASED; urgency=low
+
+  * Team maintained in Debian-Science now (closes: #678861).
+    Modifications in cooperation with Albert Huang
+    <alberth.debian at gmail.com>, thanks!
+  * New upstream release.
+  * Switch packaging format to 3.0 (quilt), Standards-Version to 3.9.4
+    and debhelper to 9 (closes #661033).  Thanks to Jari Aalto
+    <jari.aalto at cante.net>.
+  * Update patches, and:
+    - Remove 02_tiemu3_dock_fixes.dpatch, fixed upstream.
+    - Remove 03_memset_include_cstring.dpatch, fixed upstream.
+    - Remove 05_remove_vlc_cable.dpatch, fixed upstream.
+
+ -- Andreas B. Mundt <andi at debian.org>  Mon, 12 Aug 2013 09:37:30 +0200
+
 tiemu (3.02-1.2) unstable; urgency=low
 
   * Non-maintainer upload.
@@ -180,7 +196,7 @@ gtktiemu (1.53-4) unstable; urgency=low
       rcfile.c (TTY1 => SP2_NAME)
       rcfile.h (remove DLLEXPORT)
       gtk_refresh.c (use new rate mechanism)
-      error.c (remove DLLEXPORT) 
+      error.c (remove DLLEXPORT)
 
  -- Julien BLACHE <jblache at debian.org>  Sat, 16 Feb 2002 15:48:04 +0100
 
@@ -227,7 +243,7 @@ gtktiemu (1.42-3) unstable; urgency=low
 
 gtktiemu (1.42-2) unstable; urgency=medium
 
-  * Fixed description (closes: Bug#102936). 
+  * Fixed description (closes: Bug#102936).
 
  -- Julien BLACHE <jblache at debian.org>  Sun,  8 Jul 2001 11:33:35 +0200
 
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index 78629d3..f391a1d 100644
--- a/debian/control
+++ b/debian/control
@@ -1,14 +1,30 @@
 Source: tiemu
 Section: math
 Priority: optional
-Maintainer: Krzysztof Burghardt <krzysztof at burghardt.pl>
-Build-Depends: debhelper (>= 5), libticables-dev (>= 1.2.0), libticalcs-dev (>= 1.1.0), libtifiles-dev (>= 1.1.0), libticonv-dev (>= 1.1.0), libgtk2.0-dev, libglade2-dev, zlib1g-dev, gettext, groff-base, libdbus-glib-1-dev, libsdl1.2-dev (>= 1.2.0), libncurses5-dev, bison, texinfo, flex, autotools-dev, dpatch
-Standards-Version: 3.8.3
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas B. Mundt <andi at debian.org>
+Build-Depends: autotools-dev,
+               debhelper (>= 9.0.0),
+               gettext,
+               groff-base,
+               libdbus-glib-1-dev,
+               libglade2-dev,
+               libgtk2.0-dev,
+               libsdl1.2-dev (>= 1.2.0),
+               libticables-dev (>= 1.3.4),
+               libticalcs-dev (>= 1.1.8),
+               libticonv-dev (>= 1.1.4),
+               libtifiles-dev (>= 1.1.6),
+               texinfo,
+               zlib1g-dev
+Standards-Version: 3.9.4
 Homepage: http://lpg.ticalc.org/prj_tiemu/
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/tiemu.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/tiemu.git
 
 Package: tiemu
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, iceweasel | www-browser
+Depends: iceweasel | www-browser, ${misc:Depends}, ${shlibs:Depends}
 Replaces: gtktiemu
 Conflicts: gtktiemu, tiemu-gdb
 Suggests: tiemu-skinedit
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100755
index 0000000..5ee4e53
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# C.f. http://anonscm.debian.org/viewvc/debichem/unstable/openbabel/debian/get-orig-source.sh
+#
+
+set -ex
+
+UPSTREAM_VERSION=$2
+ORIG_TARBALL=$3
+
+REAL_TARBALL=`readlink -f ${ORIG_TARBALL}`
+
+WORKING_DIR=`dirname ${ORIG_TARBALL}`
+
+ORIG_TARBALL_DFSG=`echo ${ORIG_TARBALL} | sed -e "s/\(${UPSTREAM_VERSION}\)\(\.orig\)/\1+dfsg\2/g"`
+ORIG_TARBALL_DIR=`echo ${ORIG_TARBALL_DFSG} | sed -e "s/_\(${UPSTREAM_VERSION}\)/-\1/g" -e "s/\.tar\.gz//g"`
+ORIG_TARBALL_DIR_STRIP=`basename ${ORIG_TARBALL_DIR}`
+
+mkdir -p ${ORIG_TARBALL_DIR}
+tar --directory=${ORIG_TARBALL_DIR} --strip 1 -xzf ${REAL_TARBALL} || exit 1
+rm -f ${ORIG_TARBALL} ${REAL_TARBALL}
+
+# delete binaries:
+find ${ORIG_TARBALL_DIR} -name "*.sys" -o -name "*.exe" -o -name "*.o" -o -name "*.dll" | xargs rm
+
+tar --remove-files --directory ${WORKING_DIR} -czf ${ORIG_TARBALL_DFSG} ${ORIG_TARBALL_DIR_STRIP} || exit 1
+
+exit 0
diff --git a/debian/patches/00list b/debian/patches/00list
deleted file mode 100644
index e07829f..0000000
--- a/debian/patches/00list
+++ /dev/null
@@ -1,6 +0,0 @@
-01_gtk_disable_deprecated
-02_tiemu3_dock_fixes
-03_memset_include_cstring
-04_remove_deprecated_gtk_calls
-05_remove_vlc_cable
-06_drop_GtkNotebookPage
diff --git a/debian/patches/01_gtk_disable_deprecated.dpatch b/debian/patches/01_gtk_disable_deprecated.dpatch
deleted file mode 100644
index 9b0ac40..0000000
--- a/debian/patches/01_gtk_disable_deprecated.dpatch
+++ /dev/null
@@ -1,72 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## Description: add some description
-## Origin/Author: add some origin or author
-## Bug: bug URL
-## 01_gtk_disable_deprecated.dpatch by Ralf Treinen <treinen at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: undefine GTK_DISABLE_DEPRECATED before including gtk/gtk.h.
-## DP: patch taken from Ubuntu.
-
- at DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/calc/calc.c tiemu/src/gui/calc/calc.c
---- tiemu~/src/gui/calc/calc.c	2011-04-21 19:30:02.000000000 +0200
-+++ tiemu/src/gui/calc/calc.c	2011-04-21 19:47:19.998760979 +0200
-@@ -586,7 +586,7 @@
- 
-     // Install LCD refresh: 100 FPS (10 ms)
-     tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
--		(GtkFunction)hid_refresh, NULL);
-+		(GSourceFunc)hid_refresh, NULL);
- 
- 	explicit_destroy = 0;
- 	gtk_widget_show(main_wnd);	// show wnd here
-@@ -640,7 +640,7 @@
- 	g_source_remove(tid);
- 
- 	tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
--		(GtkFunction)hid_refresh, NULL);
-+		(GSourceFunc)hid_refresh, NULL);
- }
- 
- int hid_switch_with_skin(void)
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/calc/popup.c tiemu/src/gui/calc/popup.c
---- tiemu~/src/gui/calc/popup.c	2011-04-21 19:26:31.000000000 +0200
-+++ tiemu/src/gui/calc/popup.c	2011-04-21 19:47:19.998760979 +0200
-@@ -31,7 +31,9 @@
-    This means GtkTooltipsData is now deprecated. */
- #undef GTK_DISABLE_DEPRECATED
- 
-+#undef GTK_DISABLE_DEPRECATED
- #include <gtk/gtk.h>
-+#define GTK_DISABLE_DEPRECATED
- #include <glade/glade.h>
- #include <stdlib.h>
- #include <string.h>
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/debugger/dbg_romcall.c tiemu/src/gui/debugger/dbg_romcall.c
---- tiemu~/src/gui/debugger/dbg_romcall.c	2011-04-21 19:26:31.000000000 +0200
-+++ tiemu/src/gui/debugger/dbg_romcall.c	2011-04-21 19:48:04.506429940 +0200
-@@ -29,7 +29,9 @@
- #  include <config.h>
- #endif
- 
--#include <gtk/gtk.h>
-+#undef GTK_DISABLE_DEPRECATED
-+ #include <gtk/gtk.h>
-+#define GTK_DISABLE_DEPRECATED
- #include <glade/glade.h>
- #include <string.h>
- 
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu~/src/gui/filesel.c tiemu/src/gui/filesel.c
---- tiemu~/src/gui/filesel.c	2011-04-21 19:26:31.000000000 +0200
-+++ tiemu/src/gui/filesel.c	2011-04-21 19:47:19.998760979 +0200
-@@ -41,7 +41,9 @@
- 
- #include <stdio.h>
- #include <stdlib.h>
-+#undef GTK_DISABLE_DEPRECATED
- #include <gtk/gtk.h>
-+#define GTK_DISABLE_DEPRECATED
- #include <string.h>
- 
- #ifdef __WIN32__
diff --git a/debian/patches/02_tiemu3_dock_fixes.dpatch b/debian/patches/02_tiemu3_dock_fixes.dpatch
deleted file mode 100644
index ae32251..0000000
--- a/debian/patches/02_tiemu3_dock_fixes.dpatch
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 02_tiemu3_dock_fixes.dpatch by Krzysztof Burghardt <krzysztof at burghardt.pl>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: fixes problems with debugging in dock mode and dock window
-## DP: enabling/disabling; patch taken from upstream.
-
- at DPATCH@
-diff -urNad tiemu-3.02~/ChangeLog tiemu-3.02/ChangeLog
---- tiemu-3.02~/ChangeLog	2007-12-31 00:15:51.000000000 +0100
-+++ tiemu-3.02/ChangeLog	2009-08-09 23:19:36.104542592 +0200
-@@ -1,5 +1,9 @@
- SubVersion: $Id: ChangeLog 2754 2007-12-30 23:15:51Z kevinkofler $
- 
-+- 12/02/2008, version 3.03:
-+	- [kevin] $2765: fixed crash when debugging TIGCC program with GDB with low-level debugger in dock mode
-+	- [kevin] $2766: fixed dock window enabling/disabling not to keep the engine running across the restart
-+
- - 16/09/2007, version 3.02:
- 	- [roms]  $2646: screenshots can be copied into the clipboard
- 	- [roms]  $2649: use fixed fonts for release and manpage dboxes
-diff -urNad tiemu-3.02~/src/gui/debugger/dbg_all.c tiemu-3.02/src/gui/debugger/dbg_all.c
---- tiemu-3.02~/src/gui/debugger/dbg_all.c	2007-12-14 22:03:03.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_all.c	2009-08-09 23:19:36.104542592 +0200
-@@ -7,7 +7,7 @@
-  *  Copyright (c) 2001-2003, Romain Lievin
-  *  Copyright (c) 2003, Julien Blache
-  *  Copyright (c) 2004, Romain Li�vin
-- *  Copyright (c) 2005-2007, Romain Li�vin, Kevin Kofler
-+ *  Copyright (c) 2005-2008, Romain Li�vin, Kevin Kofler
-  *
-  *  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
-@@ -164,7 +164,7 @@
- 
- 			ti68k_bkpt_get_pgmentry_offset(id, &handle, &offset);
- 			ti68k_bkpt_del_pgmentry(handle);
--			if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
-+			if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
- 				dbgbkpts_refresh_window();
- 
- 			delete_command(NULL, 0);
-diff -urNad tiemu-3.02~/src/gui/debugger/dbg_wnds.c tiemu-3.02/src/gui/debugger/dbg_wnds.c
---- tiemu-3.02~/src/gui/debugger/dbg_wnds.c	2007-12-15 23:29:44.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_wnds.c	2009-08-09 23:19:36.100541655 +0200
-@@ -7,7 +7,7 @@
-  *  Copyright (c) 2001-2003, Romain Lievin
-  *  Copyright (c) 2003, Julien Blache
-  *  Copyright (c) 2004, Romain Li�vin
-- *  Copyright (c) 2005-2007, Romain Li�vin, Kevin Kofler
-+ *  Copyright (c) 2005-2008, Romain Li�vin, Kevin Kofler
-  *
-  *  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
-@@ -265,6 +265,10 @@
- 	engine_start();
- #endif
- 	gtk_debugger_close();
-+	// Stop the engine before calling gtk_main_quit.
-+	// Otherwise, it will keep running even when it is supposed to have
-+	// been stopped by the debugger.
-+	engine_stop();
- 	if(options3.dbg_dock)
- 		gtk_widget_destroy(dbgw.dock);
- 
diff --git a/debian/patches/03_memset_include_cstring.dpatch b/debian/patches/03_memset_include_cstring.dpatch
deleted file mode 100644
index d8f1547..0000000
--- a/debian/patches/03_memset_include_cstring.dpatch
+++ /dev/null
@@ -1,18 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 03_memset_include_cstring.dpatch by Krzysztof Burghardt <krzysztof at burghardt.pl>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Fixes error: ‘memset’ is not a member of ‘std’.
-
- at DPATCH@
-diff -urNad tiemu-3.02~/src/ipc/dcop/dcop.cpp tiemu-3.02/src/ipc/dcop/dcop.cpp
---- tiemu-3.02~/src/ipc/dcop/dcop.cpp	2007-12-14 22:28:08.000000000 +0100
-+++ tiemu-3.02/src/ipc/dcop/dcop.cpp	2009-08-09 23:36:14.000528344 +0200
-@@ -18,6 +18,7 @@
-  */
- 
- #include <cstdlib>
-+#include <cstring>
- #include <glib.h>
- #include <gtk/gtk.h>
- #include <dcopobject.h>
diff --git a/debian/patches/05_remove_vlc_cable.dpatch b/debian/patches/05_remove_vlc_cable.dpatch
deleted file mode 100644
index 0d5ca19..0000000
--- a/debian/patches/05_remove_vlc_cable.dpatch
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 05_remove_vlc_cable.dpatch by  <scott at kitterman.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Fix FTBFS with newer libs - Cherry pick from upstream svn
-## DP: http://svn.tilp.info/cgi-bin/viewvc.cgi/tiemu/trunk/src/gui/device.c?root=tiemu&view=log#rev2820
-
- at DPATCH@
-diff -urNad tiemu-3.02~/src/gui/device.c tiemu-3.02/src/gui/device.c
---- tiemu-3.02~/src/gui/device.c	2007-12-30 18:14:15.000000000 -0500
-+++ tiemu-3.02/src/gui/device.c	2010-04-26 01:34:36.657234841 -0400
-@@ -102,10 +102,6 @@
- 		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 7);
- 	break;
- 	
--	case CABLE_VTL:
--		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 8);
--	break;   
--
- 	case CABLE_ILP:
- 		gtk_option_menu_set_history(GTK_OPTION_MENU(data), 9);
- 	break;
-@@ -194,8 +190,7 @@
- 	case 5: tmp.cable_model = CABLE_USB; break;	
- 	case 6: tmp.cable_model = CABLE_VTI; break;
- 	case 7: tmp.cable_model = CABLE_TIE; break;
--	case 8: tmp.cable_model = CABLE_VTL; break;
--	case 9: tmp.cable_model = CABLE_ILP; break;
-+	case 8: tmp.cable_model = CABLE_ILP; break;
- 	}
- }
- 
diff --git a/debian/patches/06_drop_GtkNotebookPage.dpatch b/debian/patches/06_drop_GtkNotebookPage.dpatch
deleted file mode 100644
index 5da1c79..0000000
--- a/debian/patches/06_drop_GtkNotebookPage.dpatch
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 06_drop_GtkNotebookPage.dpatch by  <scott at kitterman.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Replace deprecated function with gpointer to fix FTBFS.
-
- at DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_mem.c tiemu-3.02/src/gui/debugger/dbg_mem.c
---- tiemu-3.02~/src/gui/debugger/dbg_mem.c	2010-10-17 14:32:16.000000000 -0400
-+++ tiemu-3.02/src/gui/debugger/dbg_mem.c	2010-10-17 14:33:27.000000000 -0400
-@@ -593,7 +593,7 @@
- 
- GLADE_CB void
- on_notebook1_switch_page               (GtkNotebook     *notebook,
--                                        GtkNotebookPage *page,
-+                                        gpointer        *page,
-                                         guint            page_num,
-                                         gpointer         user_data)
- {
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..e2d434e
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,24 @@
+## These commands create all patches:
+
+sed -i "s/(GtkFunction)/(GSourceFunc)/" src/gui/calc/calc.c
+
+################
+
+sed -i 's/GtkNotebookPage/gpointer/' src/gui/debugger/dbg_mem.c
+
+################
+
+sed -i -e "/\#include <gtk\/gtk.h>/i \
+\#undef GTK_DISABLE_DEPRECATED" src/gui/calc/popup.c src/gui/debugger/dbg_romcall.c src/gui/filesel.c
+sed -i -e "/\#include <gtk\/gtk.h>/a \
+\#define GTK_DISABLE_DEPRECATED" src/gui/calc/popup.c src/gui/debugger/dbg_romcall.c src/gui/filesel.c
+
+################
+
+sed -i 's/\([^)][,| ]\) message)/\1 "%s", message)/' src/gui/calc/popup.c src/gui/dboxes.c
+
+###############
+
+sed -i -s "s/GTK_WIDGET_STATE/gtk_widget_get_state/" src/gui/calc/calc.c src/gui/calc/screen.c
+sed -i -s "s/GTK_WIDGET_VISIBLE/gtk_widget_get_visible/" src/gui/debugger/dbg_*.c
+sed -i -s "s/GTK_WIDGET_SENSITIVE/gtk_widget_get_sensitive/" src/gui/debugger/dbg_all.c src/gui/debugger/dbg_code.c
diff --git a/debian/patches/disable-GTK_DISABLE_DEPRECATED.patch b/debian/patches/disable-GTK_DISABLE_DEPRECATED.patch
new file mode 100644
index 0000000..58e0ea5
--- /dev/null
+++ b/debian/patches/disable-GTK_DISABLE_DEPRECATED.patch
@@ -0,0 +1,43 @@
+Description: Fix FTBFS: Undefine GTK_DISABLE_DEPRECATED before 
+ including gtk/gtk.h.  Cf. README
+Author: Ubuntu
+Reviewed-by: Ralf Treinen <treinen at debian.org>
+Reviewed-by: Andreas B. Mundt <andi at debian.org>
+Last-Update: 2013-08-15
+
+--- a/src/gui/calc/popup.c
++++ b/src/gui/calc/popup.c
+@@ -26,7 +26,9 @@
+ #  include <config.h>
+ #endif
+ 
++#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <glade/glade.h>
+ #include <stdlib.h>
+ #include <string.h>
+--- a/src/gui/debugger/dbg_romcall.c
++++ b/src/gui/debugger/dbg_romcall.c
+@@ -29,7 +29,9 @@
+ #  include <config.h>
+ #endif
+ 
++#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <glade/glade.h>
+ #include <string.h>
+ 
+--- a/src/gui/filesel.c
++++ b/src/gui/filesel.c
+@@ -41,7 +41,9 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
++#define GTK_DISABLE_DEPRECATED
+ #include <string.h>
+ 
+ #ifdef __WIN32__
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..c278657
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,72 @@
+Description: Fix FTBFS with format-security warning/error.
+ Cf. README
+Author: Andreas B. Mundt <andi at debian.org>
+Last-Update: 2013-08-15
+
+--- a/src/gui/calc/popup.c
++++ b/src/gui/calc/popup.c
+@@ -536,7 +536,7 @@
+   
+ 	dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
+ 				  GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
+-				  message);
++				  "%s", message);
+ 	gtk_dialog_run(GTK_DIALOG(dialog));
+ 	gtk_widget_destroy(dialog);
+ #else
+@@ -556,7 +556,7 @@
+   
+ 	dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
+ 				  GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
+-				  message);
++				  "%s", message);
+ 	gtk_dialog_run(GTK_DIALOG(dialog));
+ 	gtk_widget_destroy(dialog);
+ }
+@@ -857,7 +857,7 @@
+ 
+ 		dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
+ 					   GTK_MESSAGE_INFO,
+-					   GTK_BUTTONS_CLOSE, message);
++					   GTK_BUTTONS_CLOSE, "%s", message);
+ 		g_signal_connect_swapped(GTK_OBJECT(dialog), "response",
+ 					 G_CALLBACK(gtk_widget_destroy),
+ 					 GTK_OBJECT(dialog));
+--- a/src/gui/dboxes.c
++++ b/src/gui/dboxes.c
+@@ -64,7 +64,7 @@
+ 	{
+ 		dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
+ 					   msg_type, GTK_BUTTONS_CLOSE,
+-					   message);
++					   "%s", message);
+ 		gtk_dialog_run(GTK_DIALOG(dialog));
+ 	} 
+ 	else 
+@@ -102,7 +102,7 @@
+ 
+ 	msg_type = str2msg(title);
+ 	dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, msg_type,
+-				   GTK_BUTTONS_OK_CANCEL, message);
++				   GTK_BUTTONS_OK_CANCEL, "%s", message);
+ 	gtk_dialog_set_alternative_button_order(GTK_DIALOG(dialog), GTK_RESPONSE_OK,
+ 	                                        GTK_RESPONSE_CANCEL,-1);
+ 	gtk_dialog_set_default_response(GTK_DIALOG(dialog),
+@@ -133,7 +133,7 @@
+ 
+ 	msg_type = str2msg(title);
+ 	dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, msg_type,
+-				   GTK_BUTTONS_NONE, message);
++				   GTK_BUTTONS_NONE, "%s", message);
+ 	gtk_dialog_add_button(GTK_DIALOG(dialog), button1, GTK_RESPONSE_YES);
+ 	gtk_dialog_add_button(GTK_DIALOG(dialog), button2, GTK_RESPONSE_NO);
+ 	gtk_dialog_add_button(GTK_DIALOG(dialog), button3, GTK_RESPONSE_CANCEL);
+@@ -171,7 +171,7 @@
+ 
+ 	msg_type = str2msg(title);
+ 	dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, msg_type,
+-				   GTK_BUTTONS_NONE, message);
++				   GTK_BUTTONS_NONE, "%s", message);
+ 	gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_GO_FORWARD, GTK_RESPONSE_OK);
+ 	gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ 	gtk_dialog_set_alternative_button_order(GTK_DIALOG(dialog), GTK_RESPONSE_OK,
diff --git a/debian/patches/04_remove_deprecated_gtk_calls.dpatch b/debian/patches/replace-GTK_WIDGET.patch
similarity index 71%
rename from debian/patches/04_remove_deprecated_gtk_calls.dpatch
rename to debian/patches/replace-GTK_WIDGET.patch
index 863d26b..97566b5 100644
--- a/debian/patches/04_remove_deprecated_gtk_calls.dpatch
+++ b/debian/patches/replace-GTK_WIDGET.patch
@@ -1,13 +1,13 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 04_remove_depricated_gtk_calls.dpatch by  <dktrkranz at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
+Description: Fix FTBFS: Replace 'GTK_WIDGET_STATE'.
+ Cf. README
+Author: Scott Howard
+Reviewed-by: Luca Falavigna <dktrkranz at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Reviewed-by: Andreas B. Mundt <andi at debian.org>
+Last-Update: 2013-08-15
 
- at DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/calc/calc.c tiemu-3.02/src/gui/calc/calc.c
---- tiemu-3.02~/src/gui/calc/calc.c	2007-12-16 16:29:16.000000000 +0100
-+++ tiemu-3.02/src/gui/calc/calc.c	2010-05-08 13:42:37.071928317 +0200
+--- a/src/gui/calc/calc.c
++++ b/src/gui/calc/calc.c
 @@ -313,7 +313,7 @@
  {
      gdk_draw_pixmap(
@@ -17,9 +17,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		pixmap,
  		event->area.x, event->area.y,
  		event->area.x, event->area.y,
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/calc/screen.c tiemu-3.02/src/gui/calc/screen.c
---- tiemu-3.02~/src/gui/calc/screen.c	2006-11-06 18:18:51.000000000 +0100
-+++ tiemu-3.02/src/gui/calc/screen.c	2010-05-08 13:42:37.071928317 +0200
+--- a/src/gui/calc/screen.c
++++ b/src/gui/calc/screen.c
 @@ -187,7 +187,7 @@
  	skin_infos.image = gdk_pixbuf_scale_simple(skin_infos.raw, wr.wr.w, wr.wr.h, GDK_INTERP_NEAREST);
  
@@ -56,13 +55,12 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  			  lcd_mem, src.x, src.y, lr.x, lr.y, src.w, src.h,
  			  GDK_RGB_DITHER_NONE, 0, 0);
  			gtk_widget_queue_draw_area(area, lr.x, lr.y, src.w, src.h);
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_all.c tiemu-3.02/src/gui/debugger/dbg_all.c
---- tiemu-3.02~/src/gui/debugger/dbg_all.c	2010-05-08 13:42:22.315925510 +0200
-+++ tiemu-3.02/src/gui/debugger/dbg_all.c	2010-05-08 13:42:37.071928317 +0200
-@@ -81,21 +81,21 @@
- 
- void gtk_debugger_refresh(void)
+--- a/src/gui/debugger/dbg_all.c
++++ b/src/gui/debugger/dbg_all.c
+@@ -90,21 +90,21 @@
  {	
+ 	WND_TMR_START();
+ 
 -	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.regs))
 +	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.regs))
  		dbgregs_refresh_window();
@@ -87,9 +85,9 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
 -	if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.iop))
 +	if(options3.dbg_dock || gtk_widget_get_visible(dbgw.iop))
  		dbgiop_refresh_window();
- }
  
-@@ -147,7 +147,7 @@
+ 	WND_TMR_STOP("Debugger Refresh Time");
+@@ -163,7 +163,7 @@
  	gtk_debugger_refresh();
  
  	// enable the debugger if GDB disabled it
@@ -98,7 +96,7 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_debugger_enable();
  
  	// handle automatic debugging requests
-@@ -164,7 +164,7 @@
+@@ -180,7 +180,7 @@
  
  			ti68k_bkpt_get_pgmentry_offset(id, &handle, &offset);
  			ti68k_bkpt_del_pgmentry(handle);
@@ -107,9 +105,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  				dbgbkpts_refresh_window();
  
  			delete_command(NULL, 0);
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_bkpts.c tiemu-3.02/src/gui/debugger/dbg_bkpts.c
---- tiemu-3.02~/src/gui/debugger/dbg_bkpts.c	2007-12-14 22:03:03.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_bkpts.c	2010-05-08 13:42:37.075928108 +0200
+--- a/src/gui/debugger/dbg_bkpts.c
++++ b/src/gui/debugger/dbg_bkpts.c
 @@ -388,7 +388,7 @@
  		gtk_window_iconify(GTK_WINDOW(wnd));
  #endif
@@ -119,10 +116,9 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(wnd);
  
  	return wnd;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_code.c tiemu-3.02/src/gui/debugger/dbg_code.c
---- tiemu-3.02~/src/gui/debugger/dbg_code.c	2007-12-31 00:14:15.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_code.c	2010-05-08 13:42:37.075928108 +0200
-@@ -1096,7 +1096,7 @@
+--- a/src/gui/debugger/dbg_code.c
++++ b/src/gui/debugger/dbg_code.c
+@@ -1117,7 +1117,7 @@
  
  int dbgcode_quit_enabled(void)
  {
@@ -131,9 +127,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  }
  
  static int close_debugger_wrapper(gpointer data)
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_dock.c tiemu-3.02/src/gui/debugger/dbg_dock.c
---- tiemu-3.02~/src/gui/debugger/dbg_dock.c	2007-12-14 22:03:43.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_dock.c	2010-05-08 13:43:13.795927044 +0200
+--- a/src/gui/debugger/dbg_dock.c
++++ b/src/gui/debugger/dbg_dock.c
 @@ -151,22 +151,22 @@
  
  void dbgdock_show_all(int all)
@@ -162,12 +157,9 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
 -	if(GTK_WIDGET_VISIBLE(dbgw.iop))
 +	if(gtk_widget_get_visible(dbgw.iop))
          gtk_widget_hide(dbgw.iop);
--}
-\ No newline at end of file
-+}
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_heap.c tiemu-3.02/src/gui/debugger/dbg_heap.c
---- tiemu-3.02~/src/gui/debugger/dbg_heap.c	2007-12-15 18:50:47.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_heap.c	2010-05-08 13:42:37.079927630 +0200
+ }
+--- a/src/gui/debugger/dbg_heap.c
++++ b/src/gui/debugger/dbg_heap.c
 @@ -171,7 +171,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.heap));
  #endif
@@ -177,9 +169,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.heap);
  
  	return dbgw.heap;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_iop.c tiemu-3.02/src/gui/debugger/dbg_iop.c
---- tiemu-3.02~/src/gui/debugger/dbg_iop.c	2007-12-15 18:50:47.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_iop.c	2010-05-08 13:42:37.079927630 +0200
+--- a/src/gui/debugger/dbg_iop.c
++++ b/src/gui/debugger/dbg_iop.c
 @@ -455,7 +455,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.iop));
  #endif
@@ -189,9 +180,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.iop);
  
  	return dbgw.iop;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_mem.c tiemu-3.02/src/gui/debugger/dbg_mem.c
---- tiemu-3.02~/src/gui/debugger/dbg_mem.c	2007-12-31 00:14:15.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_mem.c	2010-05-08 13:42:37.095933764 +0200
+--- a/src/gui/debugger/dbg_mem.c
++++ b/src/gui/debugger/dbg_mem.c
 @@ -435,7 +435,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.mem));
  #endif
@@ -201,9 +191,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.mem);
  
      return dbgw.mem;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_pclog.c tiemu-3.02/src/gui/debugger/dbg_pclog.c
---- tiemu-3.02~/src/gui/debugger/dbg_pclog.c	2007-12-15 18:50:47.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_pclog.c	2010-05-08 13:42:37.111918589 +0200
+--- a/src/gui/debugger/dbg_pclog.c
++++ b/src/gui/debugger/dbg_pclog.c
 @@ -163,7 +163,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
  #endif
@@ -213,9 +202,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.pclog);
  
  	return dbgw.pclog;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_regs.c tiemu-3.02/src/gui/debugger/dbg_regs.c
---- tiemu-3.02~/src/gui/debugger/dbg_regs.c	2007-12-21 20:57:24.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_regs.c	2010-05-08 13:42:37.111918589 +0200
+--- a/src/gui/debugger/dbg_regs.c
++++ b/src/gui/debugger/dbg_regs.c
 @@ -302,7 +302,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.regs));
  #endif
@@ -225,9 +213,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.regs);
  
  	return dbgw.regs;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_stack.c tiemu-3.02/src/gui/debugger/dbg_stack.c
---- tiemu-3.02~/src/gui/debugger/dbg_stack.c	2007-12-15 18:50:47.000000000 +0100
-+++ tiemu-3.02/src/gui/debugger/dbg_stack.c	2010-05-08 13:42:37.111918589 +0200
+--- a/src/gui/debugger/dbg_stack.c
++++ b/src/gui/debugger/dbg_stack.c
 @@ -197,7 +197,7 @@
  		gtk_window_iconify(GTK_WINDOW(dbgw.stack));
  #endif
@@ -237,9 +224,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
  		gtk_widget_show(dbgw.stack);
  
  	return dbgw.stack;
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' tiemu-3.02~/src/gui/debugger/dbg_wnds.c tiemu-3.02/src/gui/debugger/dbg_wnds.c
---- tiemu-3.02~/src/gui/debugger/dbg_wnds.c	2010-05-08 13:42:22.315925510 +0200
-+++ tiemu-3.02/src/gui/debugger/dbg_wnds.c	2010-05-08 13:43:34.895905709 +0200
+--- a/src/gui/debugger/dbg_wnds.c
++++ b/src/gui/debugger/dbg_wnds.c
 @@ -74,21 +74,21 @@
  	if(options3.dbg_dock)
  		return;
@@ -423,10 +409,3 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
      g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_ioports_frame1_activate, NULL);
  
  	// dock/multi mode
-@@ -718,4 +718,4 @@
- {
- 	printf("Duration (%s): %i ms\n", str, TO_CURRENT(profile));
- }
--*/
-\ No newline at end of file
-+*/
diff --git a/debian/patches/replace_GtkFunction.patch b/debian/patches/replace_GtkFunction.patch
new file mode 100644
index 0000000..6660904
--- /dev/null
+++ b/debian/patches/replace_GtkFunction.patch
@@ -0,0 +1,27 @@
+Description: Fix FTBFS: Replace 'GtkFunction'.
+ Cf. README
+Author: Andreas Moog
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Reviewed-by: Andreas B. Mundt <andi at debian.org>
+Last-Update: 2013-08-15
+
+--- a/src/gui/calc/calc.c
++++ b/src/gui/calc/calc.c
+@@ -586,7 +586,7 @@
+ 
+     // Install LCD refresh: 100 FPS (10 ms)
+     tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
+-		(GtkFunction)hid_refresh, NULL);
++		(GSourceFunc)hid_refresh, NULL);
+ 
+ 	explicit_destroy = 0;
+ 	gtk_widget_show(main_wnd);	// show wnd here
+@@ -640,7 +640,7 @@
+ 	g_source_remove(tid);
+ 
+ 	tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate, 
+-		(GtkFunction)hid_refresh, NULL);
++		(GSourceFunc)hid_refresh, NULL);
+ }
+ 
+ int hid_switch_with_skin(void)
diff --git a/debian/patches/replace_GtkNotebookPage.patch b/debian/patches/replace_GtkNotebookPage.patch
new file mode 100644
index 0000000..3926568
--- /dev/null
+++ b/debian/patches/replace_GtkNotebookPage.patch
@@ -0,0 +1,18 @@
+Description: Fix FTBFS: Replace 'GtkNotebookPage'.
+ Cf. README
+Author: <scott at kitterman.com>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Reviewed-by: Andreas B. Mundt <andi at debian.org>
+Last-Update: 2013-08-15
+
+--- a/src/gui/debugger/dbg_mem.c
++++ b/src/gui/debugger/dbg_mem.c
+@@ -605,7 +605,7 @@
+ 
+ GLADE_CB void
+ on_notebook1_switch_page               (GtkNotebook     *notebook,
+-                                        GtkNotebookPage *page,
++                                        gpointer *page,
+                                         guint            page_num,
+                                         gpointer         user_data)
+ {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ed24694
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+replace_GtkFunction.patch
+replace_GtkNotebookPage.patch
+disable-GTK_DISABLE_DEPRECATED.patch
+format-security.patch
+replace-GTK_WIDGET.patch
diff --git a/debian/rules b/debian/rules
index da0b038..d07d33a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,89 +1,15 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-include /usr/share/dpatch/dpatch.make
+%:
+	dh $@  --with autotools-dev
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+override_dh_auto_configure:
+	dh_auto_configure -- --without-kde --disable-gdb --enable-dbus
 
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-autotools:
-	rm -f config.sub config.guess
-	ln -s /usr/share/misc/config.sub config.sub
-	ln -s /usr/share/misc/config.guess config.guess
-
-configure: configure-stamp
-configure-stamp: autotools
-	dh_testdir
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
-		--prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" \
-		LDFLAGS="-Wl,-z,defs" --without-kde --disable-gdb --enable-dbus
-	touch configure-stamp
-
-build: configure-stamp build-stamp
-build-stamp: patch
-	dh_testdir
-	$(MAKE)
-	touch build-stamp
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f build-stamp configure-stamp po/stamp-po build/Makefile
-	rm -f config.sub config.guess
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) install prefix=$(CURDIR)/debian/tiemu/usr
-	# .gladep files should not be installed
-	rm -rf debian/tiemu/usr/share/tiemu/glade/*.gladep
-	# avoid installing another copy of the GPL
-	cd debian/tiemu/usr/share/tiemu && ln -sf ../common-licenses/GPL COPYING && cd -
-
-# Build architecture-independent files here.
-binary-indep: build install
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installmenu
-	dh_installman
-	dh_installinfo
-	dh_installchangelogs ChangeLog
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure patch unpach
+override_dh_auto_install:
+	dh_auto_install
+	rm debian/tiemu/usr/share/tiemu/COPYING
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tiemu.README.Debian b/debian/tiemu.README.Debian
new file mode 100644
index 0000000..de90615
--- /dev/null
+++ b/debian/tiemu.README.Debian
@@ -0,0 +1,7 @@
+TiEmu3 for Debian :
+-------------------
+
+Please read /usr/share/doc/libticables2-6/CONFIG.gz; this file contains
+important information about the setup of TiEmu and/or libticables2-6.
+
+-- Romain LIEVIN <roms at tilp.info>, Tue, 01 May 2007 18:02:46 +0200
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3a5b2a3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=dversionmangle=s/\+dfsg$//;s/-nogdb$// \
+http://sf.net/gtktiemu/tiemu-(.+-nogdb)\.tar\.gz \
+debian /bin/sh debian/get-orig-source.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tiemu.git



More information about the debian-science-commits mailing list