aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/ncurses
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2017-07-08 23:16:52 +0200
committerDaniel Golle <daniel@makrotopia.org>2017-07-08 23:19:31 +0200
commit2be603783be617c880a8f5b2d7c272e52c33cacd (patch)
treee88dff8b9de6df2e5895d0929354eb651b2ed7fa /package/libs/ncurses
parenta81a082f5b0ea4e7c9c5cb96e7a16f9333ad3d3f (diff)
downloadupstream-2be603783be617c880a8f5b2d7c272e52c33cacd.tar.gz
upstream-2be603783be617c880a8f5b2d7c272e52c33cacd.tar.bz2
upstream-2be603783be617c880a8f5b2d7c272e52c33cacd.zip
ncurses: add libnucrses-dev package
It's needed to use the SDK and IB on an OpenWrt/LEDE host. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/libs/ncurses')
-rw-r--r--package/libs/ncurses/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index 60a8a176df..26fabeef77 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -44,6 +44,14 @@ define Package/libncurses
ABI_VERSION:=$(PKG_VERSION)
endef
+define Package/libncurses-dev
+ SECTION:=devel
+ CATEGORY:=Development
+ SUBMENU:=Libraries
+ DEPENDS:=zlib
+ TITLE:=Development files for the ncurses library
+endef
+
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
@@ -124,6 +132,17 @@ define Package/libncurses/install
done
endef
+define Package/libncurses-dev/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
+endef
+
define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/* $(1)
for lib in ncurses panel menu form; do \
@@ -150,3 +169,4 @@ endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,terminfo))
$(eval $(call BuildPackage,libncurses))
+$(eval $(call BuildPackage,libncurses-dev))