Skip to content

Instantly share code, notes, and snippets.

@MaZderMind
Forked from christoph-buente/osmium.rb
Created April 26, 2012 14:57
Show Gist options
  • Save MaZderMind/2500156 to your computer and use it in GitHub Desktop.
Save MaZderMind/2500156 to your computer and use it in GitHub Desktop.
Osmium Homebrew formula
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
@christoph-buente
Copy link

@MaZderMind Hey, my pull request to osm-pbf was accepted. Would you mind to create a new formula pull request for osmium?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment