File: fix-imagemagick-path.patch

package info (click to toggle)
vdr-plugin-skinenigmang 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 804 kB
  • sloc: ansic: 6,156; makefile: 120; cpp: 91; sh: 13
file content (15 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix compilation error for imagemagick by using pkg-config

--- a/Makefile
+++ b/Makefile
@@ -136,8 +136,8 @@ OBJS = $(PLUGIN).o enigma.o config.o log
 ifdef HAVE_IMAGEMAGICK
    OBJS += bitmap.o
 ifneq ($(HAVE_IMAGEMAGICK), GRAPHICS)
-   LIBS += -lMagick++
-   INCLUDES += -I/usr/include/ImageMagick -I/usr/local/include/ImageMagick
+   LIBS += $(shell pkg-config --libs Magick++)
+   INCLUDES += $(shell pkg-config --cflags Magick++)
 else
    LIBS += $(shell pkg-config --libs GraphicsMagick++)
    INCLUDES += $(shell pkg-config --cflags GraphicsMagick++)