0ba9cea6f3
[jn: add ENV.cxx11] Closes Homebrew/homebrew#28975. Closes Homebrew/homebrew#29112. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
32 lines
699 B
Ruby
32 lines
699 B
Ruby
require 'formula'
|
|
|
|
class Libcppa < Formula
|
|
homepage 'http://libcppa.blogspot.it'
|
|
url 'http://github.com/Neverlord/libcppa/archive/V0.9.1.tar.gz'
|
|
sha1 '70ea94e25b508d85ee4899f9632eb71b79f17480'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
needs :cxx11
|
|
|
|
option 'with-opencl', 'Build with OpenCL actors'
|
|
option 'with-examples', 'Build examples'
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--build-static
|
|
--disable-context-switching
|
|
]
|
|
|
|
args << '--with-opencl' if build.with? 'opencl'
|
|
args << '--no-examples' if build.without? 'examples'
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "test"
|
|
system "make", "install"
|
|
end
|
|
end
|