From cb46d8ca8283b6e7c26c12c3eb2c450a6b41cbcf Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 1 Mar 2014 20:11:43 +0100 Subject: Correctly detect the Quantum depth with newer versions of convert. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GNUmakefile') 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)))) -- cgit v1.2.3