--- src/Makefile.orig 2010-09-22 22:28:21.000000000 -0500
+++ src/Makefile 2010-09-22 22:33:21.000000000 -0500
############ Option 1: build the pl executable (unix), no X11 ....
############ Option 2: build the pl executable (unix), with X11 enabled ....
-# XOBJ = x11.o interact.o
############ ...AND... activate the lines below for your platform... (X11 libs & header files)
# XLIBS = -L/usr/X11R6/lib -lX11
# XINCLUDEDIR = -I/usr/X11R6/include
+XLIBS = -L$(PREFIX)/lib -lX11
+XINCLUDEDIR = -I$(PREFIX)/include
############ Option 3: build pl executable (native win32 pl.exe)
########### Option 1: use bundled GD16 (PNG only). Requires libpng and zlib.
########### Option 2: use bundled GD13 (pseudoGIF only). No additional lib dependencies.
########### Option 4: use your own GD resource with FreeType2 fonts enabled.
########### Requires GD 1.84+, libpng, zlib, libjpeg and libfreetype
-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
-# GDFREETYPE = -DGDFREETYPE
+GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
+GDFREETYPE = -DGDFREETYPE
########### Option 5: don't use GD at all.
#### If you do a "make install", where do you want the executable(s) to be moved to?
-INSTALLBIN = /usr/local/bin
+INSTALLBIN = $(DESTDIR)$(PREFIX)/bin
#### For LOCALE support (non-roman alphabets & collation), uncomment the following..
-# LOCALE_FLAG = -DLOCALE
#### SVG output is always available by default.
#### If you want compressed SVG (.svgz), and you selected GD13 or no GD above,