From 28f0ba13048ca8fdc9f4f8cf4449ab0549a02641 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 22 Apr 2021 23:54:15 +0200 Subject: [PATCH] - ncurses: move to package dir --- make/target-libs.mk | 45 -------------------------------------- package/ncurses/ncurses.mk | 40 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 45 deletions(-) create mode 100644 package/ncurses/ncurses.mk diff --git a/make/target-libs.mk b/make/target-libs.mk index cfcfce8b..4a84d31b 100644 --- a/make/target-libs.mk +++ b/make/target-libs.mk @@ -164,51 +164,6 @@ endif # ----------------------------------------------------------------------------- -NCURSES_VERSION = 6.1 -NCURSES_DIR = ncurses-$(NCURSES_VERSION) -NCURSES_SOURCE = ncurses-$(NCURSES_VERSION).tar.gz -NCURSES_SITE = $(GNU_MIRROR)/ncurses - -$(DL_DIR)/$(NCURSES_SOURCE): - $(download) $(NCURSES_SITE)/$(NCURSES_SOURCE) - -NCURSES_CONFIG_SCRIPTS = ncurses6-config - -NCURSES_CONF_OPTS = \ - --enable-pc-files \ - --with-pkg-config \ - --with-pkg-config-libdir=$(libdir)/pkgconfig \ - --with-shared \ - --with-fallbacks='linux vt100 xterm' \ - --disable-big-core \ - --disable-db-install \ - --with-progs \ - --without-termlib \ - --without-ticlib \ - --without-manpages \ - --without-tests \ - --without-debug \ - --without-ada \ - --without-profile \ - --without-cxx-binding - -ncurses: $(DL_DIR)/$(NCURSES_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(call APPLY_PATCHES,$(PKG_PATCHES_DIR)) - $(CHDIR)/$(PKG_DIR); \ - $(CONFIGURE); \ - $(MAKE); \ - $(MAKE) install DESTDIR=$(TARGET_DIR) - $(TARGET_RM) $(addprefix $(TARGET_bindir)/,captoinfo clear infocmp infotocap reset tabs tic toe) - $(TARGET_RM) $(addprefix $(TARGET_libdir)/,libform* libmenu* libpanel*) - $(TARGET_RM) $(addprefix $(TARGET_libdir)/pkgconfig/,form.pc menu.pc panel.pc) - $(REWRITE_CONFIG_SCRIPTS) - $(REMOVE)/$(PKG_DIR) - $(TOUCH) - -# ----------------------------------------------------------------------------- - OPENTHREADS_CONF_OPTS = \ -DCMAKE_SUPPRESS_DEVELOPER_WARNINGS="1" \ -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE="0" \ diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk new file mode 100644 index 00000000..e3cea95f --- /dev/null +++ b/package/ncurses/ncurses.mk @@ -0,0 +1,40 @@ +################################################################################ +# +# ncurses +# +################################################################################ + +NCURSES_VERSION = 6.1 +NCURSES_DIR = ncurses-$(NCURSES_VERSION) +NCURSES_SOURCE = ncurses-$(NCURSES_VERSION).tar.gz +NCURSES_SITE = $(GNU_MIRROR)/ncurses + +NCURSES_CONFIG_SCRIPTS = ncurses6-config + +NCURSES_CONF_OPTS = \ + --enable-pc-files \ + --with-pkg-config \ + --with-pkg-config-libdir=$(libdir)/pkgconfig \ + --with-shared \ + --with-fallbacks='linux vt100 xterm' \ + --disable-big-core \ + --disable-db-install \ + --with-progs \ + --without-termlib \ + --without-ticlib \ + --without-manpages \ + --without-tests \ + --without-debug \ + --without-ada \ + --without-profile \ + --without-cxx-binding + +define NCURSES_TARGET_CLEANUP + $(TARGET_RM) $(addprefix $(TARGET_bindir)/,captoinfo clear infocmp infotocap reset tabs tic toe) + $(TARGET_RM) $(addprefix $(TARGET_libdir)/,libform* libmenu* libpanel*) + $(TARGET_RM) $(addprefix $(TARGET_libdir)/pkgconfig/,form.pc menu.pc panel.pc) +endef +NCURSES_TARGET_FINALIZE_HOOKS += NCURSES_TARGET_CLEANUP + +ncurses: | $(TARGET_DIR) + $(call autotools-package)