Ticket #37635: patch-setup_py.diff-new

File patch-setup_py.diff-new, 1.0 KB (added by ian.rees@…, 11 years ago)
Line 
1--- setup.py_orig       2013-01-14 21:39:34.000000000 +1300
2+++ setup.py    2013-01-14 22:32:36.000000000 +1300
3@@ -117,12 +117,11 @@
4         # sometimes iconv is built in, sometimes it isn't
5         if not self.compiler.has_function("iconv"):
6           ext.libraries.append("iconv")
7-
8-        #Default locations for Mac
9-        ext.include_dirs.append("/Library/Frameworks/GEOS.framework/unix/include/")
10-        ext.include_dirs.append("/Library/Frameworks/PROJ.framework/unix/include/")
11-        ext.library_dirs.append("/Library/Frameworks/GEOS.framework/unix/lib")
12-        ext.library_dirs.append("/Library/Frameworks/PROJ.framework/unix/lib")
13+          ext.libraries.append("charset")
14+       
15+        # For Macports
16+        ext.include_dirs.append("/opt/local/include/")
17+        ext.library_dirs.append("/opt/local/lib/")
18 
19         ext.define_macros.append(("SQLITE_ENABLE_FTS3", "1"))   # build with fulltext search enabled
20         ext.define_macros.append(("SQLITE_ENABLE_RTREE", "1"))   # build with fulltext search enabled