Source: libretro-beetle-psx
Version: 0.9.38.6+git20260227-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

libretro-beetle-psx regressed cross building. It now hard codes the
build architecture pkg-config and therefore fails locating required
libraries. I'm attaching a patch to make it substitutable in a way that
dh_auto_build substitutes. Please consider applying it and forwarding it
upstream.

Helmut
--- libretro-beetle-psx-0.9.38.6+git20260515+ds.orig/Makefile
+++ libretro-beetle-psx-0.9.38.6+git20260515+ds/Makefile
@@ -85,6 +85,8 @@
    endif
 endif
 
+PKG_CONFIG ?= pkg-config
+
 # Unix
 ifneq (,$(findstring unix,$(platform)))
    TARGET := $(TARGET_NAME)_libretro.so
--- libretro-beetle-psx-0.9.38.6+git20260515+ds.orig/Makefile.common
+++ libretro-beetle-psx-0.9.38.6+git20260515+ds/Makefile.common
@@ -73,8 +73,8 @@
 endif
 
 ifeq ($(SYSTEM_ZLIB), 1)
-   CFLAGS += $(shell pkg-config --cflags zlib)
-   LIBS += $(shell pkg-config --libs zlib)
+   CFLAGS += $(shell $(PKG_CONFIG) --cflags zlib)
+   LIBS += $(shell $(PKG_CONFIG) --libs zlib)
 else
    INCFLAGS += $(ZLIB_INCFLAGS)
    SOURCES_C += $(ZLIB_SOURCES_C)
@@ -123,8 +123,8 @@
    FLAGS += -DHAVE_CHD
 
    ifeq ($(SYSTEM_LIBCHDR), 1)
-      INCFLAGS += $(shell pkg-config --cflags libchdr)
-      LIBS += $(shell pkg-config --libs libchdr)
+      INCFLAGS += $(shell $(PKG_CONFIG) --cflags libchdr)
+      LIBS += $(shell $(PKG_CONFIG) --libs libchdr)
    else
       FLAGS += -DCHDR_SYSTEM_ZLIB
       INCFLAGS += $(LIBCHDR_INCFLAGS)

Reply via email to