--- evolver-2.14.orig/src/Makefile
+++ evolver-2.14/src/Makefile
@@ -24,9 +24,9 @@
 
 # Remove #'s from following 3 lines for LINUX 
 # You may have to modify the X11 lib path given here
-#CFLAGS= -DLINUX -O2 -DOOGL
-#GRAPH= xgraph.o 
-#GRAPHLIB= -L/usr/X11R6/lib -lX11 
+CFLAGS= -DLINUX -O2 -DOOGL
+GRAPH= xgraph.o 
+GRAPHLIB= -L/usr/X11R6/lib -lX11 
 
 # Remove #'s from following 3 lines for SUNs or SPARCSTATIONs with X-windows
 # WARNING: If you use -O2 optimization, you may have to compile popfilm.c
--- evolver-2.14.orig/src/utility.c
+++ evolver-2.14/src/utility.c
@@ -2007,6 +2007,20 @@
     else env += len+1;
   } 
   
+  /* Try doc and doc/examples directories */
+  if (fd == NULL)
+  {
+    strncpy (path, "/usr/share/doc/evolver-doc/", 27);
+    strncpy (path+27, name, sizeof(path)-27-2);
+    fd = fopen (path, "r");
+  }
+  if (fd == NULL)
+  {
+    strncpy (path, "/usr/share/doc/evolver-doc/examples/", 36);
+    strncpy (path+36, name, sizeof(path)-36-2);
+    fd = fopen (path, "r");
+  }
+
   /* try .fe extension */
   if ( fd == NULL)
   {
--- evolver-2.14.orig/debian/rules
+++ evolver-2.14/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# Sample debian/rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself.  (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=2
+
+clean:
+	dh_testdir
+	dh_clean
+	rm -f build install install-indep install-arch
+	rm -f src/evolver src/*.o
+
+build:
+	dh_testdir
+	make -C src evolver
+	touch build
+
+# These two are only usefull if you can selectively
+# install for arch and indep stuff.
+install-arch: build
+	dh_installdirs -a
+	install -d debian/evolver/usr/bin
+	cp -p src/evolver debian/evolver/usr/bin/evolver
+	install -d debian/evolver/usr/share/man/man1
+	ln -s ../man7/undocumented.7.gz \
+	  debian/evolver/usr/share/man/man1/evolver.1.gz
+	touch install-arch
+
+install-indep:
+	dh_installdirs -i
+	install -d debian/evolver-doc/usr/share/doc/evolver-doc/examples
+	cp -p doc/* debian/evolver-doc/usr/share/doc/evolver-doc
+	cp -p fe/* debian/evolver-doc/usr/share/doc/evolver-doc/examples
+	touch install-indep
+
+install: install-arch install-indep
+	touch install
+
+binary-indep: install-indep
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdocs -i
+	dh_installchangelogs -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: install-arch
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdocs -a
+	dh_installmanpages -a
+	dh_installchangelogs -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- evolver-2.14.orig/debian/control
+++ evolver-2.14/debian/control
@@ -0,0 +1,23 @@
+Source: evolver
+Section: math
+Priority: extra
+Maintainer: Adam C. Powell, IV <hazelsct@debian.org>
+Standards-Version: 3.1.1
+Build-Depends: debhelper (>= 2.1.0), c-compiler, xlib6g-dev (>= 3.3.6-4)
+
+Package: evolver
+Architecture: any
+Section: math
+Depends: ${shlibs:Depends}
+Suggests: evolver-doc, geomview
+Description: Surface Evolver
+ The Surface Evolver is an interactive program for the study of surfaces shaped
+ by surface tension and other energies, and subject to various constraints.
+
+Package: evolver-doc
+Architecture: all
+Section: doc
+Suggests: evolver
+Description: Surface Evolver documentation and examples
+ The Surface Evolver is an interactive program for the study of surfaces shaped
+ by surface tension and other energies, and subject to various constraints.
--- evolver-2.14.orig/debian/changelog
+++ evolver-2.14/debian/changelog
@@ -0,0 +1,23 @@
+evolver (2.14-3) unstable; urgency=low
+
+  * Added xlib6g-dev to Bulid-Depends, not xlibs-dev so it will still build on
+    potato. (closes: #100806)
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Thu, 14 Jun 2001 08:03:45 -0400
+
+evolver (2.14-2) unstable; urgency=low
+
+  * Contacted upstream author for a more thorough and acceptable copyright
+    statement.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Tue, 14 Nov 2000 17:20:58 -0500
+
+evolver (2.14-1) unstable; urgency=low
+
+  * Initial Release (Closes: #75003).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Tue,  7 Nov 2000 16:57:55 -0500
+
+Local variables:
+add-log-full-name: "Adam C. Powell, IV"
+End:
--- evolver-2.14.orig/debian/copyright
+++ evolver-2.14/debian/copyright
@@ -0,0 +1,11 @@
+This package was debianized by Adam Powell <hazelsct@mit.edu> on October 17,
+2000.
+
+It was downloaded from
+http://www.susqu.edu/facstaff/b/brakke/evolver/evolver.html
+
+Upstream author: Ken Brakke
+
+Copyright (from personal communication with author November 10, 2000):
+
+"you may copy, modify, and redistribute freely."
--- evolver-2.14.orig/debian/evolver-doc.doc-base
+++ evolver-2.14/debian/evolver-doc.doc-base
@@ -0,0 +1,14 @@
+Document: evolver-doc
+Title: Surface Evolver Documentation
+Author:	Ken Brakke
+Abstract: The Surface Evolver is an interactive program for the study of
+ surfaces shaped by surface tension and other energies, and subject to various
+ constraints.
+Section: Apps/Math
+
+Format: HTML
+Index: /usr/share/doc/evolver-doc/default.htm
+Files: /usr/share/doc/evolver-doc/*.htm
+
+Format: postscript
+Files: /usr/share/doc/evolver-doc/*.ps.gz
