mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
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>
This commit is contained in:
parent
a81a082f5b
commit
2be603783b
@ -44,6 +44,14 @@ define Package/libncurses
|
|||||||
ABI_VERSION:=$(PKG_VERSION)
|
ABI_VERSION:=$(PKG_VERSION)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libncurses-dev
|
||||||
|
SECTION:=devel
|
||||||
|
CATEGORY:=Development
|
||||||
|
SUBMENU:=Libraries
|
||||||
|
DEPENDS:=zlib
|
||||||
|
TITLE:=Development files for the ncurses library
|
||||||
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
@ -124,6 +132,17 @@ define Package/libncurses/install
|
|||||||
done
|
done
|
||||||
endef
|
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
|
define Build/InstallDev
|
||||||
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
||||||
for lib in ncurses panel menu form; do \
|
for lib in ncurses panel menu form; do \
|
||||||
@ -150,3 +169,4 @@ endef
|
|||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
$(eval $(call BuildPackage,terminfo))
|
$(eval $(call BuildPackage,terminfo))
|
||||||
$(eval $(call BuildPackage,libncurses))
|
$(eval $(call BuildPackage,libncurses))
|
||||||
|
$(eval $(call BuildPackage,libncurses-dev))
|
||||||
|
Loading…
Reference in New Issue
Block a user