Source: fotocx
Version: 26.8-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
fotocx fails to cross build from source, because its upstream Makefile
hard codes the build architecture pkg-config. It doesn't always do, so
it looks like cross building was fixed a while back and then new
invocations were added. I'm attaching a patch that makes the new ones
substitutable as well. Once applying it, fotocx cross builds again.
Please also forward the patch upstream.
Helmut
--- fotocx-26.8.orig/Makefile
+++ fotocx-26.8/Makefile
@@ -36,10 +36,10 @@
CFLAGS += -DDEBUG
endif
-JXL_CFLAGS := $(shell pkg-config --cflags libjxl)
-JXL_LDFLAGS := $(shell pkg-config --libs libjxl libjxl_threads libhwy \
+JXL_CFLAGS := $(shell $(PKG_CONFIG) --cflags libjxl)
+JXL_LDFLAGS := $(shell $(PKG_CONFIG) --libs libjxl libjxl_threads libhwy \
libbrotlicommon libbrotlidec)
-NETMAP_LDFLAGS := $(shell pkg-config --libs webkit2gtk-4.1)
+NETMAP_LDFLAGS := $(shell $(PKG_CONFIG) --libs webkit2gtk-4.1)
LIBS = `$(PKG_CONFIG) --libs gtk+-3.0` -lrt -lpthread -ltiff -lpng -ljpeg