adding Debian build directory
diff --git a/ChangeLog b/ChangeLog
index 280a62f..f3cac88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-06-23  Anthony Fok   <fok@debian.org>
+
+	* debian/*: Added Debian package build directory for 2.0.4
+
 2001-06-22  David Turner  <david@freetype.org>
 
 	* docs/PATENTS: Added patents disclaimer.  This one was missing!
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..6f6b0ac
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,35 @@
+FreeType 2 for Debian
+---------------------
+
+Hurray!  FreeType 2 is finally here!  :-)  The "7" in the package name
+"libfreetype7" is the major soname of FreeType 2's libfreetype.
+
+According to the FreeType 2 FAQ,
+
+    The FreeType 2 API is a lot simpler than the one in 1.x while being
+    much more powerful. We thus encourage you to adapt your source code
+    to it as this should not involve much work.
+
+So please try your best to help migrate your software to FreeType 2.
+
+FreeType 2.0.x can co-exist peacefully with FreeType 1.x with no namespace
+conflicts.  However, the source package names must be distinguished in
+Debian.  So, to truly conform with the library naming convention outlined
+in the Debian Policy, I've decided the following names for the FreeType
+packages in Debian 2.3:
+
+  FreeType 2.0.x:
+      Source package: freetype_2.0.x.orig.tar.gz     (current version)
+     library package: libfreetype7_2.0.x-x      (libfreetype, soname 7)
+       devel package: libfreetype7-dev_2.0.x-x  (libfreetype, soname 7)
+
+  FreeType 1.x:
+      Source package: freetype1_1.x.orig.tar.gz        (for FreeType 1)
+     library package: libttf2_1.x-?                  (libttf, soname 2)
+       devel package: libttf-dev_1.x-?               (libttf, soname 2)
+
+Simple, non?
+
+Enjoy!  :-)
+
+ -- Anthony Fok <foka@debian.org>, Mon, 23 Apr 2001 23:07:16 -0600
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b0cce98
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,474 @@
+freetype (2.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Renamed /usr/bin/memtest to /usr/bin/ftmemtest to avoid
+    namespace conflict with /usr/sbin/memtest of the sysutils package.
+
+ -- Anthony Fok <foka@debian.org>  Thu, 31 May 2001 22:11:05 -0600
+
+freetype (2.0.2.20010514-1) unstable; urgency=low
+
+  * New upstream snapshot, post-2.0.2 freetype2-current as of 2001-05-14.
+  * Silly me!  I fixed the `missing "xlibs-dev" in Build-Depends'
+    in 2.0.2.20010422-2, but closed the wrong bug report!?
+    Thanks to Martin Schmitz for the bug report.  (Closes: Bug#95328)
+  * libtool-1.4 is not 100% compatible with the libtool-1.3.5 included
+    in the upstream source.  Also, it seems to be unnecessary to
+    Build-Depends on libtool, therefore removed.
+    Thanks to Laurent Bonnaud for the bug report.  (Closes: Bug#97552)
+  * [ftoption.h]: #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
+ -- Anthony Fok <foka@debian.org>  Tue, 15 May 2001 16:49:26 -0600
+
+freetype (2.0.2.20010422-2) unstable; urgency=medium
+
+  * Hehe, silly me, I forgot to add "xlibs-dev" to Build-Depends
+    when I merged in freetype2-demos.  Thanks to Martin Michlmayr
+    for the notice.  Closes: Bug#94569.
+
+ -- Anthony Fok <foka@debian.org>  Thu, 26 Apr 2001 21:20:17 -0600
+
+freetype (2.0.2.20010422-1) unstable; urgency=low
+
+  * Updated to post-2.0.2 freetype2-current as of 2001-04-22.
+  * On i386, freetype2-demos is rebuilt with xlibs_4.0.2-13 instead of the
+    pre-release xlibs_4.0.3.  My apologies.
+  * Replaced "tetex-dev" with "libkpathsea-dev" in Build-Depends.
+    Thanks to Michael Schmitz for the bug report.  Closes: Bug#91897.
+  * Updated README.Debian to reflect the FreeType 1.x package name
+    change from freetype2{,-dev} [sic] to libttf{2,-dev}.
+
+ -- Anthony Fok <foka@debian.org>  Mon, 23 Apr 2001 23:08:51 -0600
+
+freetype (2.0.2.20010412-1) unstable; urgency=low
+
+  * New upstream release, post-2.0.2 freetype2-current as of 2001-04-12.
+  * Arnd Bergmann, Tom Kacvinsky et al. pinpointed and fixed a bug
+    in FreeType-2.0.2 which caused KDE and "xterm -fa" to segfault.
+    Thanks guys!  :-)  Closes: Bug#89326.
+  * New binary package: freetype2-demos.
+  * The source package reorganized to include three upstream tarballs
+    (freetype, ftdocs, ft2demos) in one *.orig.tar.gz.
+
+ -- Anthony Fok <foka@debian.org>  Fri, 13 Apr 2001 02:02:42 -0600
+
+freetype (2.0.1.20010317-1) unstable; urgency=low
+
+  * Updated to freetype2-current as of 2001-03-17.
+  * [builds/unix/install.mk]:
+     - IMHO, the current upstream source caters too much to broken
+       compilers that the Unix build suffers somewhat.
+     - Use sed to replace all instances of
+       <freetype/{,config/,internal/}*.h>
+       with FT2_{PUBLIC,CONFIG,INTERNAL}_FILE(*.h), which currently
+       expands to <freetype2/freetype/{,config/,internal/}*.h>
+       in freetype/config/ftheader.h and freetype/internal/internal.h.
+     - This fix, without sacrificing compatibility on some brain-dead
+       compilers on other platforms, may mean that
+       "-I/usr/include/freetype2" is no longer needed on Unix/Linux/Hurd
+       platforms.
+     - But it would be very foolish to remove "-I/usr/include/freetype2".
+       Thou shalt always use $(shell freetype-config --cflags).
+     - Thanks to Gordon Sadler for the suggestion.  :-)
+       Closes: Bug#79951.
+  * [builds/unix/ft2unix.h]:
+     - Removed the FT2_{PUBLIC,CONFIG,INTERNAL}_FILE macros because
+       they are already defined in freetype/config/ftheader.h.
+     - Use FT2_ROOT instead.  Afterall, cpp on Unix is not broken.  ;-)
+     - Thanks to Takuo Kitame for reporting the conflicting #define's.
+       Closes: Bug#89363.
+  * [debian/rules]: Moved out some old cruft to rules.museum.
+
+ -- Anthony Fok <foka@debian.org>  Mon, 19 Mar 2001 03:27:14 -0700
+
+freetype (2.0.1.20010312-1) unstable; urgency=low
+
+  * Updated to freetype2-current as of 2001-03-12.
+  * [debian/control]:
+     - Build-Depends: debhelper (>= 3.0.0), ...
+     - Standards-Version: 3.5.2
+
+ -- Anthony Fok <foka@debian.org>  Fri, 16 Mar 2001 02:21:31 -0700
+
+freetype (2.0.1.20010308-1) unstable; urgency=low
+
+  * Updated to freetype2-current as of 2001-03-08.
+  * Corrected platform detection on Hurd.  Thanks to Jeff Bailey,
+    Werner and David for the fix.  Closes: Bug#87691.
+
+ -- Anthony Fok <foka@debian.org>  Fri,  9 Mar 2001 00:50:12 -0700
+
+freetype (2.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Anthony Fok <foka@debian.org>  Fri,  1 Dec 2000 17:58:32 -0700
+
+freetype (2.0-1) unstable; urgency=low
+
+  * New upstream FreeType 2 official release.
+     - Source package: freetype
+     - Binary packages: libfreetype6 and libfreetype6-dev.
+    The source package of FreeType 1.3.1 has been renamed to freetype1.
+  * [README.Debian]: Documents the source and binary package names,
+      and recommends users to migrate to FreeType 2.
+
+ -- Anthony Fok <foka@debian.org>  Mon, 20 Nov 2000 05:16:13 -0700
+
+freetype (1.3.1-1) unstable; urgency=low
+
+  * New official upstream release.
+  * [contrib/ttf2pfb/ttf2pfb.c]: Applied patch by fellow Debian developer
+      Daniel Jacobowitz to fix a va_arg problem that prevents it from
+      building on powerpc.  Thanks a million!  :-)  (closes: Bug#54539)
+
+ -- Anthony Fok <foka@debian.org>  Mon, 10 Jan 2000 06:12:51 -0700
+
+freetype (1.3.1-0) unstable; urgency=low
+
+  * New upstream release candidate (1999-12-08).
+  * [debian/rules]: Uses "dh_makeshlibs -V 'freetype2 (>= 1.3.1)'"
+      because 1.3 have some new APIs not in 1.2.  Thanks to suggestion
+      by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> (closes: Bug#52319).
+  * Added new entries for Arphic PL fonts in /etc/ttf2pk/ttfonts.map
+  * Modified UBig5.sfd to suit the Big5 Arphic PL fonts.
+
+ -- Anthony Fok <foka@debian.org>  Sun, 12 Dec 1999 11:13:20 -0700
+
+freetype (1.3-2) unstable; urgency=low
+
+  * Corrected the symlink
+    /usr/share/doc/freetype2/changelog.gz -> docs/changes.txt
+    to -> docs/changes.txt.gz.  (Hehe, major oversight.  :-)
+    Thanks to Michael Osamu Shiobara for the bug report.
+    (closes: Bug#50428)
+
+ -- Anthony Fok <foka@debian.org>  Wed, 17 Nov 1999 04:10:41 -0700
+
+freetype (1.3-1) unstable; urgency=low
+
+  * New upstream release (libttf.so.2.2.0) with patches as of 1999-10-21.
+  * Standards-Version: 3.1.0
+  * Removed debian/freetype2-dev.compress because debhelper-2.0.69
+    no longer compresses *.png.
+  * Backed out the patch applied by Anthony Wong <ypwong@debian.org> to
+    contrib/ttf2pfb/configure in freetype_1.2-6.1 because upstream fixed
+    ttf2pfb.c to #include "extend/ftxpost.h" rather than "ftxpost.h".
+    Nonetheless, thanks for the NMU!  :-)
+  * [debian/rules]: FHS-compliancy and general clean-up
+      - s/pre-binary/install/g; and removed install-stamp.
+      - s!usr/doc!usr/share/doc!g;
+      - Referred to the latest /usr/doc/debhelper/examples/rules*
+        and used DH_OPTIONS to reduce clutter.
+      - Oops!  I used bashism but set "SHELL = /bin/sh".  Changed to
+        "SHELL = /bin/bash".  :-)
+      - Install upstream docs/changes.txt as changelog.gz in the
+        freetype2 (shared library) package.
+
+ -- Anthony Fok <foka@debian.org>  Sun, 14 Nov 1999 01:15:21 -0700
+
+freetype (1.2-6.1) unstable; urgency=low
+
+  * Non-maintainer upload (see bug #38813)
+  * Added 'CPPFLAGS= ... -I$srcdir/../../lib/extend' to
+    contrib/ttf2pfb/configure, otherwise compile will fail for
+    ftxpost.h cannot be found.
+  * license.txt.gz is not shipped (lintian complains)
+
+ -- Anthony Wong <ypwong@debian.org>  Thu,  3 Jun 1999 02:04:44 +0800
+
+freetype (1.2-6) unstable; urgency=low
+
+  * Copied debian/postinst to debian/freetype-tools.postinst
+    so mktexlsr is (only) run for the freetype-tools package.
+    Thanks to Andrew for reporting this bug. (closes: Bug#36502)
+  * Added some more font entries to /etc/ttf2pk/ttfonts.map.
+
+ -- Anthony Fok <foka@debian.org>  Thu, 22 Apr 1999 17:54:53 -0600
+
+freetype (1.2-5) unstable; urgency=low
+
+  * Applied upstream freetype-1.2-current.diff.gz as of 1999-04-09.
+  * [contrib/ttf2pfb/t1asm.c]: Incorporated patch for glibc 2.1
+      donated by Hartmut Koptein <koptein@et-inf.fho-emden.de>.
+      (Taken from the t1utils package.  :-)  (closes: Bug#35742)
+  * [contrib/ttf2pk/filesrch.c]: Changed "DllImport" to "KPSEDLL"
+      (changes between kpathsea 3.2 and 3.3).  Thanks Werner!  :-)
+  * [debian/rules]:
+      - Replaced the for loop with a more verbose alternative to ensure
+        make stops when it encounters an error when building one of the
+        contrib programs.
+      - Renamed t1asm to t1asm-freetype, and getafm to getafm-freetype,
+        until they are merged with the ones in t1utils and psutils.
+  * freetype-tools now also Suggests: psutils (>= 1.17-7)
+
+ -- Anthony Fok <foka@debian.org>  Mon, 12 Apr 1999 01:08:23 -0600
+
+freetype (1.2-4) unstable; urgency=low
+
+  * Rebuilt with glibc-2.1 and tetex-lib (shared kpathsea library).
+  * [debian/rules]: Changed usr/share/texmf to usr/lib/texmf
+      for the new FHS-compliant directory layout in teTeX.
+  * [debian/control]: freetype-tools now Suggests: tetex-bin
+      (>= 0.9.990310-1), t1utils (>= 1.2-2)
+
+ -- Anthony Fok <foka@debian.org>  Mon,  5 Apr 1999 16:39:08 -0600
+
+freetype (1.2-3) frozen unstable; urgency=low
+
+  * Applied the upstream freetype-1.2-current.diff.gz as of 1999-01-18
+    which fixes a nasty Raster bug occurs only when clipping very large
+    outlines to a small target bitmap or pixmap.
+
+ -- Anthony Fok <foka@debian.org>  Tue, 19 Jan 1999 22:04:32 -0700
+
+freetype (1.2-2) frozen unstable; urgency=low
+
+  * Applied the upstream freetype-1.2-current.diff.gz as of 1998-12-27
+    Mostly bug fixes.
+  * Added configure.in and Makefile.in for contrib/{ttf2pfb,ttfbanner},
+    so these tools are now included in the freetype-tools package.
+  * [debian/control]:
+      - Removed the "<" and ">", and added a suggestion
+        to Debian-JP's X server with X-TT support in freetype2's
+        package description.
+      - Now freetype-tools also Suggests: t1utils, which contains
+        /usr/bin/t1asm that helps ttf2pfb create real .pfa and .pfb
+        files.  (Also added a note in README.Debian.)
+  * Updated the upstream authors' e-mail addresses in "control" and
+    "copyright."
+  * [debian/changelog]: Add the changelog of the freetype (1.1-0.1)
+      non-maintainer release done by Marcelo E. Magallon
+      <mmagallo@debian.org> in June 1998.  I forgot to do so back
+      then.  Sorry!  :-)
+  * Renamed debian/compress to debian/freetype2-dev.compress, so *.png
+    are no longer compressed to *.png.gz.
+
+ -- Anthony Fok <foka@debian.org>  Tue, 29 Dec 1998 02:16:07 -0700
+
+freetype (1.2-1) frozen unstable; urgency=low
+
+  * New upstream release.
+  * Recompiled with libc6 (2.0.7u-7).
+  * [debian/control]: Updated to standards version 2.5.0.0 (no changes).
+  * [contrib/ttf2pk/configure.in]: Modified the order of the header
+      include paths to ensure that "-I./../../lib" is placed before
+      "-I/usr/include".  Thanks to Roman.Hodek@informatik.uni-erlangen.de
+      for the bug report (forwarded upstream).  (Fixes: #27920)
+
+ -- Anthony Fok <foka@debian.org>  Sat,  5 Dec 1998 15:13:48 -0700
+
+freetype (1.1-1998-09-12-2) unstable; urgency=low
+
+  * [debian/postinst]: Oops, the command "ldconfig" somehow disappeared
+      in the last upload.  Fixed.  :-)
+
+ -- Anthony Fok <foka@debian.org>  Sun, 11 Oct 1998 19:58:32 -0600
+
+freetype (1.1-1998-09-12-1) unstable; urgency=low
+
+  * New upstream development snapshot.
+  * Added "--with-kpathsea-dir=/usr" to ttf2pk's configure.
+  * [debian/rules]:
+      - TTF2PKINPUTS = usr/lib/texmf/ttf2pk
+      - TTF2TFMINPUTS = usr/lib/texmf/ttf2tfm
+      - *.sfd are now installed in $(TTF2PKINPUTS) and $(TTF2TFMINPUTS).
+      - $(TTF2PKINPUTS)/ttfonts.map is a symlink to /etc/ttf2pk/ttfonts.map.
+  * [debian/freetype-tools.conffiles]: Added /etc/ttf2pk/ttfonts.map.
+  * [debian/postinst]: Added #DEBHELPER#.
+  * [debian/freetype-tools.postinst]: Runs /usr/bin/mktexlsr if it exists.
+  * [debian/control]: freetype-tools now Suggests: tetex-bin (>= 0.9-1).
+
+ -- Anthony Fok <foka@debian.org>  Sat, 12 Sep 1998 19:55:17 -0600
+
+freetype (1.1-1998-08-29-1) unstable; urgency=low
+
+  * New upstream development snapshot.
+  * Now installs ttf2bdf and ttf2pk's documentation.
+    ttf2pk/ttf2tfm's *.sfd files are now placed in /usr/lib/ttf2tfm.
+  * changelog.gz now points to the re-added commitlog.gz.
+  * Changed "numGlymphId" to "cmap4->numGlyphId" in lib/extend/ftxcmap.c.
+
+ -- Anthony Fok <foka@debian.org>  Mon, 31 Aug 1998 04:37:57 -0600
+
+freetype (1.1-1) unstable; urgency=low
+
+  * New upstream release.  The old freetype-1.0 source package has been
+    renamed to "freetype1" and is now obsolete.
+  * Upgraded to standards version 2.4.1.0 (no changes).
+  * The package soname has been upgraded from 1 to 2. (libttf.2)
+  * Updated the package descriptions according to freetype.spec.
+  * Since teTeX 0.9 and the new <kpathsea/kpathsea.h> is in Debian,
+    ttf2pk is now compiled and included in freetype-tools.
+  * Added postinst to run ldconfig as per Debian Policy.  (Lintian)
+  * [debian/control]: Added some package relationships w.r.t. freetype1:
+      - freetype2 -- Replaces: freetype1
+      - freetype2-dev -- Conflicts: freetype1-dev
+  * [debian/rules]:
+     - /usr/lib/libttf.la is now installed in the freetype2-dev package.
+     - Moved the developer's documentation into the freetype2-dev package.
+       Thanks to "Marcelo E. Magallon" <mmagallo@debian.org> for suggestion.
+     - Added "--dpkg-shlibdeps-params=-Ldebian/tmp/DEBIAN/shlibs" to
+       dh_shlibdeps when packaging freetype-tools.
+     - Added patch from /usr/doc/lintian/libtool-workarounds.txt
+       to solve the -rpath problem.  Debian's libtool-1.2 handles the -lc
+       problem quite nicely already, so that part of the patch is not used.
+     - Added a GNU GPL copyright statement at the top.  :-)
+  * Ran libtoolize from the Debian libtool-1.2 package.  This solves the
+    -lc problem.  :-)  config.guess and config.sub are taken from the ones
+    in /usr/share/automake/ though because they are newer.  (Thanks to
+    the libtool bug report filed by Jim Pick <jim@jimpick.com> for hints.)
+  * Removed debian/README.Debian.
+
+ -- Anthony Fok <foka@debian.org>  Fri, 28 Aug 1998 03:49:21 -0600
+
+freetype (1.1-0.1) unstable; urgency=low
+
+  * New upstream version. Non-maintainer upload (I need this in order to
+    build new upstream version of gltt!)
+  * Applied patches from previous version.
+  * Applied libtool rpath fix patch and removed rpath from compilation
+    parameters. Changed ltconfig to provide inter-library dependencies.
+  * Upgraded to Standards 2.4.1
+  * Changed package name to freetype2 and other control fields accordingly
+    (this could be a problem... what about packages that depend on
+    freetype1?)
+  * Added "Conflitcs: freetype1 (<= 1.0.0.1998-03-22-1)" to freetype-tools
+    because of the mo files freetype1 contains and that are now in
+    freetype-tools, alogn-side the programs that use the files.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 27 Jun 1998 15:59:36 -0600
+
+freetype (1.0.0.1998-03-22-1) frozen unstable; urgency=low
+
+  * New upstream snapshot bugfix release as of 1998-03-22.
+     - ttobjs.c: The storage area is now freed in Instance_Destroy,
+       because it's the place it should have been from the very start.
+       A very sick bug spotted by Ram. Thanks again !!     - DavidT
+     - fixed a nasty allocation bug in ttf2tfm.c
+     - corrected a spelling error (strcpy->strcmp) in ttf2pk.c
+     - new email address for Werner Lemberg (wl@gnu.org)
+     - (again) a stupid error fixed in ttf2pk.c
+     - Some fixes to make the package compile smoothless with the make
+       program of Solaris.
+     - too much fixed in po/Makefile.in.in :-)
+  * /usr/doc/freetype/README.gz and /usr/lib/libttf.la are now installed.
+
+ -- Anthony Fok <foka@debian.org>  Wed, 25 Mar 1998 16:18:50 -0700
+
+freetype (1.0.0.1998-03-13-1) unstable; urgency=low
+
+  * New upstream snapshot including upstream patch as of 1998-03-13.
+
+ -- Anthony Fok <foka@debian.org>  Sun, 15 Mar 1998 15:04:10 -0700
+
+freetype (1.0-1) unstable; urgency=low
+
+  * New upstream release (including upstream patch as of 1998-02-17).
+  * Updated copyright and README.Debian.
+  * Upgraded to standards version 2.4.0.0 (no changes).
+  * Enabled gettext support.
+  * Added .PHONY targets in Makefile.in's.
+  * Added -lc for linking libttf.so* (Reported by Lintian).
+  * Various FreeType test programs now have man pages linked to
+    /usr/man/man7/undocumented.7.gz (Reported by Lintian).
+  * debian/control: Revised package description.
+  * debian/rules: Commented out dh_du.
+  * Moved /usr/include/freetype/freetype.h to /usr/include/freetype.h.
+
+ -- Anthony Fok <foka@debian.org>  Wed, 18 Feb 1998 01:12:03 -0700
+
+freetype (0.beta.1998.01.06-1) unstable; urgency=low
+
+  * New upstream snapshot release.
+  * Thanks to the libtool patch posted by Hirotsugu Kakugawa
+    <h.kakugawa@computer.org> on the freetype-devel mailing list
+    (and some local tweaking), the Debian freetype package finally
+    provides the library and header files!  Hurray!  (Fixes Bug#16365)
+  * Splitted the package into freetype0, freetype0-dev and freetype-tools.
+  * Added debian/compress to ensure that /usr/doc/freetype0/image/*.png
+    are not compressed.
+  * Revised README.Debian.
+
+ -- Anthony Fok <foka@debian.org>  Thu,  8 Jan 1998 20:46:14 -0700
+
+freetype (0.beta.1997.12.25-1) unstable; urgency=low
+
+  * New upstream snapshot release.
+  * Modified /usr/doc/freetype/copyright to include the new license.txt.
+    (Yes, FreeType's license has changed.)
+  * Have a blessed Merry Christmas!
+
+ -- Anthony Fok <foka@debian.org>  Fri, 26 Dec 1997 11:26:25 -0700
+
+freetype (0.beta.1997.12.16-1) unstable; urgency=low
+
+  * New upstream release.
+  * /usr/bin/ttf_{lint,timer,view,zoom} no longer exists.  The upstream
+    authors have renamed them as /usr/bin/{ftlint,fttimer,ftview,ftzoom}
+    and have also added other nifty test programs!  :)
+  * debian/rules: Switched to debhelper.
+  * debian/control: Upgraded Standards-Version to 2.3.0.1 and increased
+    Priority to optional.  :)
+  * Revised /usr/doc/freetype/copyright.  FreeType is now truly DFSG-free!
+    (Fixes Bug#16030)
+  * Revised README.Debian.
+  * Changed my maintainer e-mail address to <foka@debian.org>.  :)
+  * Sorry, the library and header files are not yet included.
+    I have yet to learn how.  :)
+
+ -- Anthony Fok <foka@debian.org>  Wed, 17 Dec 1997 03:02:49 -0700
+
+freetype (0.4-4) unstable; urgency=low
+
+  * Corrected the freetype mailing-list server's address from
+    "@lists.tu-muenchen.de" to "@lists.lrz-muenchen.de" in the files
+    /usr/doc/freetype/readme.1st and license.txt.
+  * Improved the package description and added a URL link to the
+    FreeType Project Home Page
+  * Removed "Keywords", "Primary-site" and "Original-site" from the package's
+    description, but kept "Authors" and "Maintained-by" (Closed bug #12510).
+
+ -- Anthony Fok <foka@gpu.srv.ualberta.ca>  Sun, 21 Sep 1997 18:24:42 -0600
+
+freetype (0.4-3) unstable; urgency=low
+
+  * Rebuilt with both libc6 and xlib6g (Fixes bug #12784).
+  * Updated to Standards-Version: 2.3.0.0.
+
+ -- Anthony Fok <foka@gpu.srv.ualberta.ca>  Wed, 10 Sep 1997 21:57:20 -0600
+
+freetype (0.4-2) unstable; urgency=low
+
+  * Renamed /usr/bin/{lint,timer,view,zoom} to
+    /usr/bin/ttf_{lint,timer,view,zoom} to avoid name conflicts with other
+    programs (Fixes bugs #12096, #12136).
+  * Closed bug #11193 (freetype AR4 available).
+
+ -- Anthony Fok <foka@gpu.srv.ualberta.ca>  Tue, 19 Aug 1997 17:53:32 -0600
+
+freetype (0.4-1) unstable; urgency=low
+
+  * New maintainer.
+  * New upstream release.
+  * Updated to Standards-Version: 2.2.0.0.
+
+ -- Anthony Fok <foka@gpu.srv.ualberta.ca>  Mon, 11 Aug 1997 08:26:17 -0600
+
+freetype (0.3-1) unstable; urgency=low
+
+  * Upstream update. Sadly the envisioned Christmas target of an X truetype
+    rasterizer has been abandoned.
+
+ -- Christoph Lameter <clameter@waterf.org>  Tue, 24 Dec 1996 12:52:24 -0800
+
+freetype (0.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Christoph Lameter <clameter@waterf.org>  Thu, 7 Nov 1996 11:51:45 -0800
+
+Local variables:
+mode: debian-changelog
+add-log-mailing-address: "foka@debian.org"
+End:
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f3c0ad4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,90 @@
+Source: freetype
+Section: libs
+Priority: optional
+Maintainer: Anthony Fok <foka@debian.org>
+Build-Depends: debhelper (>= 3.0.5), bzip2, gettext (>= 0.10.36-2), libkpathsea-dev, xlibs-dev
+Standards-Version: 3.5.4
+
+Package: libfreetype7
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Suggests: libfreetype7-dev
+Conflicts: freetype
+Replaces: freetype0, freetype1
+Description: FreeType 2 font engine, shared library files.
+ The FreeType project is a team of volunteers who develop free,
+ portable and high-quality software solutions for digital typography. 
+ They specifically target embedded systems and focus on bringing small,
+ efficient and ubiquitous products.
+ .
+ The FreeType 2 library is their new software font engine.  It has been
+ designed to provide the following important features:
+  * A universal and simple API to manage font files
+  * Support for several font formats through loadable modules
+  * High-quality anti-aliasing
+  * High portability & performance
+ .
+ Supported font formats include:
+  * TrueType files (.ttf) and collections (.ttc)
+  * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
+  * Type 1 Multiple Master fonts.  The FreeType 2 API also provides
+    routines to manage design instances easily
+  * Type 1 CID-keyed fonts
+  * OpenType/CFF (.otf) fonts
+  * CFF/Type 2 fonts
+  * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
+    the Adobe SVG viewer plugin.
+  * Windows FNT/FON bitmap fonts
+ .
+ This package contains the files needed to run programs that use the
+ FreeType 2 library.
+ .
+  Home Page: http://www.freetype.org/
+  Authors: David Turner   <david.turner@freetype.org>
+           Robert Wilhelm <robert.wilhelm@freetype.org>
+           Werner Lemberg <werner.lemberg@freetype.org>
+
+Package: libfreetype7-dev
+Architecture: any
+Section: devel
+Depends: libfreetype7 (= ${Source-Version}), libc6-dev
+Conflicts: freetype0-dev, freetype1 (<= 1.0.0.1998-03-22-1), freetype1-dev
+Replaces: freetype0-dev, freetype1-dev
+Description: FreeType 2 font engine, development files
+ The FreeType project is a team of volunteers who develop free,
+ portable and high-quality software solutions for digital typography. 
+ They specifically target embedded systems and focus on bringing small,
+ efficient and ubiquitous products.
+ .
+ The FreeType 2 library is their new software font engine.  It has been
+ designed to provide the following important features:
+  * A universal and simple API to manage font files
+  * Support for several font formats through loadable modules
+  * High-quality anti-aliasing
+  * High portability & performance
+ .
+ Supported font formats include:
+  * TrueType files (.ttf) and collections (.ttc)
+  * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
+  * Type 1 Multiple Master fonts.  The FreeType 2 API also provides
+    routines to manage design instances easily
+  * Type 1 CID-keyed fonts
+  * OpenType/CFF (.otf) fonts
+  * CFF/Type 2 fonts
+  * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
+    the Adobe SVG viewer plugin.
+  * Windows FNT/FON bitmap fonts
+ .
+ This package contains all supplementary files (static library, headers
+ and documentation) you need to develop your own programs using the
+ FreeType 2 library.
+
+Package: freetype2-demos
+Architecture: any
+Section: utils
+Depends: ${shlibs:Depends}
+Replaces: freetype-tools
+Description: FreeType 2 demonstration programs.
+ This package contains some demonstration programs and utilities
+ which showcase the features of the FreeType 2 font engine.
diff --git a/debian/libfreetype7-dev.files b/debian/libfreetype7-dev.files
new file mode 100644
index 0000000..2b379f3
--- /dev/null
+++ b/debian/libfreetype7-dev.files
@@ -0,0 +1,5 @@
+usr/bin/freetype-config
+usr/include/
+usr/lib/*.so
+usr/lib/*.la
+usr/lib/*.a
diff --git a/debian/libfreetype7.copyright b/debian/libfreetype7.copyright
new file mode 100644
index 0000000..81ea4c3
--- /dev/null
+++ b/debian/libfreetype7.copyright
@@ -0,0 +1,331 @@
+This package was Debianized by Christoph Lameter <clameter@waterf.org> on
+Thu, 7 Nov 1996 11:51:45 -0800.  It was then picked up by
+Anthony Fok <foka@debian.org> on Mon, 11 Aug 1997 08:10:02 -0600
+
+It was downloaded from
+    ftp://ftp.freetype.org/pub/freetype2/
+	freetype-2.0.4.tar.bz2
+	ft2demos-2.0.4.tar.bz2
+	ftdocs-2.0.4.tar.bz2
+
+Home Page:
+    http://www.freetype.org/
+
+Upstream Authors:
+
+    The FreeType Project
+        David Turner    <david.turner@freetype.org>
+        Robert Wilhelm  <robert.wilhelm@freetype.org>
+        Werner Lemberg  <werner.lemberg@freetype.org>
+
+    The FreeType 2 auto-hinter
+	Designed and implemented by David Turner under contract
+	for Catharon Productions, Inc.  http://www.catharon.com/
+
+Copyright:
+
+FreeType comes with two licenses from which you can choose the one which
+fits your needs best:
+
+  . The FreeType License, in file `FTL.txt'.
+
+  . The GNU General Public License, in file `/usr/share/common-licenses/GPL'.
+
+The FreeType 2 auto-hinter was initially designed and implemented under
+contract for Catharon Productions, Inc. which gladly accepted to release
+it under an open-source license compatible with the FreeType one:
+
+  . The Catharon Open Source License, in file 'CatharonLicense.txt'.
+
+The FreeType License and the Catharon Open Source License are listed below:
+
+
+                    The FreeType Project LICENSE
+                    ----------------------------
+
+                            2000-Feb-08
+
+                       Copyright 1996-2000 by
+          David Turner, Robert Wilhelm, and Werner Lemberg
+
+
+
+Introduction
+============
+
+  The FreeType  Project is distributed in  several archive packages;
+  some of them may contain, in addition to the FreeType font engine,
+  various tools and  contributions which rely on, or  relate to, the
+  FreeType Project.
+
+  This  license applies  to all  files found  in such  packages, and
+  which do not  fall under their own explicit  license.  The license
+  affects  thus  the  FreeType   font  engine,  the  test  programs,
+  documentation and makefiles, at the very least.
+
+  This  license   was  inspired  by  the  BSD,   Artistic,  and  IJG
+  (Independent JPEG  Group) licenses, which  all encourage inclusion
+  and  use of  free  software in  commercial  and freeware  products
+  alike.  As a consequence, its main points are that:
+
+    o We don't promise that this software works. However, we will be
+      interested in any kind of bug reports. (`as is' distribution)
+
+    o You can  use this software for whatever you  want, in parts or
+      full form, without having to pay us. (`royalty-free' usage)
+
+    o You may not pretend that  you wrote this software.  If you use
+      it, or  only parts of it,  in a program,  you must acknowledge
+      somewhere  in  your  documentation  that  you  have  used  the
+      FreeType code. (`credits')
+
+  We  specifically  permit  and  encourage  the  inclusion  of  this
+  software, with  or without modifications,  in commercial products.
+  We  disclaim  all warranties  covering  The  FreeType Project  and
+  assume no liability related to The FreeType Project.
+
+
+Legal Terms
+===========
+
+0. Definitions
+--------------
+
+  Throughout this license,  the terms `package', `FreeType Project',
+  and  `FreeType  archive' refer  to  the  set  of files  originally
+  distributed  by the  authors  (David Turner,  Robert Wilhelm,  and
+  Werner Lemberg) as the `FreeType Project', be they named as alpha,
+  beta or final release.
+
+  `You' refers to  the licensee, or person using  the project, where
+  `using' is a generic term including compiling the project's source
+  code as  well as linking it  to form a  `program' or `executable'.
+  This  program is  referred to  as  `a program  using the  FreeType
+  engine'.
+
+  This  license applies  to all  files distributed  in  the original
+  FreeType  Project,   including  all  source   code,  binaries  and
+  documentation,  unless  otherwise  stated   in  the  file  in  its
+  original, unmodified form as  distributed in the original archive.
+  If you are  unsure whether or not a particular  file is covered by
+  this license, you must contact us to verify this.
+
+  The FreeType  Project is copyright (C) 1996-2000  by David Turner,
+  Robert Wilhelm, and Werner Lemberg.  All rights reserved except as
+  specified below.
+
+1. No Warranty
+--------------
+
+  THE FREETYPE PROJECT  IS PROVIDED `AS IS' WITHOUT  WARRANTY OF ANY
+  KIND, EITHER  EXPRESS OR IMPLIED,  INCLUDING, BUT NOT  LIMITED TO,
+  WARRANTIES  OF  MERCHANTABILITY   AND  FITNESS  FOR  A  PARTICULAR
+  PURPOSE.  IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
+  BE LIABLE  FOR ANY DAMAGES CAUSED  BY THE USE OR  THE INABILITY TO
+  USE, OF THE FREETYPE PROJECT.
+
+2. Redistribution
+-----------------
+
+  This  license  grants  a  worldwide, royalty-free,  perpetual  and
+  irrevocable right  and license to use,  execute, perform, compile,
+  display,  copy,   create  derivative  works   of,  distribute  and
+  sublicense the  FreeType Project (in  both source and  object code
+  forms)  and  derivative works  thereof  for  any  purpose; and  to
+  authorize others  to exercise  some or all  of the  rights granted
+  herein, subject to the following conditions:
+
+    o Redistribution  of source code  must retain this  license file
+      (`LICENSE.TXT') unaltered; any additions, deletions or changes
+      to   the  original   files  must   be  clearly   indicated  in
+      accompanying  documentation.   The  copyright notices  of  the
+      unaltered, original  files must be preserved in  all copies of
+      source files.
+
+    o Redistribution in binary form must provide a  disclaimer  that
+      states  that  the software is based in part of the work of the
+      FreeType Team,  in  the  distribution  documentation.  We also
+      encourage you to put an URL to the FreeType web page  in  your
+      documentation, though this isn't mandatory.
+
+  These conditions  apply to any  software derived from or  based on
+  the FreeType Project,  not just the unmodified files.   If you use
+  our work, you  must acknowledge us.  However, no  fee need be paid
+  to us.
+
+3. Advertising
+--------------
+
+  Neither the  FreeType authors and  contributors nor you  shall use
+  the name of the  other for commercial, advertising, or promotional
+  purposes without specific prior written permission.
+
+  We suggest,  but do not require, that  you use one or  more of the
+  following phrases to refer  to this software in your documentation
+  or advertising  materials: `FreeType Project',  `FreeType Engine',
+  `FreeType library', or `FreeType Distribution'.
+
+  As  you have  not signed  this license,  you are  not  required to
+  accept  it.   However,  as  the FreeType  Project  is  copyrighted
+  material, only  this license, or  another one contracted  with the
+  authors, grants you  the right to use, distribute,  and modify it.
+  Therefore,  by  using,  distributing,  or modifying  the  FreeType
+  Project, you indicate that you understand and accept all the terms
+  of this license.
+
+4. Contacts
+-----------
+
+  There are two mailing lists related to FreeType:
+
+    o freetype@freetype.org
+
+      Discusses general use and applications of FreeType, as well as
+      future and  wanted additions to the  library and distribution.
+      If  you are looking  for support,  start in  this list  if you
+      haven't found anything to help you in the documentation.
+
+    o devel@freetype.org
+
+      Discusses bugs,  as well  as engine internals,  design issues,
+      specific licenses, porting, etc.
+
+    o http://www.freetype.org
+
+      Holds the current  FreeType web page, which will  allow you to
+      download  our  latest  development  version  and  read  online
+      documentation.
+
+  You can also contact us individually at:
+
+    David Turner      <david.turner@freetype.org>
+    Robert Wilhelm    <robert.wilhelm@freetype.org>
+    Werner Lemberg    <werner.lemberg@freetype.org>
+
+
+--- end of LICENSE.TXT ---
+
+
+                  The Catharon Open Source LICENSE
+                    ----------------------------
+
+                            2000-Jul-04
+
+          Copyright (C) 2000 by Catharon Productions, Inc.
+
+
+
+Introduction
+============
+
+  This  license  applies to  source  files  distributed by  Catharon
+  Productions,  Inc.  in  several  archive packages.   This  license
+  applies  to all files  found in  such packages  which do  not fall
+  under their own explicit license.
+
+  This  license   was  inspired  by  the  BSD,   Artistic,  and  IJG
+  (Independent JPEG  Group) licenses, which  all encourage inclusion
+  and  use of  free  software in  commercial  and freeware  products
+  alike.  As a consequence, its main points are that:
+
+    o We  don't promise that  this software works.  However,  we are
+      interested in any kind of bug reports. (`as is' distribution)
+
+    o You can  use this software for whatever you  want, in parts or
+      full form, without having to pay us. (`royalty-free' usage)
+
+    o You may not pretend that  you wrote this software.  If you use
+      it, or  only parts of it,  in a program,  you must acknowledge
+      somewhere  in  your  documentation  that  you  have  used  the
+      Catharon Code. (`credits')
+
+  We  specifically  permit  and  encourage  the  inclusion  of  this
+  software, with  or without modifications,  in commercial products.
+  We disclaim  all warranties  covering the packages  distributed by
+  Catharon  Productions, Inc.  and  assume no  liability related  to
+  their use.
+
+
+Legal Terms
+===========
+
+0. Definitions
+--------------
+
+  Throughout this license,  the terms `Catharon Package', `package',
+  and  `Catharon  Code'  refer   to  the  set  of  files  originally
+  distributed by Catharon Productions, Inc.
+
+  `You' refers to  the licensee, or person using  the project, where
+  `using' is a generic term including compiling the project's source
+  code as  well as linking it  to form a  `program' or `executable'.
+  This  program  is referred  to  as `a  program  using  one of  the
+  Catharon Packages'.
+
+  This  license applies  to all  files distributed  in  the original
+  Catharon  Package(s),  including  all  source code,  binaries  and
+  documentation,  unless  otherwise  stated   in  the  file  in  its
+  original, unmodified form as  distributed in the original archive.
+  If you are  unsure whether or not a particular  file is covered by
+  this license, you must contact us to verify this.
+
+  The  Catharon   Packages  are  copyright  (C)   2000  by  Catharon
+  Productions, Inc.  All rights reserved except as specified below.
+
+1. No Warranty
+--------------
+
+  THE CATHARON PACKAGES ARE PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
+  KIND, EITHER  EXPRESS OR IMPLIED,  INCLUDING, BUT NOT  LIMITED TO,
+  WARRANTIES  OF  MERCHANTABILITY   AND  FITNESS  FOR  A  PARTICULAR
+  PURPOSE.  IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
+  BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OF OR THE INABILITY TO
+  USE THE CATHARON PACKAGE.
+
+2. Redistribution
+-----------------
+
+  This  license  grants  a  worldwide, royalty-free,  perpetual  and
+  irrevocable right  and license to use,  execute, perform, compile,
+  display,  copy,   create  derivative  works   of,  distribute  and
+  sublicense the  Catharon Packages (in both source  and object code
+  forms)  and  derivative works  thereof  for  any  purpose; and  to
+  authorize others  to exercise  some or all  of the  rights granted
+  herein, subject to the following conditions:
+
+    o Redistribution  of source code  must retain this  license file
+      (`license.txt') unaltered; any additions, deletions or changes
+      to   the  original   files  must   be  clearly   indicated  in
+      accompanying  documentation.   The  copyright notices  of  the
+      unaltered, original  files must be preserved in  all copies of
+      source files.
+
+    o Redistribution  in binary form must provide  a disclaimer that
+      states  that the  software is  based in  part on  the  work of
+      Catharon Productions, Inc. in the distribution documentation.
+
+  These conditions  apply to any  software derived from or  based on
+  the Catharon Packages, not just  the unmodified files.  If you use
+  our work, you  must acknowledge us.  However, no  fee need be paid
+  to us.
+
+3. Advertising
+--------------
+
+  Neither Catharon Productions, Inc.  and contributors nor you shall
+  use  the  name  of  the  other  for  commercial,  advertising,  or
+  promotional purposes without specific prior written permission.
+
+  We suggest, but do not  require, that you use the following phrase
+  to refer to this software in your documentation: 'this software is
+  based in part on the Catharon Typography Project'.
+
+  As  you have  not signed  this license,  you are  not  required to
+  accept  it.  However,  as  the Catharon  Packages are  copyrighted
+  material, only  this license, or  another one contracted  with the
+  authors, grants you  the right to use, distribute,  and modify it.
+  Therefore,  by  using,  distributing,  or modifying  the  Catharon
+  Packages,  you indicate  that you  understand and  accept  all the
+  terms of this license.
+
+--- end of license.txt ---
diff --git a/debian/libfreetype7.files b/debian/libfreetype7.files
new file mode 100644
index 0000000..093956b
--- /dev/null
+++ b/debian/libfreetype7.files
@@ -0,0 +1 @@
+usr/lib/*.so.*
diff --git a/debian/libfreetype7.postinst b/debian/libfreetype7.postinst
new file mode 100644
index 0000000..4f21d35
--- /dev/null
+++ b/debian/libfreetype7.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ] ; then
+	/sbin/ldconfig
+fi
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..66d48b6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,190 @@
+#!/usr/bin/make -f
+# Made with the aid of debhelper by by Joey Hess,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+#
+# This is free software; see the GNU General Public Licence
+# version 2 or later for copying conditions.  There is NO warranty.
+#
+# Currently maintained by Anthony Fok <foka@debian.org>
+# for Debian GNU/Linux.
+
+SHELL = /bin/bash
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=3
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+srcpkg = freetype2
+
+# Remember to update the following for each release.
+freetype_u := freetype-2.0.4
+ftdocs_u    := ftdocs-2.0.4
+ftdocs_d    := freetype-2.0.4
+ft2demos_u  := ft2demos-2.0.4
+
+# ver := $(shell ( head -1 | sed -e 's/^.*(\(.\+\)-.*).*/\1/' ) < debian/changelog)
+
+libpkg := libfreetype7
+devpkg := $(libpkg)-dev
+docpkg := $(libpkg)-doc
+demospkg := freetype2-demos
+docdir := usr/share/doc
+
+# These files are general documentation and should go into the lib package.
+libdoc = FTL.txt GPL.txt license.txt CHANGES todo
+
+TMP = $(PWD)/debian/tmp
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	@for i in $(freetype_u) $(ftdocs_u) $(ft2demos_u); do \
+	    if [ -f $$i.tar.bz2 ]; then \
+		echo "Unpacking $$i.tar.bz2 ..."; \
+		tar -x --bzip2 -f $$i.tar.bz2; \
+	    elif [ -f $$i.tar.gz ]; then \
+		echo "Unpacking $$i.tar.gz ..."; \
+		tar -x --gzip -f $$i.tar.gz; \
+	    else \
+		echo "Error!  $$i.tar.{bz2,gz} not found!"; \
+		exit 1; \
+	    fi \
+	done
+	# Apple's so-called patents are bogus, says me.
+	# Let's turn on the bytecode interpreter.
+	perl -pi -e 's/^#undef(?=\s+TT_CONFIG_OPTION_BYTECODE_INTERPRETER)/#define/' \
+		$(freetype_u)/include/freetype/config/ftoption.h
+
+	$(MAKE) -C $(freetype_u) setup CFG="--prefix=/usr"
+	$(MAKE) -C $(freetype_u)
+
+	$(MAKE) -C $(ft2demos_u) TOP=../$(freetype_u) X11_PATH=/usr/X11R6
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+#	-$(MAKE) distclean
+	rm -rf $(freetype_u) $(ft2demos_u) $(ftdocs_d)
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) -C $(freetype_u) prefix=$(TMP)/usr install
+
+	dh_movefiles
+	@if [ "`find debian/tmp ! -type d`" ]; then \
+	    echo "Error!  Not all files are moved out of debian/tmp!"; \
+	    echo "Please fix your debian/*.files."; \
+	    exit 1; \
+	fi
+
+	dh_installdirs -p$(demospkg)/usr/bin
+	$(freetype_u)/builds/unix/libtool --mode=install \
+	    cp -av `find $(ft2demos_u)/bin -type f -perm +a=x -maxdepth 1` \
+		$(PWD)/debian/$(demospkg)/usr/bin/
+	cd debian/$(demospkg)/usr/bin && mv memtest ftmemtest
+
+# Build architecture-independent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-indep: DH_OPTIONS=-i
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+# Pass -a to all debhelper commands in this target to reduce clutter.
+binary-arch: DH_OPTIONS=-a
+binary-arch: build $(libpkg) $(devpkg) $(demospkg)
+
+$(libpkg): DH_OPTIONS=-p$(libpkg)
+$(libpkg): build install
+	dh_testdir
+	dh_testroot
+	dh_installdirs
+	dh_installdocs $(addprefix $(freetype_u)/docs/,$(libdoc)) \
+		$(freetype_u)/src/autohint/CatharonLicense.txt \
+		$(ftdocs_d)/docs/ft2faq.html
+	ln -sf ../../common-licenses/GPL debian/$(libpkg)/$(docdir)/$(libpkg)/GPL.txt
+	mkdir debian/$(libpkg)/$(docdir)/$(libpkg)/pcf
+	cp -a $(freetype_u)/src/pcf/readme debian/$(libpkg)/$(docdir)/$(libpkg)/pcf/
+	dh_installexamples
+#	dh_installmenu
+#	dh_undocumented
+	dh_installchangelogs -k $(freetype_u)/ChangeLog
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+#	dh_makeshlibs -V $(dependency)
+	dh_makeshlibs
+
+	dh_md5sums
+	dh_builddeb
+
+$(devpkg): DH_OPTIONS=-p$(devpkg)
+$(devpkg): build install
+	dh_testdir
+	dh_testroot
+	dh_installdirs $(docdir)/$(libpkg)
+	ln -s $(libpkg) debian/$(devpkg)/$(docdir)/$(devpkg)
+	dh_installdocs $(ftdocs_d)/docs/* $(freetype_u)/docs/*
+	cd debian/$(devpkg)/usr/share/doc/$(devpkg)/ \
+		&& rm -f $(libdoc) BUILD ft2faq.html
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installmanpages
+#	dh_undocumented
+#	dh_installchangelogs
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+#	dh_makeshlibs
+	dh_md5sums
+	dh_builddeb
+
+$(demospkg): DH_OPTIONS=-p$(demospkg)
+$(demospkg): build install
+	dh_testdir
+	dh_testroot
+	dh_installdirs $(docdir)/$(libpkg)
+	ln -s $(libpkg) debian/$(demospkg)/$(docdir)/$(demospkg)
+#	dh_installdocs
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installmanpages
+#	dh_undocumented
+#	dh_installchangelogs
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+#	dh_makeshlibs
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary \
+	$(libpkg) $(devpkg) install
diff --git a/debian/rules.museum b/debian/rules.museum
new file mode 100644
index 0000000..16091db
--- /dev/null
+++ b/debian/rules.museum
@@ -0,0 +1,84 @@
+# These are some bits and pieces from freetype1 debian/rules.
+# They are moved here to get rid of the clutter in the current debian/rules.
+# Who knows?  Perhaps we will need the following some day.
+
+# dependency = '$(libpkg) (>= 1.3.1)'
+
+# TTF2PKINPUTS = usr/share/texmf/ttf2pk
+# TTF2TFMINPUTS = usr/share/texmf/ttf2tfm
+
+build:
+#	( cd contrib/ttf2bdf && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
+#	$(MAKE) -C contrib/ttf2bdf
+#	( cd contrib/ttf2pk && ./configure --prefix=/usr \
+#		--mandir='$${prefix}/share/man' --with-kpathsea-dir=/usr )
+#	$(MAKE) -C contrib/ttf2pk
+#	( cd contrib/ttf2pfb && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
+#	$(MAKE) -C contrib/ttf2pfb
+#	( cd contrib/ttfbanner && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
+#	$(MAKE) -C contrib/ttfbanner
+
+clean:
+#	-for i in ttf2bdf ttf2pfb ttf2pk ttfbanner; do \
+#		$(MAKE) -C contrib/$$i distclean; \
+#	done
+
+# The following target is not used for FreeType 2:
+$(binpkg): DH_OPTIONS=-p$(binpkg)
+$(binpkg): build install
+	dh_testdir
+	dh_testroot
+
+	dh_installdirs $(docdir)/$(libpkg)/ttf2pk \
+		$(TTF2PKINPUTS) $(TTF2TFMINPUTS) etc/ttf2pk \
+		$(docdir)/$(libpkg)/ttf2bdf \
+		$(docdir)/$(libpkg)/ttf2pfb \
+		$(docdir)/$(libpkg)/ttfbanner
+	ln -s $(libpkg) debian/$(binpkg)/$(docdir)/$(binpkg)
+
+	for i in ttf2bdf ttf2pfb ttf2pk ttfbanner; do \
+	  $(MAKE) -C contrib/$$i prefix=`pwd`/debian/$(binpkg)/usr install; \
+	done
+
+	# Temporary measure.  Remove the following in the future after
+	# both versions (from t1utils and freetype) are merged.
+	( cd debian/$(binpkg)/usr/bin && \
+		mv t1asm t1asm-freetype && \
+		mv getafm getafm-freetype )
+
+	# ttf2tfm and ttf2pk both need the *.sfd, *.enc and *.rpl
+        # in their own directory.  (?)  Hmm...
+	cp -av contrib/ttf2pk/data/*.{sfd,enc,rpl} debian/$(binpkg)/$(TTF2PKINPUTS)
+	ln debian/$(binpkg)/$(TTF2PKINPUTS)/*.{sfd,enc,rpl} debian/$(binpkg)/$(TTF2TFMINPUTS)
+
+	cp -av contrib/ttf2pk/data/ttfonts.map debian/$(binpkg)/etc/ttf2pk
+	ln -s /etc/ttf2pk/ttfonts.map debian/$(binpkg)/$(TTF2PKINPUTS)
+
+	dh_installdocs
+
+	cp -av contrib/ttf2bdf/README \
+		debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2bdf/
+	cp -av contrib/ttf2pfb/TODO \
+		debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2pfb/
+	( cd contrib/ttf2pk && cp -av *.doc README TODO BUGS \
+		../../debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2pk/ )
+	cp -av contrib/ttfbanner/README \
+		debian/$(binpkg)/$(docdir)/$(binpkg)/ttfbanner/
+
+#	dh_installexamples tools/ttf2bdf/iso8859.2 tools/ttf2pk/
+#	dh_installmenu
+#	dh_installmanpages
+#	dh_undocumented ftview.1 fttimer.1 ftlint.1 ftdump.1 \
+#		ftzoom.1 ftstring.1 ftstrpnm.1 fterror.1 \
+#		ttf2pfb.1 ttfbanner.1
+#	dh_installchangelogs
+	dh_strip
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps --dpkg-shlibdeps-params=-Ldebian/$(libpkg)/DEBIAN/shlibs
+	dh_gencontrol
+#	dh_makeshlibs
+	dh_md5sums
+	dh_builddeb