Source: gmotionlive
Version: 1.0-3
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

gmotionlive fails to cross build from source, because the upstream
Makefile hard codes the build architecture pkg-config. After making it
substitutable, gmotionlive cross builds successfully. Please consider
applying the attached patch.

Helmut
--- gmotionlive-1.0.orig/Makefile
+++ gmotionlive-1.0/Makefile
@@ -1,11 +1,12 @@
 CC = gcc
 CFLAGS = -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
 CFLAGS += -Wall
+PKG_CONFIG ?= pkg-config
 
 all:	gmotionlive
 
 gmotionlive: gmotionlive.c
-	$(CC) gmotionlive.c -o gmotionlive $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`
+	$(CC) gmotionlive.c -o gmotionlive $(CFLAGS) `$(PKG_CONFIG) gtk+-2.0 --cflags --libs`
 
 clean:
 	rm -f *.o gmotionlive

Reply via email to