gmic: remove options

This commit is contained in:
FX Coudert 2018-12-29 00:40:15 +01:00
parent b6e9d7dbb3
commit db2806c83a

View file

@ -3,7 +3,7 @@ class Gmic < Formula
homepage "https://gmic.eu/"
url "https://gmic.eu/files/source/gmic_2.1.5.tar.gz"
sha256 "2f3de90a09bba6d24c89258be016fd6992886bda13dbbcaf03de58c765774845"
revision 1
revision 2
head "https://github.com/dtschump/gmic.git"
bottle do
@ -18,20 +18,15 @@ class Gmic < Formula
depends_on "fftw"
depends_on "jpeg"
depends_on "libpng"
depends_on "ffmpeg" => :optional
depends_on "libtiff" => :optional
depends_on "opencv@2" => :optional
depends_on "openexr" => :optional
depends_on "libtiff"
def install
cp "resources/CMakeLists.txt", buildpath
args = std_cmake_args
args << "-DENABLE_X=OFF"
args << "-DENABLE_FFMPEG=OFF" if build.without? "ffmpeg"
args << "-DENABLE_OPENCV=OFF" if build.without? "opencv"
args << "-DENABLE_OPENEXR=OFF" if build.without? "openexr"
args << "-DENABLE_TIFF=OFF" if build.without? "libtiff"
system "cmake", *args
system "cmake", *std_cmake_args,
"-DENABLE_FFMPEG=OFF",
"-DENABLE_OPENCV=OFF",
"-DENABLE_OPENEXR=OFF",
"-DENABLE_X=OFF"
system "make", "install"
end