Source: easychem
Version: 0.6-8.1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

easychem fails to cross build from source, because Makefile.linux hard
codes the build architecture pkg-config and thus fails finding gtk.
After making pkg-config substitutable, easychem cross builds
successfully (as dh_auto_build is properly being used). Please consider
applying the attached patch.

Helmut
--- easychem-0.6.orig/Makefile.linux
+++ easychem-0.6/Makefile.linux
@@ -15,8 +15,9 @@
 C_FLAGS += -W -Wpointer-arith -pedantic -std=c99 -DUNIX -DI18N -DPREFIX=\"$(PREFIX)\"
 
 # GTK flags and librairies
-GTK_FLAGS=`pkg-config --cflags gtk+-2.0`
-GTK_LIBS=`pkg-config --libs gtk+-2.0`
+PKG_CONFIG ?= pkg-config
+GTK_FLAGS=`$(PKG_CONFIG) --cflags gtk+-2.0`
+GTK_LIBS=`$(PKG_CONFIG) --libs gtk+-2.0`
 
 
 

Reply via email to