taglib: fix taglib-config paths 12270/head
authorRosen Penev <rosenp@gmail.com>
Sat, 23 May 2020 07:11:16 +0000 (00:11 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 23 May 2020 23:45:30 +0000 (16:45 -0700)
It seems gerbera uses this instead of pkgconfig.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/taglib/Makefile

index 69213f4b06e67583e7d701e9499f8f182c85060d..06d8a1e53fef1a1740dece6e72321ce9ea6ddf78 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=taglib
 PKG_VERSION:=1.11.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/taglib/taglib/releases/download/v$(PKG_VERSION)
@@ -49,6 +49,9 @@ TARGET_CXXFLAGS += -flto
 
 define Build/InstallDev
        $(call Build/InstallDev/cmake,$(1))
+       $(SED) '/^prefix=\|^exec_prefix=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/bin/taglib-config
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/bin/taglib-config
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/taglib.pc
        $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/taglib.pc
 endef