blob: 0c38386a775762236e1ba30f70b60665e8432124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  | 
require 'formula'
class Poco < Formula
  homepage 'http://pocoproject.org/'
  url 'http://pocoproject.org/releases/poco-1.4.7/poco-1.4.7-all.tar.gz'
  sha1 '778bd5fca9d4169a2dd83265bc07123bd0d12273'
  version '1.4.7-all'
  bottle do
    cellar :any
    sha1 "5234c064ce6b045c647c2fe144eb4a37312cf7a1" => :yosemite
    sha1 "23c4636a3c6fc634708999981dce3a37943eb715" => :mavericks
    sha1 "cddefc836a5b38de7ad852f40f0208b95e1bb063" => :mountain_lion
  end
  devel do
    url 'http://pocoproject.org/releases/poco-1.5.4/poco-1.5.4-all.tar.gz'
    sha1 'd7f14c49472c4f333fe99d43cac021e90d24b024'
  end
  option :cxx11
  depends_on "openssl"
  def install
    ENV.cxx11 if build.cxx11?
    arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32'
    arch << '-clang' if ENV.compiler == :clang
    system "./configure", "--prefix=#{prefix}",
                          "--config=#{arch}",
                          "--omit=Data/MySQL,Data/ODBC",
                          "--no-samples",
                          "--no-tests"
    system "make", "install", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
  end
end
  |