From 5c00245e50d3c3f035b9b3783193a43b507bc7f5 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Tue, 27 Aug 2013 23:16:32 +0200 Subject: Add HDRI support. --- GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 23812e6..c1625e8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -46,6 +46,7 @@ RANLIB=ranlib QUANTUMDEPTH = $(word 5,$(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)))) ifneq ("$(QUANTUMDEPTH)","Q16") @@ -56,6 +57,10 @@ ifneq ("$(MAGICKVERSION)","$(WRAPEDVERSION)") VERSIONS+= -version=MagickCore_$(MAGICKVERSION) endif +ifeq ("$(HDRISUPPORT)","HDRI") + VERSIONS+= -version=MagickCore_HDRI +endif + ifdef VERSIONS DCFLAGS+=$(VERSIONS) endif -- cgit v1.2.3