diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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): |