diff options
Diffstat (limited to 'homebrew/gribapi/.make.sh-auto')
-rw-r--r-- | homebrew/gribapi/.make.sh-auto | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/homebrew/gribapi/.make.sh-auto b/homebrew/gribapi/.make.sh-auto new file mode 100644 index 000000000..e78c4a913 --- /dev/null +++ b/homebrew/gribapi/.make.sh-auto @@ -0,0 +1,6 @@ +pkg:setup +inreplace "src/grib_jasper_encoding.c", "image.inmem_ = 1;", "" +inreplace "CMakeLists.txt", "find_package( OpenJPEG )", "" +mkdir "build" && cd build +cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DENABLE_NETCDF=OFF -DENABLE_PNG=ON -DPNG_PNG_INCLUDE_DIR=#{Formula[libpng"].opt_include}" +make DESTDIR=${PKG_DEST} install |