2012-01-09 18:36:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class JsonSpirit < Formula
|
|
|
|
homepage 'http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx'
|
2013-11-12 19:43:32 +00:00
|
|
|
url 'https://github.com/png85/json_spirit/archive/json_spirit-4.07.zip'
|
|
|
|
sha1 'e7055cb8fd596fc89b73e6898d8162a56fd80ec7'
|
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
|