ncurses: add host build for 'tic'

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44282
This commit is contained in:
Jo-Philipp Wich 2015-02-05 23:18:42 +00:00
parent e1c95ffb93
commit 66fe4fd966

View file

@ -22,7 +22,10 @@ PKG_LICENSE_FILES:=README
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=ncurses/host
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
define Package/libncurses define Package/libncurses
SECTION:=libs SECTION:=libs
@ -58,8 +61,10 @@ CONFIGURE_ARGS += \
--disable-rpath \ --disable-rpath \
--without-ada \ --without-ada \
--without-debug \ --without-debug \
--without-manpages \
--without-profile \ --without-profile \
--without-progs \ --without-progs \
--without-tests \
--disable-big-core \ --disable-big-core \
--disable-home-terminfo \ --disable-home-terminfo \
--with-normal \ --with-normal \
@ -67,6 +72,17 @@ CONFIGURE_ARGS += \
--with-terminfo-dirs=/usr/share/terminfo \ --with-terminfo-dirs=/usr/share/terminfo \
--with-default-terminfo-dir=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo
HOST_CONFIGURE_ARGS += \
--without-cxx \
--without-cxx-binding \
--without-ada \
--without-debug \
--without-manpages \
--without-profile \
--without-tests \
--without-curses-h
ifeq ($(HOST_OS),FreeBSD) ifeq ($(HOST_OS),FreeBSD)
CONFIGURE_ARGS += CONFIGURE_ARGS +=
--with-terminfo=/usr/share/terminfo.db --with-terminfo=/usr/share/terminfo.db
@ -149,6 +165,17 @@ define Build/InstallDev
endef endef
endif endif
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) libs
$(MAKE) -C $(HOST_BUILD_DIR)/progs tic
endef
define Host/Install
$(INSTALL_BIN) $(HOST_BUILD_DIR)/progs/tic $(STAGING_DIR_HOST)/bin/tic
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,terminfo)) $(eval $(call BuildPackage,terminfo))
$(eval $(call BuildPackage,libncurses)) $(eval $(call BuildPackage,libncurses))
$(eval $(call BuildPackage,libncursesw)) $(eval $(call BuildPackage,libncursesw))