summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2013-11-12 17:03:11 +0100
committerlouis <louis.braun@gmx.de>2013-11-12 17:03:11 +0100
commit735f22370b0d48c8c121a31c115e9d72af895eca (patch)
treef947bcec75ebf52ce78ec59071944a2a2ed55f0f /Makefile
parent09a6323046f959a748a6a15fc2aa1e1af1ffba7c (diff)
downloadskin-nopacity-735f22370b0d48c8c121a31c115e9d72af895eca.tar.gz
skin-nopacity-735f22370b0d48c8c121a31c115e9d72af895eca.tar.bz2
implemented GraphicsMagick compatibility
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 06e82f9..d6b3afa 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.
@@ -48,11 +51,15 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines and Dependencies (add further entries here):
-INCLUDES += $(shell pkg-config --cflags Magick++)
-
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
-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):