Signed-off-by: David Woodhouse <david.woodho...@intel.com>
---
 utils/nut/Makefile |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/utils/nut/Makefile b/utils/nut/Makefile
index 9d9ffd1..3fcfb7e 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))
-- 
1.7.7.6

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to