-
-
Save VincentDamour/15af3a07ef6487d6fe8daed7e96d5c0a to your computer and use it in GitHub Desktop.
ImageMagick 7.0.9-7 Formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Imagemagick < Formula | |
desc "Tools and libraries to manipulate images in many formats" | |
homepage "https://www.imagemagick.org/" | |
url "https://dl.bintray.com/homebrew/mirror/ImageMagick-7.0.9-7.tar.xz" | |
mirror "https://www.imagemagick.org/download/ImageMagick-7.0.9-7.tar.xz" | |
sha256 "73398cc626ebbb060d0df552b0db75de0c334f9626286284b627a6eb2a66ed19" | |
head "https://github.com/ImageMagick/ImageMagick.git" | |
bottle do | |
sha256 "ee96f35821b25aa1e0ae3c8163b471bb9a41bf353df98cf094321aeadf11bc27" => :catalina | |
sha256 "a0c214b6fbb0173b12411520ac65770d3e9dccbd05936eecbd5024948743dfde" => :mojave | |
sha256 "bf2f2ac585197477b4677ab3604fb212808b99fa0dc0f82a6c30c1f44953cdc1" => :high_sierra | |
sha256 "b4357805d8fd4f98c7f702f708a6aebc10e2d9638808efde3f1a4d262cb9f6f6" => :catalina | |
sha256 "64e887e23289a93bd191b437170ea74fa0affadee6c86c288b280de79431e540" => :mojave | |
sha256 "259f2bd4e49c45f6df92f0d5b3c40fb5d97f1c01f2b6018601c39064ea97416c" => :high_sierra | |
end | |
depends_on "pkg-config" => :build | |
depends_on "freetype" | |
depends_on "jpeg" | |
depends_on "libheif" | |
depends_on "libomp" | |
depends_on "libpng" | |
depends_on "libtiff" | |
depends_on "libtool" | |
depends_on "little-cms2" | |
depends_on "openexr" | |
depends_on "openjpeg" | |
depends_on "webp" | |
depends_on "xz" | |
uses_from_macos "bzip2" | |
uses_from_macos "libxml2" | |
skip_clean :la | |
def install | |
args = %W[ | |
--disable-osx-universal-binary | |
--prefix=#{prefix} | |
--disable-dependency-tracking | |
--disable-silent-rules | |
--disable-opencl | |
--enable-shared | |
--enable-static | |
--with-freetype=yes | |
--with-modules | |
--with-openjp2 | |
--with-openexr | |
--with-webp=yes | |
--with-heic=yes | |
--without-gslib | |
--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts | |
--without-fftw | |
--without-pango | |
--without-x | |
--without-wmf | |
--enable-openmp | |
ac_cv_prog_c_openmp=-Xpreprocessor\ -fopenmp | |
ac_cv_prog_cxx_openmp=-Xpreprocessor\ -fopenmp | |
LDFLAGS=-lomp | |
] | |
# versioned stuff in main tree is pointless for us | |
inreplace "configure", "${PACKAGE_NAME}-${PACKAGE_VERSION}", "${PACKAGE_NAME}" | |
system "./configure", *args | |
system "make", "install" | |
end | |
test do | |
assert_match "PNG", shell_output("#{bin}/identify #{test_fixtures("test.png")}") | |
# Check support for recommended features and delegates. | |
features = shell_output("#{bin}/convert -version") | |
%w[Modules freetype jpeg png tiff].each do |feature| | |
assert_match feature, features | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment