pulseaudio: fix pkgconfig paths
authorRosen Penev <redacted>
Sat, 18 Apr 2020 23:48:30 +0000 (16:48 -0700)
committerRosen Penev <redacted>
Sun, 19 Apr 2020 01:04:31 +0000 (18:04 -0700)
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 <redacted>
sound/pulseaudio/Makefile

index f6af344ca3d1554449e15da5866e0e839b48a091..1225d53a5a0418229e81dfedff49997cd1b2e77a 100644 (file)
@@ -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/
git clone https://git.99rst.org/PROJECT