1 From: Helmut Grohne <helmut@subdivi.de>
2 Date: Tue, 21 Nov 2017 21:20:20 +0100
3 Subject: fix using target-architecture pkg-config
5 Index: osspd-1.3.2/Makefile
6 ===================================================================
7 --- osspd-1.3.2.orig/Makefile
8 +++ osspd-1.3.2/Makefile
10 # DESTDIR is completely respected
13 +PKG_CONFIG ?= pkg-config
14 CFLAGS := -Wall -pthread $(CFLAGS) $(CPPFLAGS)
15 XLDFLAGS := $(LDFLAGS)
16 LDFLAGS := -L. -lossp -pthread $(LDFLAGS)
18 SLAVESDIR := $(prefix)/sbin
20 ifeq "$(origin OSSPD_CFLAGS)" "undefined"
21 -OSSPD_CFLAGS := $(shell pkg-config --cflags fuse)
22 +OSSPD_CFLAGS := $(shell $(PKG_CONFIG) --cflags fuse)
25 ifeq "$(origin OSSPD_LDFLAGS)" "undefined"
26 -OSSPD_LDFLAGS := $(shell pkg-config --libs fuse)
27 +OSSPD_LDFLAGS := $(shell $(PKG_CONFIG) --libs fuse)
30 ifeq "$(origin OSSP_PADSP_CFLAGS)" "undefined"
31 -OSSP_PADSP_CFLAGS := $(shell pkg-config --cflags libpulse)
32 +OSSP_PADSP_CFLAGS := $(shell $(PKG_CONFIG) --cflags libpulse)
35 ifeq "$(origin OSSP_PADSP_LDFLAGS)" "undefined"
36 -OSSP_PADSP_LDFLAGS := $(shell pkg-config --libs libpulse)
37 +OSSP_PADSP_LDFLAGS := $(shell $(PKG_CONFIG) --libs libpulse)
40 ifeq "$(origin OSSP_ALSAP_CFLAGS)" "undefined"
41 -OSSP_ALSAP_CFLAGS := $(shell pkg-config --libs alsa)
42 +OSSP_ALSAP_CFLAGS := $(shell $(PKG_CONFIG) --libs alsa)
45 ifeq "$(origin OSSP_ALSAP_LDFLAGS)" "undefined"
46 -OSSP_ALSAP_LDFLAGS := $(shell pkg-config --libs alsa)
47 +OSSP_ALSAP_LDFLAGS := $(shell $(PKG_CONFIG) --libs alsa)
50 headers := ossp.h ossp-util.h ossp-slave.h