2012-01-09 18:36:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class JsonSpirit < Formula
|
|
|
|
homepage 'http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx'
|
2014-03-06 21:15:30 +00:00
|
|
|
url 'https://github.com/png85/json_spirit/archive/json_spirit-4.07.tar.gz'
|
|
|
|
sha1 'b29272c59f8f840c255f75a0949ba839b7cec13b'
|
2012-01-09 18:36:48 +00:00
|
|
|
|
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
2013-11-12 19:43:32 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DBUILD_STATIC_LIBRARIES=ON"
|
|
|
|
|
2013-11-13 15:09:46 +00:00
|
|
|
system "cmake", *args
|
|
|
|
system "make"
|
|
|
|
|
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DBUILD_STATIC_LIBRARIES=OFF"
|
2013-11-12 19:43:32 +00:00
|
|
|
system "cmake", *args
|
2012-01-09 18:36:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|