1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Use PKG_CONFIG
This is required to successfully cross-compile
Author: Helmut Grohne <helmut@subdivi.de>
--- vdr-plugin-vnsiserver-1.8.0.orig/Makefile
+++ vdr-plugin-vnsiserver-1.8.0/Makefile
@@ -16,7 +16,8 @@
### 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))
+PKG_CONFIG ?= pkg-config
+PKGCFG = $(if $(VDRDIR),$(shell $(PKG_CONFIG) --variable=$(1) $(VDRDIR)/vdr.pc),$(shell $(PKG_CONFIG) --variable=$(1) vdr || $(PKG_CONFIG) --variable=$(1) ../../../vdr.pc))
LIBDIR ?= $(call PKGCFG,libdir)
LOCDIR = $(call PKGCFG,locdir)
PLGCFG = $(call PKGCFG,plgcfg)
|