summaryrefslogtreecommitdiff
path: root/homebrew/gmt/.make.sh-auto
blob: 94852b39693499fd9041b93e9895e72e4db9833b (plain)
1
2
3
4
5
6
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