Source: mpdas Version: 0.4.5-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
mpdas fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. Please consider applying the attached patch to make mpdas cross buildable. Helmut
--- mpdas-0.4.5.orig/Makefile +++ mpdas-0.4.5/Makefile @@ -1,14 +1,15 @@ VERSION = 0.4.5 CXX ?= g++ +PKG_CONFIG ?= pkg-config OBJ = main.o md5.o utils.o mpd.o audioscrobbler.o cache.o config.o ini.o OUT = mpdas PREFIX ?= /usr/local MANPREFIX ?= ${PREFIX}/man/man1 CONFIG ?= $(PREFIX)/etc -CXXFLAGS += `pkg-config --cflags libmpdclient libcurl` -LIBS = `pkg-config --libs libmpdclient libcurl` +CXXFLAGS += `$(PKG_CONFIG) --cflags libmpdclient libcurl` +LIBS = `$(PKG_CONFIG) --libs libmpdclient libcurl` CXXFLAGS += -DCONFDIR="\"$(CONFIG)\"" -DVERSION="\"$(VERSION)\""