From 215acbe892b2f001bb10e13a0a6cf95ad85ca7f3 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 26 Feb 2011 14:51:16 +0000 Subject: [PATCH] libxslt: add InstallDev for libexslt The libxslt package does not InstallDev the exslt dev files when libexslt package is selected. Signed-off-by: Andrew Peebles SVN-Revision: 25729 --- libs/libxslt/Makefile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/libs/libxslt/Makefile b/libs/libxslt/Makefile index 13c085230..e032941cc 100644 --- a/libs/libxslt/Makefile +++ b/libs/libxslt/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -68,8 +68,9 @@ CONFIGURE_ARGS+= \ TARGET_CFLAGS += $(FPIC) -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \ +define Build/InstallDev/Xslt + $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \ + $(1)/usr/include/libexslt $(1)/usr/lib \ $(1)/usr/lib/pkgconfig $(2)/share/aclocal $(INSTALL_BIN) \ @@ -99,6 +100,26 @@ define Build/InstallDev $(2)/share/aclocal endef +define Build/InstallDev/Exslt + $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/include/libexslt/* \ + $(1)/usr/include/libexslt/ + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \ + $(1)/usr/lib/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \ + $(1)/usr/lib/pkgconfig/ +endef + +define Build/InstallDev + $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1))) + $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1))) +endef + define Package/libxslt/install $(INSTALL_DIR) $(1)/usr/lib $(CP) \ -- 2.30.2