diff options
Diffstat (limited to 'homebrew/netcdf/.make.sh-auto')
-rw-r--r-- | homebrew/netcdf/.make.sh-auto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/homebrew/netcdf/.make.sh-auto b/homebrew/netcdf/.make.sh-auto new file mode 100644 index 000000000..a37968056 --- /dev/null +++ b/homebrew/netcdf/.make.sh-auto @@ -0,0 +1,14 @@ +pkg:setup +ENV.deparallelize +common_args = std_cmake_args << "-DBUILD_TESTING=OFF" +mkdir "build" && cd build +args = common_args.dup +args << "-DENABLE_TESTS=OFF" +args << "-DNC_EXTRA_DEPS=-lmpi" if Tab.for_name("hdf5").with? "mpi" +args << "-DENABLE_DAP_AUTH_TESTS=OFF" << "-DENABLE_NETCDF_4=ON" << "-DENABLE_DOXYGEN=OFF" +cmake .. -DBUILD_SHARED_LIBS=ON *args +make DESTDIR=${PKG_DEST} install +make clean +cmake .. -DBUILD_SHARED_LIBS=OFF *args +make +lib.install "liblib/libnetcdf.a" |