Source: cwm
Version: 6.6-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
cwm fails to cross build from source, because the upstream Makefile hard
codes the build architecture pkg-config. After making it substitutable,
cwm cross builds successfully. Please consider applying the attached
patch.
Helmut
--- cwm-6.6.orig/Makefile
+++ cwm-6.6/Makefile
@@ -14,11 +14,13 @@
kbfunc.o strlcpy.o strlcat.o y.tab.o \
strtonum.o reallocarray.o
-CPPFLAGS+= `pkg-config --cflags x11 xft xrandr`
+PKG_CONFIG?= pkg-config
+
+CPPFLAGS+= `$(PKG_CONFIG) --cflags x11 xft xrandr`
CFLAGS+= -Wall -O2 -g -D_GNU_SOURCE
-LDFLAGS+= `pkg-config --libs x11 xft xrandr`
+LDFLAGS+= `$(PKG_CONFIG) --libs x11 xft xrandr`
MANPREFIX?= ${PREFIX}/share/man