diff options
| author | Mike Wey | 2011-10-23 19:56:52 +0200 |
|---|---|---|
| committer | Mike Wey | 2011-10-23 19:56:52 +0200 |
| commit | a9ef6c0b46ba044feb4b38d8faef6b75a49e91b5 (patch) | |
| tree | d1c8a3462570fb8ff7244a9ccea7fe8f2176aa06 /GNUmakefile | |
| parent | 191c94d74062945aa0c73283e7568240499bee0d (diff) | |
Use convert instead of MagickCore-config to determine the ImageMagick version. Because MagickCore-config is in a separate ImageMagick-devel package on some distobutions.
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 0dbb948..1c4ae95 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -45,8 +45,8 @@ endif AR=ar RANLIB=ranlib -QUANTUMDEPTH = $(lastword $(shell MagickCore-config --version)) -MAGICKVERSION = $(subst .,,$(firstword $(shell MagickCore-config --version))) +QUANTUMDEPTH = $(word 5,$(shell convert --version)) +MAGICKVERSION = $(firstword $(subst -, ,$(subst .,,$(word 3,$(shell convert --version))))) ifneq ("$(QUANTUMDEPTH)","Q16") VERSIONS+= -version=$(subst Q,Quantum,$(QUANTUMDEPTH)) |
