Source: bidiv
Version: 1.5-6
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

bidiv fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. The attached patch makes
pkg-config substitutable and that is sufficient to make bidiv cross
buildable as dh_auto_build substitutes pkg-config. Please consider
applying it.

Helmut
--- bidiv-1.5.orig/Makefile
+++ bidiv-1.5/Makefile
@@ -2,10 +2,11 @@
 BIN_DIR=$(PREFIX)/bin
 MAN_PATH=$(PREFIX)/share/man
 CC_OPT_FLAGS=-O2 -Wall
+PKG_CONFIG ?= pkg-config
 
 
-PKG_CFLAGS= $(CC_OPT_FLAGS) $(DEFS) `pkg-config --cflags fribidi`
-PKG_LDFLAGS=`pkg-config --libs fribidi`
+PKG_CFLAGS= $(CC_OPT_FLAGS) $(DEFS) `$(PKG_CONFIG) --cflags fribidi`
+PKG_LDFLAGS=`$(PKG_CONFIG) --libs fribidi`
 
 all: bidiv
 

Reply via email to