Bug#950826: aeolus FTCBFS: upstream Makefile hard codes the build architecture pkg-config
Source: aeolus
Version: 0.9.7-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
aeolus fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config and thus fails finding
freetype2.pc. Please consider applying the attached patch to make
pkg-config substitutable.
Helmut
--- aeolus-0.9.7.orig/source/Makefile
+++ aeolus-0.9.7/source/Makefile
@@ -24,6 +24,7 @@
VERSION = 0.9.7
CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -DLIBDIR=\"$(LIBDIR)\"
CXXFLAGS += -O2 -Wall
+PKG_CONFIG ?= pkg-config
all: aeolus aeolus_x11.so aeolus_txt.so
@@ -43,7 +44,7 @@
XIFACE_O = styles.o mainwin.o midiwin.o audiowin.o instrwin.o editwin.o \
midimatrix.o multislider.o functionwin.o xiface.o addsynth.o
aeolus_x11.so: CPPFLAGS += -D_REENTRANT
-aeolus_x11.so: CPPFLAGS += $(shell pkg-config --cflags freetype2)
+aeolus_x11.so: CPPFLAGS += $(shell $(PKG_CONFIG) --cflags freetype2)
aeolus_x11.so: CXXFLAGS += -shared -fPIC
aeolus_x11.so: LDFLAGS += -shared
aeolus_x11.so: LDLIBS += -lclthreads -lclxclient -lpthread -lXft -lX11
Reply to: