aboutsummaryrefslogtreecommitdiff
path: root/libs/avahi/Makefile
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-09-28 16:42:15 -0700
committerRosen Penev <rosenp@gmail.com>2019-09-28 17:16:17 -0700
commit736ebb16b68d3708a0071268736e02c6bcfd5a05 (patch)
tree766301e02dcc075bfbe4bd27d536ba8be873a262 /libs/avahi/Makefile
parent108684610742ae0063c1c99884faebad83d3ee03 (diff)
avahi: Fix pkgconfig files to be cross compile friendly
libdir should not point to the host. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/avahi/Makefile')
-rw-r--r--libs/avahi/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile
index df9b0f569..922b8b6f4 100644
--- a/libs/avahi/Makefile
+++ b/libs/avahi/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=avahi
PKG_VERSION:=0.7
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \
@@ -327,7 +327,14 @@ ifeq ($(BUILD_VARIANT),dbus)
endif
endif
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
+ $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/avahi-core.pc
+ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
+ifeq ($(BUILD_VARIANT),dbus)
+ $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/avahi-client.pc
+ $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/avahi-compat-libdns_sd.pc
+endif
+endif
endef
define Package/libavahi/install