$OpenBSD: patch-setup_py,v 1.2 2005/11/20 13:59:50 alek Exp $
--- setup.py.orig	Wed Mar 23 19:16:40 2005
+++ setup.py	Sun Nov 20 13:20:20 2005
@@ -183,6 +183,9 @@ class pil_build_ext(build_ext):
         add_directory(library_dirs, "/usr/lib")
         add_directory(include_dirs, "/usr/include")
 
+	add_directory(library_dirs, "/usr/X11R6/lib")
+	add_directory(include_dirs, "/usr/X11R6/include")
+
         #
         # insert new dirs *before* default libs, to avoid conflicts
         # between Python PYD stub libs and real libraries
@@ -312,7 +315,8 @@ class pil_build_ext(build_ext):
         elif feature.tcl and feature.tk:
             exts.append(Extension(
                 "_imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
-                libraries=[feature.tcl, feature.tk]
+                libraries=[feature.tcl, feature.tk],
+		include_dirs=["/usr/local/include/tk8.4", "/usr/local/include/tcl8.4", "/usr/X11R6/include"]
                 ))
 
         if os.path.isfile("_pilmath.c"):
@@ -433,7 +437,6 @@ if __name__ == "__main__":
         package_dir={"": "PIL"},
         packages=[""],
         platforms="Python 1.5.2 and later.",
-        scripts = glob.glob("Scripts/pil*.py"),
         url=HOMEPAGE,
         version=VERSION,
         )
