summaryrefslogtreecommitdiff
path: root/homebrew/postgis/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/postgis/.make.sh-auto')
-rw-r--r--homebrew/postgis/.make.sh-auto17
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/postgis/.make.sh-auto b/homebrew/postgis/.make.sh-auto
new file mode 100644
index 000000000..0de17ec85
--- /dev/null
+++ b/homebrew/postgis/.make.sh-auto
@@ -0,0 +1,17 @@
+pkg:setup
+ENV.deparallelize
+args = [
+"--with-projdir=#{Formula["proj"].opt_prefix}", "--with-jsondir=#{Formula["json-c"].opt_prefix}", "--with-pgconfig=#{Formula["postgresql"].opt_bin}/pg_config", "--with-protobufdir=#{Formula["protobuf-c"].opt_bin}", "--disable-nls", ]
+pkg:configure *args
+make
+mkdir "stage"
+make DESTDIR=${PKG_DEST} install DESTDIR=#{buildpath}/stage
+bin.install Dir["stage/**/bin/*"]
+lib.install Dir["stage/**/lib/*"]
+include.install Dir["stage/**/include/*"]
+(doc/"postgresql/extension").install Dir["stage/**/share/doc/postgresql/extension/*"]
+(share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
+pkgshare.install Dir["stage/**/contrib/postgis-*/*"]
+(share/"postgis_topology").install Dir["stage/**/contrib/postgis_topology-*/*"]
+bin.install %w[utils/create_undef.pl utils/postgis_proc_upgrade.pl utils/postgis_restore.pl utils/profile_intersects.pl utils/test_estimation.pl utils/test_geography_estimation.pl utils/test_geography_joinestimation.pl utils/test_joinestimation.pl ]
+man1.install Dir["doc/**/*.1"]