|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
@ -20,17 +21,23 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
libdir=$root/lib |
|
|
|
libdir=$root/$multilib |
|
|
|
includedir=$includedir/ncurses |
|
|
|
|
|
|
|
custmain=ncurses_main |
|
|
|
|
|
|
|
var_append extraconfopt ' ' '--with-shared' |
|
|
|
if pkginstalled libtool && [ ${stagelevel} -gt 3 ] ; then |
|
|
|
if pkginstalled libtool && [ ${stagelevel} -ge 3 ] ; then |
|
|
|
var_append extraconfopt ' ' '--with-libtool' |
|
|
|
else |
|
|
|
var_append extraconfopt ' ' '--with-normal' |
|
|
|
fi |
|
|
|
if [ $stagelevel -le 2 ] ; then |
|
|
|
var_append extraconfopt ' ' '--without-ada' |
|
|
|
var_append extraconfopt ' ' '--without-cxx --without-cxx-bindings' |
|
|
|
fi |
|
|
|
|
|
|
|
var_append makeinstopt ' ' "'INSTALL_LIB=\$(INSTALL) -m 755'" |
|
|
|
|
|
|
|
prepatch="bunzip2 < $archdir/termtypes.ti.bz2 > misc/terminfo.src" |
|
|
|
|
|
|
@ -41,7 +48,7 @@ remove_include_termcap() { |
|
|
|
|
|
|
|
if pkginstalled termcap ; then |
|
|
|
echo_status "Found termcap package ->" \ |
|
|
|
"disable ncurses internal termcap library." |
|
|
|
"disable ncurses internal termcap library." |
|
|
|
var_append extraconfopt ' ' '--disable-termcap' |
|
|
|
inmake="remove_include_termcap" |
|
|
|
else |
|
|
@ -54,13 +61,7 @@ fi |
|
|
|
hook_add postmake 7 "\ |
|
|
|
ln -svf libncurses.so $libdir/libcurses.so; \ |
|
|
|
ln -svf libncurses.a $libdir/libcurses.a; \ |
|
|
|
ln -svf ncurses/ncurses.h ncurses/curses.h ncurses/term.h ncurses/unctrl.h $includedir/../" |
|
|
|
|
|
|
|
if [ $stagelevel = 1 ] ; then |
|
|
|
var_append extraconfopt ' ' '--without-cxx --without-cxx-bindings' |
|
|
|
fi |
|
|
|
|
|
|
|
var_append makeinstopt ' ' "'INSTALL_LIB=\$(INSTALL) -m 755'" |
|
|
|
ln -svf ncurses/{ncurses,curses,term,unctrl}.h $includedir/../" |
|
|
|
|
|
|
|
ncurses_main() { |
|
|
|
ncurses_build |
|
|
@ -79,4 +80,3 @@ ncurses_build() { |
|
|
|
eval "$MAKE $makeinstopt" |
|
|
|
hook_eval postmake |
|
|
|
} |
|
|
|
|