Bug#933233: aewm FTCBFS: uses the build architecture pkg-config
Source: aewm
Version: 1.3.12-5
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
aewm fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. The attached patch makes
pkg-config substitutable. Please consider applying it.
Helmut
--- aewm-1.3.12.orig/Makefile
+++ aewm-1.3.12/Makefile
@@ -1,6 +1,8 @@
# aewm - Copyright 1998-2007 Decklin Foster <decklin@red-bean.com>.
# This program is free software; see LICENSE for details.
+PKG_CONFIG ?= pkg-config
+
# Set this to the location where you want to install
DESTDIR =
XROOT = /usr
@@ -10,8 +12,8 @@
OPT_WMLIB += -lXext
# Uncomment to add Xft support
-OPT_WMFLAGS += -DXFT `pkg-config --cflags xft`
-OPT_WMLIB += `pkg-config --libs xft` -lXext
+OPT_WMFLAGS += -DXFT `$(PKG_CONFIG) --cflags xft`
+OPT_WMLIB += `$(PKG_CONFIG) --libs xft` -lXext
# Uncomment for debugging (abandon all hope, ye who enter here)
#OPT_WMFLAGS += -DDEBUG
@@ -46,7 +48,7 @@
X11FLAGS = -I$(XROOT)/include
WMFLAGS = $(X11FLAGS) $(OPT_WMFLAGS)
-GTKFLAGS = `pkg-config --cflags gtk+-2.0`
+GTKFLAGS = `$(PKG_CONFIG) --cflags gtk+-2.0`
$(PLAINOBJ): %.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
@@ -62,7 +64,7 @@
X11LIB = -L$(XROOT)/lib -lX11
WMLIB = $(X11LIB) $(OPT_WMLIB)
-GTKLIB = `pkg-config --libs gtk+-2.0` -lX11
+GTKLIB = `$(PKG_CONFIG) --libs gtk+-2.0` -lX11
$(PLAINBIN): %: %.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ -o $@
Reply to: