Source: jeex Version: 12.0.4-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
jeex fails to cross build from source, because it uses the build architecture pkg-config as it hard codes it into its Makefiles. After making it substitutable, it still fails, because it uses the non-standard variable "cc" for the C compiler in plugins/Makefile. After changing it to "CC", the compiler gets properly substituted and jeex cross builds successfully. Please consider applying the attached patch. Helmut
--- jeex-12.0.4.orig/Makefile +++ jeex-12.0.4/Makefile @@ -20,15 +20,16 @@ html-export.o logging.o search.o \ terminal-actions.o tools.o plugin.o CC = gcc +PKG_CONFIG ?= pkg-config SUBDIRS = po plugin INSTALL = /usr/bin/install -D INSTALL_DIR = /usr/bin/install -d INSTALL_DATA = $(INSTALL) -m 644 DESTDIR = -CFLAGS = `pkg-config --cflags gtk+-2.0` $(C_PARAM) +CFLAGS = `$(PKG_CONFIG) --cflags gtk+-2.0` $(C_PARAM) -LINK = `pkg-config --libs --cflags gtk+-2.0` -lm -lmagic -pipe $(L_PARAM) +LINK = `$(PKG_CONFIG) --libs --cflags gtk+-2.0` -lm -lmagic -pipe $(L_PARAM) ifeq ($(DEBUG), true) CFLAGS += -g -DDEBUG_ENABLE=1 --- jeex-12.0.4.orig/plugin/Makefile +++ jeex-12.0.4/plugin/Makefile @@ -16,15 +16,16 @@ # MA 02110-1301, USA. objects = jeex_hello.o joiner.o -cc = gcc -cflags = `pkg-config --cflags gtk+-2.0` $(C_PARAM) +CC = gcc +PKG_CONFIG ?= pkg-config +cflags = `$(PKG_CONFIG) --cflags gtk+-2.0` $(C_PARAM) ifeq ($(DEBUG), true) cflags += -g -Ddebug_enable=1 endif %.o: %.c - $(cc) -c $< -o $@ $(cflags) + $(CC) -c $< -o $@ $(cflags) plugin: $(objects) @echo "Plugin compiled."