OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

111 lines
3.5 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ncurses/ncurses.conf
# Copyright (C) 2006 - 2020 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
prefix=
set_confopt
if ! atstage native; then
var_append extraconfopt " " "--without-cxx --without-cxx-binding --with-build-cppflags=-D_GNU_SOURCE"
else
var_append extraconfopt " " "--with-cxx-binding --with-cxx-shared --enable-ext-colors"
fi
# no gzip on manpages
var_append extraconfopt " " "--with-manpage-format=normal"
# no debug and no ada
var_append extraconfopt " " "--without-debug --without-ada --without-tests"
# on dietlibc we won't use NLS
[ "$SDECFG_LIBC" != dietlibc ] || SDECFG_DISABLE_NLS=1
ncurses_preconf() {
# Don't install a static library that is not handled by configure:
sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
}
# functions we use when termcap package is installed
remove_include_termcap() {
echo "Removing 'termcap.h' from include/Makefile for 'make install'."
sed -i 's,termcap.h,,g' include/Makefile
}
make_compat() {
for lib in ncurses form panel menu tinfo; do
rm -vf $root$libdir/lib${lib}.so
echo "INPUT(-l${lib}w)" > $root$libdir/lib${lib}.so
ln -sfv $root$libdir/pkgconfig/${lib}w.pc $root$libdir/pkgconfig/${lib}.pc
done
# our ncurses needs tinfo
echo "INPUT(-lncursesw -ltinfow)" > $root$libdir/libncurses.so
rm -vf $root$libdir/libcursesw.so
echo "INPUT(-lncursesw -ltinfow)" > $root$libdir/libcursesw.so
ln -sfv $root$libdir/libncurses.so $root$libdir/libcurses.so
}
if atstage toolchain; then
var_append confopt ' ' '--prefix=$root --without-debug --without-ada --enable-widec --enable-overwrite'
else
var_append confopt ' ' '--prefix=/$prefix --without-debug --without-normal --enable-widec --enable-overwrite'
hook_add preconf 3 "ncurses_preconf"
[ "$SDECFG_STATIC" != 1 ] && var_append extraconfopt " " "--with-shared"
# Fine-Tuning:
#
# make tic use symbolic links not hard links
var_append extraconfopt " " "--enable-symlinks"
# Extensions:
#
# compile with SIGWINCH handler
var_append extraconfopt " " "--enable-sigwinch"
# Development Code:
#
# compile with hard-tabs code
var_append extraconfopt " " "--enable-hard-tabs"
# Experimental Code:
#
# compile with $COLORFGBG code
var_append extraconfopt " " "--enable-colorfgbg"
# some compat things
hook_add postmake 7 "make_compat"
if pkginstalled termcap ; then
echo_status "Found termcap package ->" \
"disable ncurses internal termcap library."
var_append extraconfopt " " "--disable-termcap"
hook_add inmake 5 "remove_include_termcap"
else
# generate separate terminfo library
var_append extraconfopt " " "--with-termlib"
hook_add postmake 6 " \
ln -svf libncurses.so $root/$libdir/libtermcap.so"
fi
# generate and install .pc files for pkg-config
if pkginstalled pkgconfig; then
var_append extraconfopt " " "--enable-pc-files"
# without this .pc files will get installed into $datadir/pkgconfig
var_append extraconfopt " " "--with-pkg-config-libdir=$libdir/pkgconfig"
fi
fi