diff options
Diffstat (limited to 'homebrew/osm2pgsql/.make.sh-auto')
-rw-r--r-- | homebrew/osm2pgsql/.make.sh-auto | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/homebrew/osm2pgsql/.make.sh-auto b/homebrew/osm2pgsql/.make.sh-auto new file mode 100644 index 000000000..c582f0dc0 --- /dev/null +++ b/homebrew/osm2pgsql/.make.sh-auto @@ -0,0 +1,7 @@ +pkg:setup +lua_version = Formula["lua"].version.to_s.match(/\d\.\d/) +inreplace "cmake/FindLua.cmake", "LUA_VERSIONS5 5.3 5.2 5.1 5.0", "LUA_VERSIONS5 #{lua_version}" +ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" +mkdir "build" && cd build +cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} +make DESTDIR=${PKG_DEST} install |