diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-14 00:28:51 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-14 00:28:51 +0300 |
commit | e671882a3b64a83dce98d84cdd58e2f48ed83fc0 (patch) | |
tree | 0af339926947df92fdd758c4a97eb7f8050d9196 /Makefile | |
parent | 2a448802b7a8683cbfed601f2d6f7e4aaafca845 (diff) | |
download | vdr-plugin-text2skin-e671882a3b64a83dce98d84cdd58e2f48ed83fc0.tar.gz vdr-plugin-text2skin-e671882a3b64a83dce98d84cdd58e2f48ed83fc0.tar.bz2 |
Ensure only one image library is used.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -6,10 +6,8 @@ STRIP=strip # Text2Skin if you use Imlib2! (That's why I actually implemented ImageMagick) # TBD: is this still true? -# Define only one of these, leave others commented out. -HAVE_IMAGEMAGICK=1 -#HAVE_GRAPHICSMAGICK=1 -#HAVE_IMLIB2=1 # not recommended +# External image lib to use: imagemagick, graphicsmagick, imlib2 or none +IMAGELIB = imagemagick # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING @@ -70,23 +68,19 @@ ifdef DEVELOPMENT_FEATURES DEFINES += -DDEVELOPMENT_FEATURES endif -ifdef HAVE_IMLIB2 - DEFINES += -DHAVE_IMLIB2 - INCLUDES += $(shell pkg-config --cflags imlib2) - LIBS += $(shell pkg-config --libs imlib2) - OBJS += quantize.o -endif - -ifdef HAVE_IMAGEMAGICK +ifeq ($(IMAGELIB), imagemagick) DEFINES += -DHAVE_IMAGEMAGICK INCLUDES += $(shell pkg-config --cflags ImageMagick++) LIBS += $(shell pkg-config --libs ImageMagick++) -endif - -ifdef HAVE_GRAPHICSMAGICK - DEFINES += -DHAVE_IMAGEMAGICK # yep, really HAVE_IMAGEMAGICK +else ifeq ($(IMAGELIB), graphicsmagick) + DEFINES += -DHAVE_IMAGEMAGICK # yep, really HAVE_IMAGEMAGICK here INCLUDES += $(shell pkg-config --cflags GraphicsMagick++) LIBS += $(shell pkg-config --libs GraphicsMagick++) +else ifeq ($(IMAGELIB), imlib2) + DEFINES += -DHAVE_IMLIB2 + INCLUDES += $(shell pkg-config --cflags imlib2) + LIBS += $(shell pkg-config --libs imlib2) + OBJS += quantize.o endif ifdef DEBUG |