2014-07-21 01:53:52 +00:00
|
|
|
require "formula"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
class Libcppa < Formula
|
2014-07-21 01:53:52 +00:00
|
|
|
homepage "http://libcppa.blogspot.it"
|
|
|
|
url "http://github.com/Neverlord/libcppa/archive/V0.9.4.tar.gz"
|
|
|
|
sha1 "eba8002f087e55498edc0bf996fb7f211d7feec6"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
2014-06-02 12:15:25 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-07-21 02:18:27 +00:00
|
|
|
sha1 "a90dee39274040acf70868ccc636e8c14e7c7ad5" => :mavericks
|
|
|
|
sha1 "3ef83c6fad796a1e50f6fd417b81825a44f606d5" => :mountain_lion
|
2014-06-02 12:15:25 +00:00
|
|
|
end
|
|
|
|
|
2014-07-21 01:53:52 +00:00
|
|
|
depends_on "cmake" => :build
|
2013-08-17 10:57:52 +00:00
|
|
|
|
2014-04-05 04:16:09 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
2014-07-21 01:53:52 +00:00
|
|
|
option "with-opencl", "Build with OpenCL actors"
|
|
|
|
option "with-examples", "Build examples"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-05 20:24:04 +00:00
|
|
|
ENV.cxx11
|
|
|
|
|
2013-08-17 10:57:52 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--build-static
|
|
|
|
--disable-context-switching
|
|
|
|
]
|
|
|
|
|
2014-07-21 01:53:52 +00:00
|
|
|
args << "--with-opencl" if build.with? "opencl"
|
|
|
|
args << "--no-examples" if build.without? "examples"
|
2013-08-17 10:57:52 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make", "test"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|