Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/imagemagick6
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-01 15:40:04 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-01 15:40:04 +0200
commit6172c0386e70e42268e3e60eb07d5478a5d8fdee (patch)
tree984837ca310dbf01246e179b9276240e06074d21 /extra/imagemagick6
parent1b2b400af7cef3cee29e7fd77f22cef52e475970 (diff)
extra/imagemagick6: fixed compilation
Diffstat (limited to 'extra/imagemagick6')
-rw-r--r--extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch17
-rw-r--r--extra/imagemagick6/PKGBUILD11
2 files changed, 28 insertions, 0 deletions
diff --git a/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
new file mode 100644
index 00000000..57e22254
--- /dev/null
+++ b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
@@ -0,0 +1,17 @@
+diff -rauN ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h
+--- ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h 2018-08-28 14:31:12.000000000 +0200
++++ ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h 2018-09-01 15:14:05.133038562 +0200
+@@ -122,11 +122,12 @@
+ {
+ return (static_cast<double>(quantum_)/QuantumRange);
+ }
+-#endif
++#else
+ static double scaleQuantumToDouble(const double quantum_)
+ {
+ return (quantum_/QuantumRange);
+ }
++#endif
+
+ protected:
+
diff --git a/extra/imagemagick6/PKGBUILD b/extra/imagemagick6/PKGBUILD
new file mode 100644
index 00000000..c16dae59
--- /dev/null
+++ b/extra/imagemagick6/PKGBUILD
@@ -0,0 +1,11 @@
+# see https://github.com/ImageMagick/ImageMagick6/issues/17
+
+source+=('ImageMagick-6.9.10-11-bug17.patch')
+sha256sums+=('59592dba2feebf4457e0d79e95bd212f41a6e6bbec0ed7d3aaf43328047e9c96')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ /patch/ a patch -Np1 -i ../ImageMagick-6.9.10-11-bug17.patch
+ '
+)"