diff options
Diffstat (limited to 'homebrew/mapnik/.make.sh-auto')
-rw-r--r-- | homebrew/mapnik/.make.sh-auto | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/mapnik/.make.sh-auto b/homebrew/mapnik/.make.sh-auto new file mode 100644 index 000000000..aabc6bb38 --- /dev/null +++ b/homebrew/mapnik/.make.sh-auto @@ -0,0 +1,17 @@ +pkg:setup +ENV.cxx11 +ENV.delete("SDKROOT") if DevelopmentTools.clang_build_version >= 900 +ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" +boost = Formula["boost"].opt_prefix +freetype = Formula["freetype"].opt_prefix +harfbuzz = Formula["harfbuzz"].opt_prefix +icu = Formula["icu4c"].opt_prefix +jpeg = Formula["jpeg"].opt_prefix +libpng = Formula["libpng"].opt_prefix +libtiff = Formula["libtiff"].opt_prefix +proj = Formula["proj"].opt_prefix +webp = Formula["webp"].opt_prefix +args = %W[CC=#{ENV.cc} CXX=#{ENV.cxx} PREFIX=#{prefix} BOOST_INCLUDES=#{boost}/include BOOST_LIBS=#{boost}/lib CAIRO=True CPP_TESTS=False FREETYPE_CONFIG=#{freetype}/bin/freetype-config GDAL_CONFIG=#{Formula["gdal"].opt_bin}/gdal-config HB_INCLUDES=#{harfbuzz}/include HB_LIBS=#{harfbuzz}/lib ICU_INCLUDES=#{icu}/include ICU_LIBS=#{icu}/lib INPUT_PLUGINS=all JPEG_INCLUDES=#{jpeg}/include JPEG_LIBS=#{jpeg}/lib NIK2IMG=False PG_CONFIG=#{Formula["postgresql"].opt_bin}/pg_config PNG_INCLUDES=#{libpng}/include PNG_LIBS=#{libpng}/lib PROJ_INCLUDES=#{proj}/include PROJ_LIBS=#{proj}/lib TIFF_INCLUDES=#{libtiff}/include TIFF_LIBS=#{libtiff}/lib WEBP_INCLUDES=#{webp}/include WEBP_LIBS=#{webp}/lib ] +pkg:configure *args +make +make DESTDIR=${PKG_DEST} install |