summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2014-01-05 16:55:44 +0200
committerVille Skyttä <ville.skytta@iki.fi>2014-01-05 16:55:44 +0200
commitb2ae94dab7dced5e0f868453faa92f8b0f76faf6 (patch)
treebaf252544868e961e197324af0ee73fe619532e0
parenta16fd1d9d9cca8fbd56e63f485411b5d2942b8e7 (diff)
downloadvdr-plugin-ttxtsubs-b2ae94dab7dced5e0f868453faa92f8b0f76faf6.tar.gz
vdr-plugin-ttxtsubs-b2ae94dab7dced5e0f868453faa92f8b0f76faf6.tar.bz2
Avoid pkg-config warnings.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8997eb5..bb6e4c3 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,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)