File: cross.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 (30 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/Makefile
+++ b/Makefile
@@ -133,19 +133,21 @@ endif
 
 OBJS = $(PLUGIN).o enigma.o config.o logo.o tools.o status.o texteffects.o setup.o font.o
 
+PKG_CONFIG ?= pkg-config
+
 ifdef HAVE_IMAGEMAGICK
    OBJS += bitmap.o
 ifneq ($(HAVE_IMAGEMAGICK), GRAPHICS)
-   LIBS += $(shell pkg-config --libs Magick++)
-   INCLUDES += $(shell pkg-config --cflags Magick++)
+   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++)
+   LIBS += $(shell $(PKG_CONFIG) --libs GraphicsMagick++)
+   INCLUDES += $(shell $(PKG_CONFIG) --cflags GraphicsMagick++)
 endif
 endif
 
-INCLUDES += $(shell pkg-config freetype2 --cflags)
-LIBS += $(shell pkg-config freetype2 --libs)
+INCLUDES += $(shell $(PKG_CONFIG) freetype2 --cflags)
+LIBS += $(shell $(PKG_CONFIG) freetype2 --libs)
 
 ### The main target: