]> git.vomp.tv Git - vompserver.git/commitdiff
Update Makefile as suggested in VDR 2.1.3 changes
authorChris Tallon <chris@vomp.tv>
Thu, 23 Jun 2016 17:18:54 +0000 (18:18 +0100)
committerChris Tallon <chris@vomp.tv>
Thu, 23 Jun 2016 17:18:54 +0000 (18:18 +0100)
Makefile

index 528655a77c005468ad6032508fcb49085cf954cd..3bca88fa1a8e73074309f7bd80cd37c265a26c56 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri
 ### The directory environment:
 
 # Use package data if installed...otherwise assume we're under the VDR source directory:
-PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
+PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell PKG_CONFIG_PATH="$$PKG_CONFIG_PATH:../../.." pkg-config --variable=$(1) vdr))
 LIBDIR = $(call PKGCFG,libdir)
 LOCDIR = $(call PKGCFG,locdir)
 PLGCFG = $(call PKGCFG,plgcfg)