gmic: remove options
This commit is contained in:
parent
b6e9d7dbb3
commit
db2806c83a
1 changed files with 7 additions and 12 deletions
|
@ -3,7 +3,7 @@ class Gmic < Formula
|
||||||
homepage "https://gmic.eu/"
|
homepage "https://gmic.eu/"
|
||||||
url "https://gmic.eu/files/source/gmic_2.1.5.tar.gz"
|
url "https://gmic.eu/files/source/gmic_2.1.5.tar.gz"
|
||||||
sha256 "2f3de90a09bba6d24c89258be016fd6992886bda13dbbcaf03de58c765774845"
|
sha256 "2f3de90a09bba6d24c89258be016fd6992886bda13dbbcaf03de58c765774845"
|
||||||
revision 1
|
revision 2
|
||||||
head "https://github.com/dtschump/gmic.git"
|
head "https://github.com/dtschump/gmic.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -18,20 +18,15 @@ class Gmic < Formula
|
||||||
depends_on "fftw"
|
depends_on "fftw"
|
||||||
depends_on "jpeg"
|
depends_on "jpeg"
|
||||||
depends_on "libpng"
|
depends_on "libpng"
|
||||||
depends_on "ffmpeg" => :optional
|
depends_on "libtiff"
|
||||||
depends_on "libtiff" => :optional
|
|
||||||
depends_on "opencv@2" => :optional
|
|
||||||
depends_on "openexr" => :optional
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
cp "resources/CMakeLists.txt", buildpath
|
cp "resources/CMakeLists.txt", buildpath
|
||||||
args = std_cmake_args
|
system "cmake", *std_cmake_args,
|
||||||
args << "-DENABLE_X=OFF"
|
"-DENABLE_FFMPEG=OFF",
|
||||||
args << "-DENABLE_FFMPEG=OFF" if build.without? "ffmpeg"
|
"-DENABLE_OPENCV=OFF",
|
||||||
args << "-DENABLE_OPENCV=OFF" if build.without? "opencv"
|
"-DENABLE_OPENEXR=OFF",
|
||||||
args << "-DENABLE_OPENEXR=OFF" if build.without? "openexr"
|
"-DENABLE_X=OFF"
|
||||||
args << "-DENABLE_TIFF=OFF" if build.without? "libtiff"
|
|
||||||
system "cmake", *args
|
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue