From f76270c80ca0522b9b99ea4f6487a722c41372cd Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 21 Dec 2012 18:25:35 +0000 Subject: [PATCH] nut: install development files for libupsclient Signed-off-by: David Woodhouse Signed-off-by: Gabor Juhos SVN-Revision: 34829 --- utils/nut/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utils/nut/Makefile b/utils/nut/Makefile index 9d9ffd1df..3fcfb7eab 100644 --- a/utils/nut/Makefile +++ b/utils/nut/Makefile @@ -75,6 +75,14 @@ define Package/nut/install ln -sf /var/run/ups.conf $(1)/etc/nut/ups.conf endef +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib +endef + define Package/nut/conffiles /etc/nut/nut.conf endef @@ -282,7 +290,8 @@ CONFIGURE_ARGS += \ --with-group=root \ --with-usb \ --with-snmp \ - --without-libltdl + --without-libltdl \ + --with-dev $(eval $(call BuildPackage,nut)) -- 2.30.2