diff options
Diffstat (limited to 'homebrew/libspatialite/.make.sh-auto')
-rw-r--r-- | homebrew/libspatialite/.make.sh-auto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/libspatialite/.make.sh-auto b/homebrew/libspatialite/.make.sh-auto new file mode 100644 index 000000000..fe7696ab1 --- /dev/null +++ b/homebrew/libspatialite/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +inreplace "configure", "shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'", "shrext_cmds='.dylib'" +chmod 0755, "configure" +sqlite = Formula["sqlite"] +ENV.append "LDFLAGS", "-L#{sqlite.opt_lib}" +ENV.append "CFLAGS", "-I#{sqlite.opt_include}" +ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" +args = %W[--disable-dependency-tracking --prefix=#{prefix} --with-sysroot=#{HOMEBREW_PREFIX} --enable-geocallbacks ] +pkg:configure *args +make DESTDIR=${PKG_DEST} install |