Source: vdr-plugin-dvbhddevice Version: 2.2.0-10 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
vdr-plugin-dvbhddevice fails to cross build from source, because it uses the build architecture pkg-config and thus fails finding vdr.pc. The attached patch makes pkg-config substitutable and vdr-plugin-dvbhddevice cross buildable. Please consider applying it. Helmut
--- vdr-plugin-dvbhddevice-2.2.0.orig/Makefile +++ vdr-plugin-dvbhddevice-2.2.0/Makefile @@ -15,7 +15,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_PATH="$$PKG_CONFIG_PATH:../../.." pkg-config --variable=$(1) vdr)) +PKG_CONFIG ?= pkg-config +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)