Source: wmauda Version: 0.9-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
wmauda fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. After making it substitutable, wmauda cross builds successfully as dh_auto_build provides the correct substitution. Please consider applying the attached patch. Helmut
--- wmauda-0.9.orig/Makefile +++ wmauda-0.9/Makefile @@ -1,5 +1,6 @@ CC ?= gcc CFLAGS ?= -g -pipe +PKG_CONFIG ?= pkg-config PREFIX ?= /usr/local @@ -7,11 +8,11 @@ PIXMAP_DIR := $(PREFIX)/share/pixmaps MANPAGE_DIR := $(PREFIX)/share/man/man1 -CFLAGS += $(shell pkg-config dbus-glib-1 --cflags) -DPIXMAP_DIR="\"$(PIXMAP_DIR)\"" -LIBS := $(shell pkg-config audclient --libs) $(shell pkg-config dbus-glib-1 --libs) +CFLAGS += $(shell $(PKG_CONFIG) dbus-glib-1 --cflags) -DPIXMAP_DIR="\"$(PIXMAP_DIR)\"" +LIBS := $(shell $(PKG_CONFIG) audclient --libs) $(shell $(PKG_CONFIG) dbus-glib-1 --libs) -CFLAGS += $(shell pkg-config gtk+-2.0 --cflags) -LIBS += $(shell pkg-config gtk+-2.0 --libs) -lX11 +CFLAGS += $(shell $(PKG_CONFIG) gtk+-2.0 --cflags) +LIBS += $(shell $(PKG_CONFIG) gtk+-2.0 --libs) -lX11 OBJS = wmauda.o HEADERS = dock-master.xpm