summaryrefslogtreecommitdiff
blob: b712a4743620f7ed7665262dadbef625524b0f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- basemap-0.9.5/setup.py.orig	2007-03-15 07:26:43.000000000 -0600
+++ basemap-0.9.5/setup.py	2007-03-23 15:36:02.000000000 -0600
@@ -11,7 +11,7 @@
     DBFUpdateHeader is available, we scan shapefil.h for the string
     'DBFUpdateHeader'.
     """
-    f = open(convert_path("pyshapelib/shapelib/shapefil.h"))
+    f = open(convert_path("/usr/include/libshp/shapefil.h"))
     contents = f.read()
     f.close()
     if contents.find("DBFUpdateHeader") >= 0:
@@ -23,7 +23,7 @@
 
 packages          = ['matplotlib.toolkits.basemap']
 package_dirs       = {'':'lib'}
-extensions = [Extension("matplotlib.toolkits.basemap._pyproj",deps,include_dirs = ['src'],)]
+extensions = [Extension("matplotlib.toolkits.basemap._pyproj",['src/_pyproj.c'],include_dirs = ['src'],libraries=["proj"])]
 
 # only install shapelib and dbflib if user hasn't got them.
 #try: import shapelib
@@ -40,17 +40,16 @@
     package_dirs['dbflib'] ='lib/dbflib'
     extensions = extensions + \
              [Extension("shapelibc",
-                        ["pyshapelib/shapelib_wrap.c",
-                         "pyshapelib/shapelib/shpopen.c",
-                         "pyshapelib/shapelib/shptree.c"],
-                        include_dirs = ["pyshapelib/shapelib"]),
+                        ["pyshapelib/shapelib_wrap.c"],
+                        include_dirs = ["/usr/include/libshp"],
+                        libraries=["shp"]),
               Extension("shptree",
                         ["pyshapelib/shptreemodule.c"],
-                        include_dirs = ["pyshapelib/shapelib"]),
+                        include_dirs = ["/usr/include/libshp"]),
               Extension("dbflibc",
-                        ["pyshapelib/dbflib_wrap.c",
-                         "pyshapelib/shapelib/dbfopen.c"],
-                        include_dirs = ["pyshapelib/shapelib"],
+                        ["pyshapelib/dbflib_wrap.c"],
+                        include_dirs = ["/usr/include/libshp"],
+                        libraries=["shp"],
                         define_macros = dbf_macros()) ]
 
 if 'setuptools' in sys.modules: