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

pegsolitaire fails to cross build from source, because the upstream
Makefile hard codes the build architecture pkg-config. It becomes cross
buildable after making pkg-config substitutable. Please consider
applying the attached patch.

Helmut
--- pegsolitaire-0.3.orig/Makefile
+++ pegsolitaire-0.3/Makefile
@@ -10,6 +10,7 @@
 INSTALL ?= install
 INSTALL_PROGRAM ?= $(INSTALL)
 INSTALL_DATA ?= $(INSTALL) -m644
+PKG_CONFIG ?= pkg-config
 prefix ?= /usr/local
 bindir ?= $(prefix)/bin
 mandir ?= $(prefix)/share/man
@@ -26,8 +27,8 @@
 	-DLOCALEDIR='"$(localedir)"' -DENABLE_NLS
 pkg_CFLAGS = -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes \
 	-Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings \
-	-fvisibility=hidden $(shell pkg-config --cflags $(deps))
-pkg_LDLIBS = -Wl,--as-needed $(shell pkg-config --libs $(deps))
+	-fvisibility=hidden $(shell $(PKG_CONFIG) --cflags $(deps))
+pkg_LDLIBS = -Wl,--as-needed $(shell $(PKG_CONFIG) --libs $(deps))
 
 # Non-essential default flags
 CFLAGS ?= -O2 -g

Reply via email to