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

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

Helmut
--- libirman-0.5.2.orig/Makefile.am
+++ libirman-0.5.2/Makefile.am
@@ -16,9 +16,9 @@
 uninstall-hook:
 	rm -f $(DESTDIR)$(plugindir)/irman.so
 
-plugindir       = $(shell pkg-config --variable=plugindir lirc-driver)
-configdir       = $(shell pkg-config --variable=configdir lirc-driver)
-plugindocsdir   = $(shell pkg-config --variable=plugindocs lirc-driver)
+plugindir       = $(shell $(PKG_CONFIG) --variable=plugindir lirc-driver)
+configdir       = $(shell $(PKG_CONFIG) --variable=configdir lirc-driver)
+plugindocsdir   = $(shell $(PKG_CONFIG) --variable=plugindocs lirc-driver)
 
 plugin_LTLIBRARIES      = irman.la
 irman_la_SOURCES        = lirc-plugin/irman.c

Reply via email to