-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimagemagick-no-openmp.patch
47 lines (44 loc) · 1.33 KB
/
imagemagick-no-openmp.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- imagemagick.rb 2024-12-29 01:54:36.849941644 +0900
+++ imagemagick-no-openmp.rb 2024-12-29 01:56:16.574644957 +0900
@@ -1,4 +1,4 @@
-class Imagemagick < Formula
+class ImagemagickNoOpenmp < Formula
desc "Tools and libraries to manipulate images in many formats"
homepage "https://imagemagick.org/index.php"
url "https://imagemagick.org/archive/releases/ImageMagick-7.1.1-43.tar.xz"
@@ -20,6 +20,8 @@
sha256 x86_64_linux: "30e617977216fe9175f0c04b49ebd136fe03a309f8a8fb41c34d290b194408f6"
end
+ keg_only "homebrew-core provides imagemagick"
+
depends_on "pkgconf" => :build
depends_on "fontconfig"
depends_on "freetype"
@@ -46,10 +48,10 @@
depends_on "gettext"
depends_on "glib"
depends_on "imath"
- depends_on "libomp"
end
on_linux do
+ depends_on "jbigkit"
depends_on "libx11"
depends_on "libxext"
end
@@ -83,15 +85,12 @@
"--without-fftw",
"--without-pango",
"--without-wmf",
- "--enable-openmp",
+ "--disable-openmp",
]
if OS.mac?
args += [
"--without-x",
- # Work around "checking for clang option to support OpenMP... unsupported"
- "ac_cv_prog_c_openmp=-Xpreprocessor -fopenmp",
- "ac_cv_prog_cxx_openmp=-Xpreprocessor -fopenmp",
- "LDFLAGS=-lomp -lz",
+ "LDFLAGS=-lz",
]
end