frei0r: add optional cairo and opencv dependency

Closes #740.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
Martin Afanasjew 2016-05-03 02:03:42 +02:00
parent b484cad921
commit 016e5041aa

View file

@ -13,8 +13,12 @@ class Frei0r < Formula
end
depends_on "autoconf" => :build
depends_on "pkg-config" => :build
depends_on "cairo" => :optional
depends_on "homebrew/science/opencv" => :optional
def install
ENV["CAIRO_CFLAGS"] = "-I#{Formula["cairo"].opt_include}/cairo" if build.with? "cairo"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"