summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorMike Wey2014-03-01 20:11:43 +0100
committerMike Wey2014-03-01 20:11:43 +0100
commitcb46d8ca8283b6e7c26c12c3eb2c450a6b41cbcf (patch)
treef3356e678b808f93aa7966fe73616649c6b460e2 /GNUmakefile
parent7e90fdd06f0e7982e4cc68edffa9a6b293acc5a7 (diff)
Correctly detect the Quantum depth with newer versions of convert.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index d6946c6..94d2c7f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -53,7 +53,7 @@ MAGICKCORELIB=$(LINKERFLAG)$(lastword $(shell pkg-config --libs MagickCore))
AR=ar
RANLIB=ranlib
-QUANTUMDEPTH = $(word 5,$(shell convert --version))
+QUANTUMDEPTH = $(filter Q%,$(shell convert --version))
MAGICKVERSION = $(firstword $(subst -, ,$(subst .,,$(word 3,$(shell convert --version)))))
HDRISUPPORT = $(findstring HDRI,$(shell convert --version | grep HDRI))
WRAPEDVERSION = $(subst 0x,,$(subst ;,,$(lastword $(shell grep "enum\ MagickLibVersion\ " dmagick/c/magickVersion.d))))