summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2013-12-22 10:39:46 +0100
committerlouis <louis.braun@gmx.de>2013-12-22 10:39:46 +0100
commit3952cad3d41c236640ef159825be81eba6c3116d (patch)
tree38f60249986227330ca845f3d684b75f86ef1732 /Makefile
parent5bf7c3a84e683a8226256a41292566789fd29521 (diff)
downloadvdr-plugin-tvguide-3952cad3d41c236640ef159825be81eba6c3116d.tar.gz
vdr-plugin-tvguide-3952cad3d41c236640ef159825be81eba6c3116d.tar.bz2
implemented GraphicsMagick compatibility
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 176ad7d..01d28ac 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@
#
# $Id$
+# External image lib to use: imagemagick, graphicsmagick
+IMAGELIB = imagemagick
+
# The official name of this plugin.
# This name will be used in the '-P...' option of VDR to load the plugin.
# By default the main source file also carries this name.
@@ -44,13 +47,15 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here):
-INCLUDES += $(shell pkg-config --cflags-only-I Magick++)
-
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
-DEFINES += -DMAGICKCORE_HDRI_ENABLE=0
-DEFINES += -DMAGICKCORE_QUANTUM_DEPTH=16
-LIBS += $(shell pkg-config --libs Magick++)
+ifeq ($(IMAGELIB), imagemagick)
+ INCLUDES += $(shell pkg-config --cflags Magick++)
+ LIBS += $(shell pkg-config --libs Magick++)
+else ifeq ($(IMAGELIB), graphicsmagick)
+ INCLUDES += $(shell pkg-config --cflags GraphicsMagick++)
+ LIBS += $(shell pkg-config --libs GraphicsMagick++)
+endif
### The object files (add further files here):