Source: ukopp Version: 4.9-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
ukopp fails to cross build from source, because its Makefile hard codes the build architecture pkg-config. Making it substitutable, makes ukopp cross buildable. Please consider applying the attached patch. Helmut
--- ukopp-4.9.orig/Makefile +++ ukopp-4.9/Makefile @@ -8,6 +8,7 @@ CXXFLAGS ?= -O2 -Wall -ggdb LDFLAGS ?= -rdynamic -lpthread PREFIX ?= /usr +PKG_CONFIG ?= pkg-config # target install directories BINDIR = $(PREFIX)/bin @@ -18,8 +19,8 @@ MANDIR = $(PREFIX)/share/man/man1 MENUFILE = $(PREFIX)/share/applications/$(PROGRAM).desktop -CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-3.0` -LIBS = `pkg-config --libs gtk+-3.0` -lpthread +CFLAGS = $(CXXFLAGS) -c `$(PKG_CONFIG) --cflags gtk+-3.0` +LIBS = `$(PKG_CONFIG) --libs gtk+-3.0` -lpthread $(PROGRAM): $(PROGRAM).o zfuncs.o $(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM)