diff -Nur amaya-8.5.orig/debian/control amaya-8.5/debian/control
--- amaya-8.5.orig/debian/control	2005-10-03 03:27:51.000000000 +0200
+++ amaya-8.5/debian/control	2005-10-03 02:43:48.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Steve Dunham <dunham@debian.org>
 Standards-Version: 3.5.8
-Build-Depends: bison, flex, autoconf, automake1.6, debhelper (>= 4.1.34), libtool, libjpeg62-dev, libpng2-dev, zlib1g-dev, libgtk1.2-dev, gdk-imlib1-dev, perl, libungif4-dev, autotools-dev
+Build-Depends: bison, flex, autoconf, automake1.6, debhelper (>= 4.1.34), libtool, libjpeg62-dev, libpng3-dev, zlib1g-dev, libgtk1.2-dev, gdk-imlib1-dev, perl, libungif4-dev, autotools-dev
 
 Package: amaya
 Architecture: any
diff -Nur amaya-8.5.orig/debian/patches/ia64.diff amaya-8.5/debian/patches/ia64.diff
--- amaya-8.5.orig/debian/patches/ia64.diff	2005-10-03 03:27:51.000000000 +0200
+++ amaya-8.5/debian/patches/ia64.diff	2005-10-03 03:25:41.000000000 +0200
@@ -45,14 +45,14 @@
  AC_C_INLINE
  AC_TYPE_MODE_T
 diff -Nru Amaya.orig/thotlib/base/fileaccess.c Amaya/thotlib/base/fileaccess.c
---- Amaya.orig/thotlib/base/fileaccess.c	2003-07-04 05:35:35.000000000 -0700
-+++ Amaya/thotlib/base/fileaccess.c	2003-08-25 14:05:10.000000000 -0700
-@@ -268,35 +268,15 @@
+--- Amaya.orig/thotlib/base/fileaccess.c	2004-04-27 15:16:24.000000000 +0200
++++ Amaya/thotlib/base/fileaccess.c	2005-10-03 03:23:00.000000000 +0200
+@@ -264,33 +264,15 @@
    float f;
    /* This is the IEEE 754 float-precision format.  */
    struct {
 -#ifdef _WINDOWS
--	unsigned int negative:1;
+-    unsigned int negative:1;
 -    unsigned int exponent:8;
 -    unsigned int mantissa:23;
 -#else /*_WINDOWS*/
@@ -61,26 +61,24 @@
 -    unsigned int negative:1;
 -    unsigned int exponent:8;
 -    unsigned int mantissa:23;
--#endif
--#if     __BYTE_ORDER == __LITTLE_ENDIAN
+-#else
 -    unsigned int mantissa:23;
 -    unsigned int exponent:8;
 -    unsigned int negative:1;
 -#endif
--#else
+-#else /* i386 || __i386 */
 -#if defined(_BIG_ENDIAN)
 +#if defined(WORDS_BIGENDIAN)
      unsigned int negative:1;
      unsigned int exponent:8;
      unsigned int mantissa:23;
--#endif
--#if defined(_LITTLE_ENDIAN)
+-#else
 +#else /*WORDS_BIGENDIAN*/
      unsigned int mantissa:23;
      unsigned int exponent:8;
      unsigned int negative:1;
 -#endif
--#endif
+-#endif /* i386 || __i386 */
 -#endif /*_WINDOWS*/
 +#endif /*WORDS_BIGENDIAN*/
    } ieee;

