From 2a448802b7a8683cbfed601f2d6f7e4aaafca845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 13 Jul 2009 19:08:01 +0300 Subject: Add support for building with GraphicsMagick. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b555043..3d2d7e7 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,9 @@ STRIP=strip # Text2Skin if you use Imlib2! (That's why I actually implemented ImageMagick) # TBD: is this still true? -# Define only one of these. +# Define only one of these, leave others commented out. HAVE_IMAGEMAGICK=1 +#HAVE_GRAPHICSMAGICK=1 #HAVE_IMLIB2=1 # not recommended @@ -82,6 +83,12 @@ ifdef HAVE_IMAGEMAGICK LIBS += $(shell pkg-config --libs ImageMagick++) endif +ifdef HAVE_GRAPHICSMAGICK + DEFINES += -DHAVE_IMAGEMAGICK # yep, really HAVE_IMAGEMAGICK + INCLUDES += $(shell pkg-config --cflags GraphicsMagick++) + LIBS += $(shell pkg-config --libs GraphicsMagick++) +endif + ifdef DEBUG CXXFLAGS += -g -fno-inline DEFINES += -DDEBUG -- cgit v1.2.3