cfitsio: add reentrant option (#19432)

This commit is contained in:
Devon Hollowood 2017-10-15 07:23:11 -03:00 committed by ilovezfs
parent 6c4fd865cf
commit 3b58ba3782

View file

@ -13,8 +13,12 @@ class Cfitsio < Formula
sha256 "7681f60baee8d9a73639be3f54d7f4a1c71c9fc9f4ac7fd0e3ba20cb2a2c3c7b" => :el_capitan
end
option "with-reentrant", "Build with support for concurrency"
def install
system "./configure", "--prefix=#{prefix}"
args = ["--prefix=#{prefix}"]
args << "--enable-reentrant" if build.with? "reentrant"
system "./configure", *args
system "make", "shared"
system "make", "install"
(pkgshare/"testprog").install Dir["testprog*"]