diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-06 08:04:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 08:04:33 (GMT) |
commit | 46bfc8a4dc53779f6f7eff164a00321947a796d1 (patch) | |
tree | 7a5fdf2b347c73b8d716954c985eb2abb3af6f40 /scripts/build/companion_libs | |
parent | ee12992547573e074ae531e20327ca1410041fb6 (diff) | |
parent | ef841ea31232bc880080353ab61ad1d562004b28 (diff) |
Merge pull request #575 from stilor/ncurses-configure
Allow some tunables for ncurses
Diffstat (limited to 'scripts/build/companion_libs')
-rw-r--r-- | scripts/build/companion_libs/220-ncurses.sh | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/scripts/build/companion_libs/220-ncurses.sh b/scripts/build/companion_libs/220-ncurses.sh index 7cbd360..962e8ad 100644 --- a/scripts/build/companion_libs/220-ncurses.sh +++ b/scripts/build/companion_libs/220-ncurses.sh @@ -32,6 +32,18 @@ do_ncurses_for_build() { "--without-cxx" \ "--without-cxx-binding" \ "--without-ada") + # If we are not canadian, this is also our host curses + # Unlike other companion libs, we skip host build if build==host + # (i.e. in simple cross or native): ncurses may not be needed for + # host, but we still need them on build to produce 'tic'. + case "${CT_TOOLCHAIN_TYPE}" in + native|cross) + if [ "${CT_NCURSES_HOST_DISABLE_DB}" = "y" ]; then + opts+=( "--disable-database" "--with-fallbacks=${CT_NCURSES_HOST_FALLBACKS}" ) + fi + opts+=( "${CT_NCURSES_HOST_CONFIG_ARGS[@]}" ) + ;; + esac do_ncurses_backend host="${CT_BUILD}" \ destdir="${CT_BUILDTOOLS_PREFIX_DIR}" \ cflags="${CT_CFLAGS_FOR_BUILD}" \ @@ -59,7 +71,11 @@ do_ncurses_for_host() { "--without-tests" \ "--without-cxx" \ "--without-cxx-binding" \ - "--without-ada") + "--without-ada" ) + if [ "${CT_NCURSES_HOST_DISABLE_DB}" = "y" ]; then + opts+=( "--disable-database" "--with-fallbacks=${CT_NCURSES_HOST_FALLBACKS}" ) + fi + opts+=( "${CT_NCURSES_HOST_CONFIG_ARGS[@]}" ) do_ncurses_backend host="${CT_HOST}" \ prefix="${CT_HOST_COMPLIBS_DIR}" \ cflags="${CT_CFLAGS_FOR_HOST}" \ @@ -79,6 +95,10 @@ do_ncurses_for_target() { opts=("--without-sysmouse") [ "${CT_CC_LANG_CXX}" = "y" ] || opts+=("--without-cxx" "--without-cxx-binding") [ "${CT_CC_LANG_ADA}" = "y" ] || opts+=("--without-ada") + if [ "${CT_NCURSES_TARGET_DISABLE_DB}" = "y" ]; then + opts+=( "--disable-database" "--with-fallbacks=${CT_NCURSES_TARGET_FALLBACKS}" ) + fi + opts+=( "${CT_NCURSES_TARGET_CONFIG_ARGS[@]}" ) case "${CT_TARGET}" in *-*-mingw*) prefix="/mingw" |