diff options
-rw-r--r-- | rules/ncurses.in | 28 | ||||
-rw-r--r-- | rules/ncurses.make | 82 |
2 files changed, 91 insertions, 19 deletions
diff --git a/rules/ncurses.in b/rules/ncurses.in index 2ecbd9546..158c26a30 100644 --- a/rules/ncurses.in +++ b/rules/ncurses.in @@ -1,7 +1,33 @@ menuconfig NCURSES bool "ncurses " help - FIXME: This item needs to be documented + The ncurses libraries implement the curses API. The panel, menu and + forms libraries implement clones of the SVr4 panel, menu and forms + APIs. The source code for these lives in the `ncurses', `panel', + `menu', and `form' directories respectively. + +comment "build options ---" + depends on NCURSES + +config NCURSES_WIDE_CHAR + bool "Enable wide char support" + depends on NCURSES + help + Build ncurses with wide-char/UTF-8 code support. This will create + the wide character libraries used by some other programs to support + utf8. + +config NCURSES_BIG_CORE + bool "Enable the big core" + depends on NCURSES + default y + help + Disable this entry if your target machine has little memory. + Note: Not all programs that need ncurses may run with this feature + disabled. + +comment "install options ---" + depends on NCURSES #config NCURSES_NCURSES # bool "Install libncurses on the target" diff --git a/rules/ncurses.make b/rules/ncurses.make index 9a8e32326..a4feca159 100644 --- a/rules/ncurses.make +++ b/rules/ncurses.make @@ -2,7 +2,7 @@ # $Id$ # # Copyright (C) 2002-2006 by Pengutronix e.K., Hildesheim, Germany -# See CREDITS for details about who has contributed to this project. +# See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. @@ -14,7 +14,7 @@ PACKAGES-$(PTXCONF_NCURSES) += ncurses # -# Paths and names +# Paths and names # NCURSES_VERSION := 5.5 NCURSES := ncurses-$(NCURSES_VERSION) @@ -58,16 +58,32 @@ $(STATEDIR)/ncurses.extract: $(ncurses_extract_deps_default) ncurses_prepare: $(STATEDIR)/ncurses.prepare NCURSES_PATH := PATH=$(CROSS_PATH) -NCURSES_ENV := $(CROSS_ENV) +# FIXME: Prevent this: configure: WARNING: Assuming unsigned for type of bool +NCURSES_ENV := $(CROSS_ENV) cf_cv_func_nanosleep=yes cf_cv_working_poll=yes +# --without-gpm: elsewhere its guessed NCURSES_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --libdir=/lib \ + --with-normal \ --with-shared \ --disable-nls \ --without-ada \ --enable-const \ - --enable-overwrite + --enable-overwrite \ + --without-gpm +# enable wide char support on demand only +ifdef PTXCONF_NCURSES_WIDE_CHAR +NCURSES_AUTOCONF += --enable-widec +else +NCURSES_AUTOCONF += --disable-widec +endif + +ifdef PTXCONF_NCURSES_BIG_CORE +NCURSES_AUTOCONF += --enable-big-core +else +NCURSES_AUTOCONF += --disable-big-core +endif $(STATEDIR)/ncurses.prepare: $(ncurses_prepare_deps_default) @$(call targetinfo, $@) @@ -116,37 +132,67 @@ $(STATEDIR)/ncurses.targetinstall: $(ncurses_targetinstall_deps_default) @$(call install_fixup, ncurses,DEPENDS,) @$(call install_fixup, ncurses,DESCRIPTION,missing) - @$(call install_copy, ncurses, 0, 0, 0644, $(NCURSES_DIR)/lib/libncurses.so.5.5, /lib/libncurses.so.5.5) +ifdef PTXCONF_NCURSES_WIDE_CHAR + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(NCURSES_DIR)/lib/libncursesw.so.5.5, /lib/libncursesw.so.5.5) + @$(call install_link, ncurses, libncursesw.so.5.5, /lib/libncursesw.so.5) + @$(call install_link, ncurses, libncursesw.so.5.5, /lib/libncursesw.so) +# for backward compatibility + @$(call install_link, ncurses, libncursesw.so.5.5, /lib/libncurses.so.5) + @$(call install_link, ncurses, libncursesw.so.5.5, /lib/libncurses.so) +else + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(NCURSES_DIR)/lib/libncurses.so.5.5, /lib/libncurses.so.5.5) @$(call install_link, ncurses, libncurses.so.5.5, /lib/libncurses.so.5) @$(call install_link, ncurses, libncurses.so.5.5, /lib/libncurses.so) +endif ifdef PTXCONF_NCURSES_FORM - @$(call install_copy, ncurses, 0, 0, 0644, $(NCURSES_DIR)/lib/libform.so.5.5, /lib/libform.so.5.5) + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(NCURSES_DIR)/lib/libform.so.5.5, /lib/libform.so.5.5) @$(call install_link, ncurses, libform.so.5.5, /lib/libform.so.5) @$(call install_link, ncurses, libform.so.5.5, /lib/libform.so) endif ifdef PTXCONF_NCURSES_MENU - @$(call install_copy, ncurses, 0, 0, 0644, $(NCURSES_DIR)/lib/libmenu.so.5.5, /lib/libmenu.so.5.5) + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(NCURSES_DIR)/lib/libmenu.so.5.5, /lib/libmenu.so.5.5) @$(call install_link, ncurses, libmenu.so.5.5, /lib/libmenu.so.5) @$(call install_link, ncurses, libmenu.so.5.5, /lib/libmenu.so) endif ifdef PTXCONF_NCURSES_PANEL - @$(call install_copy, ncurses, 0, 0, 0644, $(NCURSES_DIR)/lib/libpanel.so.5.5, /lib/libpanel.so.5.5) + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(NCURSES_DIR)/lib/libpanel.so.5.5, /lib/libpanel.so.5.5) @$(call install_link, ncurses, libpanel.so.5.5, /lib/libpanel.so.5) @$(call install_link, ncurses, libpanel.so.5.5, /lib/libpanel.so) endif ifdef PTXCONF_NCURSES_TERMCAP - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/x/xterm, /usr/share/terminfo/x/xterm, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/x/xterm-color, /usr/share/terminfo/x/xterm-color, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/x/xterm-xfree86, /usr/share/terminfo/x/xterm-xfree86, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/v/vt100, /usr/share/terminfo/v/vt100, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/v/vt102, /usr/share/terminfo/v/vt102, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/v/vt200, /usr/share/terminfo/v/vt200, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/a/ansi, /usr/share/terminfo/a/ansi, n); - @$(call install_copy, ncurses, 0, 0, 0644, $(SYSROOT)/usr/share/terminfo/l/linux, /usr/share/terminfo/l/linux, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/x/xterm, \ + /usr/share/terminfo/x/xterm, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/x/xterm-color, \ + /usr/share/terminfo/x/xterm-color, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/x/xterm-xfree86, \ + /usr/share/terminfo/x/xterm-xfree86, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/v/vt100, \ + /usr/share/terminfo/v/vt100, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/v/vt102, \ + /usr/share/terminfo/v/vt102, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/v/vt200, \ + /usr/share/terminfo/v/vt200, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/a/ansi, \ + /usr/share/terminfo/a/ansi, n); + @$(call install_copy, ncurses, 0, 0, 0644, \ + $(SYSROOT)/usr/share/terminfo/l/linux, \ + /usr/share/terminfo/l/linux, n); endif @$(call install_finish, ncurses) @@ -157,8 +203,8 @@ endif # Clean # ---------------------------------------------------------------------------- -ncurses_clean: +ncurses_clean: rm -rf $(STATEDIR)/ncurses.* $(NCURSES_DIR) - rm -rf $(IMAGEDIR)/ncurses_* + rm -rf $(IMAGEDIR)/ncurses_* # vim: syntax=make |