[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#949819: jkmeter FTCBFS: uses the build architecture pkg-config



Source: jkmeter
Version: 0.6.5-2
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

jkmeter fails to cross build from source, because the upstream
source/Makefile hard codes the build architecture pkg-config. Please
consider applying the attached patch to make it substitutable.

Helmut
--- jkmeter-0.6.5.orig/source/Makefile
+++ jkmeter-0.6.5/source/Makefile
@@ -21,6 +21,7 @@
 PREFIX ?= /usr
 BINDIR ?= $(PREFIX)/bin
 SHARED ?= $(PREFIX)/share/jkmeter
+PKG_CONFIG ?= pkg-config
 
 
 VERSION = 0.6.5
@@ -34,7 +35,7 @@
 JKMETER_O = jkmeter.o styles.o mainwin.o jclient.o png2img.o kmeter.o cmeter.o \
             kmeterdsp.o stcorrdsp.o
 
-jkmeter:	CPPFLAGS += $(shell pkg-config --cflags freetype2)
+jkmeter:	CPPFLAGS += $(shell $(PKG_CONFIG) --cflags freetype2)
 jkmeter:	LDLIBS += -lclxclient -lclthreads -ljack -lpthread -lpng -lXft -lX11 -lrt
 jkmeter:	LDFLAGS += -pthread
 jkmeter:	$(JKMETER_O)

Reply to: