-
-
Save MaZderMind/2500156 to your computer and use it in GitHub Desktop.
Osmium Homebrew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Osmium < Formula | |
head 'https://github.com/joto/osmium.git' | |
homepage 'http://wiki.openstreetmap.org/wiki/Osmium' | |
md5 'dce9eb59d86caf1186fc93567b94feed' | |
depends_on 'boost' | |
depends_on 'lzlib' | |
depends_on 'shapelib' | |
depends_on 'expat' | |
depends_on 'geos' | |
depends_on 'protobuf' | |
depends_on 'v8' | |
depends_on 'icu4c' | |
depends_on 'google-sparsehash' | |
depends_on 'osm-pbf' | |
depends_on 'libgd' | |
depends_on 'doxygen' | |
depends_on 'gdal' | |
skip_clean :all | |
def install | |
cd 'osmjs' do | |
icu = Formula.factory("icu4c") | |
ENV['CPLUS_INCLUDE_PATH'] = icu.include | |
ENV['LIBRARY_PATH'] = icu.lib | |
system "make" | |
bin.install 'osmjs' | |
end | |
cd 'examples' do | |
system "make" | |
bin.install 'osmium_convert' | |
bin.install 'osmium_debug' | |
bin.install 'osmium_store_and_debug' | |
bin.install 'osmium_find_bbox' | |
bin.install 'osmium_progress' | |
bin.install 'osmium_range_from_history' | |
bin.install 'osmium_sizeof' | |
bin.install 'osmium_stats' | |
bin.install 'osmium_time' | |
bin.install 'osmium_toogr' | |
bin.install 'osmium_toogr2' | |
bin.install 'osmium_toshape' | |
bin.install 'nodedensity' | |
end | |
system "make doc" | |
include.install Dir['include/*'] | |
doc.install Dir['doc/*'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@MaZderMind Hey, my pull request to osm-pbf was accepted. Would you mind to create a new formula pull request for osmium?