--- 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
@@ -130,6 +130,8 @@
 .c.o:
 	$(CC) $(CFLAGS) -c  $<
  
+clean:
+	rm -f evolver *.o
 
 # lexyy.c and ytab.c should only be remade when interface
 # language is changed, which users shouldn't be touching.
--- 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,77 @@
+#!/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
+
+#export DH_VERBOSE=1
+
+clean:
+	dh_testdir
+	dh_clean
+	rm -f build install install-indep install-arch
+	-$(MAKE) -C src clean
+
+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_clean -k -a
+	dh_installdirs -a
+	install -d debian/tmp/usr/bin
+	cp -p src/evolver debian/tmp/usr/bin/evolver
+	install -d debian/tmp/usr/share/man/man1
+	ln -s ../man7/undocumented.7.gz \
+	  debian/tmp/usr/share/man/man1/evolver.1.gz
+	touch install-arch
+
+install-indep:
+	dh_clean -k -i
+	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,25 @@
+Source: evolver
+Section: math
+Priority: extra
+Maintainer: Adam Powell <hazelsct@mit.edu>
+Standards-Version: 3.1.1
+Build-Depends: c-compiler
+
+Package: evolver
+Architecture: any
+Section: math
+Depends: ${shlibs:Depends}
+Recommends: 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
+Recommends: 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,11 @@
+evolver (2.14-1) unstable; urgency=low
+
+  * Initial Release (Closes: #75003).
+
+ -- Adam C. Powell, IV (24) <hazelsct@mit.edu>  Tue, 17 Oct 2000 20:51:00 -0400
+
+Local variables:
+mode: debian-changelog
+add-log-full-name: "Adam C. Powell, IV (24)"
+add-log-mailing-address: "hazelsct@mit.edu"
+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 doc/install.htm):
+
+"The Surface Evolver is available free of charge."
--- 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
