aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/json_spirit.rb
blob: 8c4d21c1b3ff3222f7870722d57d64988d81040d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class JsonSpirit < Formula
  homepage 'http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx'
  url 'https://github.com/png85/json_spirit/archive/json_spirit-4.07.zip'
  sha1 'e7055cb8fd596fc89b73e6898d8162a56fd80ec7'

  depends_on 'boost'
  depends_on 'cmake' => :build

  def install
    args = std_cmake_args
    args << "-DBUILD_STATIC_LIBRARIES=ON"

    system "cmake", *args
    system "make"

    args = std_cmake_args
    args << "-DBUILD_STATIC_LIBRARIES=OFF"
    system "cmake", *args
    system "make install"
  end
end