Source: zita-at1 Version: 0.6.0-1.1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
zita-at1 fails to cross build from source because its Makefile hard codes build architecture build tools such as pkg-config or g++. The attached patch fixes that. Please consider applying it. Helmut
--- zita-at1-0.6.0.orig/source/Makefile +++ zita-at1-0.6.0/source/Makefile @@ -17,7 +17,7 @@ # # ---------------------------------------------------------------------------- - +PKG_CONFIG ?= pkg-config PREFIX = /usr #SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') LIBDIR = lib$(SUFFIX) @@ -34,11 +34,11 @@ ZITA-AT1_O = zita-at1.o styles.o jclient.o mainwin.o png2img.o guiclass.o \ button.o rotary.o tmeter.o retuner.o -zita-at1: CPPFLAGS += -I/usr/X11R6/include `pkg-config --cflags xft` +zita-at1: CPPFLAGS += -I/usr/X11R6/include `$(PKG_CONFIG) --cflags xft` zita-at1: LDLIBS += -lcairo -lclxclient -lclthreads -lzita-resampler -lfftw3f -ljack -lpthread -lpng -lXft -lX11 -lrt zita-at1: LDFLAGS += -L/usr/X11R6/lib zita-at1: $(ZITA-AT1_O) - g++ $(LDFLAGS) -o $@ $(ZITA-AT1_O) $(LDLIBS) + $(CXX) $(LDFLAGS) -o $@ $(ZITA-AT1_O) $(LDLIBS) $(ZITA-AT1_O): -include $(ZITA-AT1_O:%.o=%.d)