ipset: Add InstallDev to provide libipset as library

lede-17.01
Julian Kornberger 2016-11-26 11:15:34 +01:00 committed by John Crispin
parent d76ee5bfac
commit 04a76da1ae
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2009-2012 OpenWrt.org # Copyright (C) 2009-2012 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
@ -43,6 +43,13 @@ define Build/Compile
$(call Build/Compile/Default) $(call Build/Compile/Default)
endef endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/libipset $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/lib/libipset.pc $(1)/usr/lib/pkgconfig/
endef
define Package/ipset/install define Package/ipset/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/