Source: ttyplot Version: 1.6.1-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
ttyplot fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. I'm attaching a patch to make it substitutable for your convenience. Helmut
--- ttyplot-1.6.1.orig/Makefile +++ ttyplot-1.6.1/Makefile @@ -1,9 +1,10 @@ DESTDIR ?= PREFIX ?= /usr/local MANPREFIX ?= $(PREFIX)/man +PKG_CONFIG ?= pkg-config CFLAGS += -Wall -Wextra -CFLAGS += `pkg-config --cflags ncursesw` -LDLIBS += `pkg-config --libs ncursesw` -lm +CFLAGS += `$(PKG_CONFIG) --cflags ncursesw` +LDLIBS += `$(PKG_CONFIG) --libs ncursesw` -lm all: ttyplot stresstest @@ -21,7 +22,7 @@ rm -f ttyplot stresstest .c: - @pkg-config --version > /dev/null + @$(PKG_CONFIG) --version > /dev/null $(CC) $(CFLAGS) $(LDFLAGS) $< $(LDLIBS) -o $@ .PHONY: all clean install uninstall