-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ImageMagick, build for experimental platforms (#3424)
* Bump ImageMagick, build for experimental platforms * Bump `libtiff` version, as requested by comment * Update build_tarballs.jl * [ImageMagick] Link some utilities to librt because of `clock_gettime` * [ImageMagick] Add more patches for Windows Co-authored-by: Mosè Giordano <[email protected]>
- Loading branch information
1 parent
e75a463
commit 3f3dbd3
Showing
4 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
11 changes: 11 additions & 0 deletions
11
I/ImageMagick/bundled/patches/check-have-clock-realtime.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/magick/timer.c | ||
+++ b/magick/timer.c | ||
@@ -191,7 +191,7 @@ | ||
*/ | ||
static double ElapsedTime(void) | ||
{ | ||
-#if defined(MAGICKCORE_HAVE_CLOCK_GETTIME) | ||
+#if defined(MAGICKCORE_HAVE_CLOCK_GETTIME) && defined(HAVE_CLOCK_REALTIME) | ||
#define NANOSECONDS_PER_SECOND 1000000000.0 | ||
#if defined(CLOCK_HIGHRES) | ||
# define CLOCK_ID CLOCK_HIGHRES |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- a/Makefile.in | ||
+++ b/Makefile.in | ||
@@ -5471,37 +5471,37 @@ | ||
$(UTILITIES_TTF_XFAIL_TESTS) \ | ||
$(UTILITIES_XML_XFAIL_TESTS) | ||
|
||
-utilities_animate_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_animate_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_animate_LDFLAGS = $(LDFLAGS) | ||
utilities_animate_SOURCES = utilities/animate.c | ||
-utilities_compare_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_compare_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_compare_LDFLAGS = $(LDFLAGS) | ||
utilities_compare_SOURCES = utilities/compare.c | ||
-utilities_composite_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_composite_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_composite_LDFLAGS = $(LDFLAGS) | ||
utilities_composite_SOURCES = utilities/composite.c | ||
-utilities_conjure_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_conjure_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_conjure_LDFLAGS = $(LDFLAGS) | ||
utilities_conjure_SOURCES = utilities/conjure.c | ||
-utilities_convert_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_convert_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_convert_LDFLAGS = $(LDFLAGS) | ||
utilities_convert_SOURCES = utilities/convert.c | ||
-utilities_display_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_display_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_display_LDFLAGS = $(LDFLAGS) | ||
utilities_display_SOURCES = utilities/display.c | ||
-utilities_identify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_identify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_identify_LDFLAGS = $(LDFLAGS) | ||
utilities_identify_SOURCES = utilities/identify.c | ||
-utilities_import_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_import_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_import_LDFLAGS = $(LDFLAGS) | ||
utilities_import_SOURCES = utilities/import.c | ||
-utilities_mogrify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_mogrify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_mogrify_LDFLAGS = $(LDFLAGS) | ||
utilities_mogrify_SOURCES = utilities/mogrify.c | ||
-utilities_montage_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_montage_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_montage_LDFLAGS = $(LDFLAGS) | ||
utilities_montage_SOURCES = utilities/montage.c | ||
-utilities_stream_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) | ||
+utilities_stream_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) -lrt | ||
utilities_stream_LDFLAGS = $(LDFLAGS) | ||
utilities_stream_SOURCES = utilities/stream.c | ||
UTILITIES_MANS = \ |
13 changes: 13 additions & 0 deletions
13
I/ImageMagick/bundled/patches/windows-undefined-reference-__imp_WSAStartup.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/Makefile.in | ||
+++ b/Makefile.in | ||
@@ -4663,8 +4663,8 @@ | ||
MAGICKCORE_LIBS = magick/libMagickCore-@MAGICK_MAJOR_VERSION@.@[email protected] | ||
@WITH_MODULES_FALSE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_SOURCES = $(MAGICK_BASE_SRCS) $(MAGICK_PLATFORM_SRCS) $(MAGICK_CODER_SRCS) $(MAGICK_FILTER_SRCS) | ||
@WITH_MODULES_TRUE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_SOURCES = $(MAGICK_BASE_SRCS) $(MAGICK_PLATFORM_SRCS) | ||
-@WITH_MODULES_FALSE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LIBADD = $(MAGICK_DEP_LIBS) | ||
-@WITH_MODULES_TRUE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LIBADD = $(MAGICK_DEP_LIBS) | ||
+@WITH_MODULES_FALSE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LIBADD = $(MAGICK_DEP_LIBS) -lws2_32 | ||
+@WITH_MODULES_TRUE@magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LIBADD = $(MAGICK_DEP_LIBS) -lws2_32 | ||
nodist_magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_SOURCES = \ | ||
$(am__append_1) | ||
magick_libMagickCore_@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBRARY_EXTRA_CPPFLAGS) |