From 21f67bf59915e2905b30de0f85219bcfbd23e14d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 18 Apr 2020 16:48:30 -0700 Subject: [PATCH] pulseaudio: fix pkgconfig paths Turns out, packages like mpd that use pkgconfig to find pulseaudio end up using host paths. Fixes compilation with at least mpd. Signed-off-by: Rosen Penev --- sound/pulseaudio/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sound/pulseaudio/Makefile b/sound/pulseaudio/Makefile index f6af344ca..1225d53a5 100644 --- a/sound/pulseaudio/Makefile +++ b/sound/pulseaudio/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pulseaudio PKG_VERSION:=13.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases @@ -156,6 +156,18 @@ define Build/InstallDev $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \ $(1)/usr/lib/pkgconfig + $(SED) \ + 's,/usr/include,$$$${prefix}/include,g' \ + $(1)/usr/lib/pkgconfig/libpulse.pc + $(SED) \ + 's,/usr/lib,$$$${exec_prefix}/lib,g' \ + $(1)/usr/lib/pkgconfig/libpulse.pc + $(SED) \ + 's,/usr/include,$$$${prefix}/include,g' \ + $(1)/usr/lib/pkgconfig/libpulse-simple.pc + $(SED) \ + 's,/usr/lib,$$$${exec_prefix}/lib,g' \ + $(1)/usr/lib/pkgconfig/libpulse-simple.pc $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/*.so* \ $(1)/usr/lib/