Source: gdigi
Version: 0.4.0-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

gdigi fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. Making it substitutable is
sufficient to making gdigi cross buildable. Please consider applying the
attached patch.

Helmut
--- gdigi-0.4.0.orig/Makefile
+++ gdigi-0.4.0/Makefile
@@ -1,9 +1,10 @@
 CC = gcc
+PKG_CONFIG ?= pkg-config
 EXTRA_CFLAGS ?=
 EXTRA_LDFLAGS ?=
-CFLAGS := $(shell pkg-config --cflags glib-2.0 gio-2.0 gtk+-3.0 libxml-2.0) -Wall -g -ansi -std=c99 $(EXTRA_CFLAGS)
+CFLAGS := $(shell $(PKG_CONFIG) --cflags glib-2.0 gio-2.0 gtk+-3.0 libxml-2.0) -Wall -g -ansi -std=c99 $(EXTRA_CFLAGS)
 LDFLAGS = $(EXTRA_LDFLAGS) -Wl,--as-needed
-LDADD := $(shell pkg-config --libs glib-2.0 gio-2.0 gtk+-3.0 gthread-2.0 alsa libxml-2.0) -lexpat -lm
+LDADD := $(shell $(PKG_CONFIG) --libs glib-2.0 gio-2.0 gtk+-3.0 gthread-2.0 alsa libxml-2.0) -lexpat -lm
 OBJECTS = gdigi.o gui.o effects.o preset.o gtkknob.o preset_xml.o
 DEPFILES = $(foreach m,$(OBJECTS:.o=),.$(m).m)
 

Reply via email to