summaryrefslogtreecommitdiff
path: root/homebrew/gmt/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gmt/.make.sh-auto')
-rw-r--r--homebrew/gmt/.make.sh-auto7
1 files changed, 7 insertions, 0 deletions
diff --git a/homebrew/gmt/.make.sh-auto b/homebrew/gmt/.make.sh-auto
new file mode 100644
index 000000000..94852b396
--- /dev/null
+++ b/homebrew/gmt/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+(buildpath/"gshhg").install resource("gshhg")
+(buildpath/"dcw").install resource("dcw")
+args = std_cmake_args.concat %W[-DCMAKE_INSTALL_PREFIX=#{prefix} -DGMT_DOCDIR=#{share}/doc/gmt -DGMT_MANDIR=#{man} -DGSHHG_ROOT=#{buildpath}/gshhg -DCOPY_GSHHG:BOOL=TRUE -DDCW_ROOT=#{buildpath}/dcw -DCOPY_DCW:BOOL=TRUE -DFFTW3_ROOT=#{Formula["fftw"].opt_prefix} -DGDAL_ROOT=#{Formula["gdal"].opt_prefix} -DNETCDF_ROOT=#{Formula["netcdf"].opt_prefix} -DPCRE_ROOT=#{Formula["pcre"].opt_prefix} -DFLOCK:BOOL=TRUE -DGMT_INSTALL_MODULE_LINKS:BOOL=TRUE -DGMT_INSTALL_TRADITIONAL_FOLDERNAMES:BOOL=FALSE -DLICENSE_RESTRICTED:BOOL=FALSE ]
+mkdir "build" && cd build
+cmake .. *args
+make DESTDIR=${PKG_DEST} install