Bug#1031777: gkrellmitime FTCBFS: uses the build architecture pkg-config
Source: gkrellmitime
Version: 1.0.1-7
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
gkrellmitime fails to cross build from source, because the upstream
Makefile hard codes the build architecture pkg-config. I'm attaching a
patch for your convenience.
Helmut
--- gkrellmitime-1.0.1.orig/Makefile
+++ gkrellmitime-1.0.1/Makefile
@@ -6,7 +6,8 @@
INCLUDEDIR ?= $(PREFIX)/include
# Support for Debian policy
-CFLAGS += -I$(INCLUDEDIR) `pkg-config gtk+-2.0 --cflags`
+PKG_CONFIG ?= pkg-config
+CFLAGS += -I$(INCLUDEDIR) `$(PKG_CONFIG) gtk+-2.0 --cflags`
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
@@ -17,7 +18,7 @@
$(TARGET).so: $(TARGET).o
- $(CC) $(LDFLAGS) -shared `pkg-config gtk+-2.0 --libs` $< -o $@
+ $(CC) $(LDFLAGS) -shared `$(PKG_CONFIG) gtk+-2.0 --libs` $< -o $@
$(TARGET).o: $(TARGET).c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
Reply to: