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"