Browse Source

- ncurses: move to package dir

master
vanhofen 4 years ago
parent
commit
28f0ba1304
  1. 45
      make/target-libs.mk
  2. 40
      package/ncurses/ncurses.mk

45
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" \

40
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)
Loading…
Cancel
Save