77
88cd src
99
10- # Ncurses cannot build narrow and wide (unicode, --enable-widec)
11- # versions in one go. Need to compile twice. Note that Python's curses
12- # module will want the wide version, and readline the narrow version.
13-
14- ###################################################
15- mkdir narrow
16- cd narrow
17- ln -s ../configure .
18-
19- echo "Configuring ncurses (narrow)..."
20- sdh_configure --with-termlib \
21- --with-shared \
22- --without-normal \
23- --without-ada \
24- --disable-rpath-hack \
25- --enable-overwrite \
26- --with-pkg-config-libdir="$SAGE_LOCAL/lib/pkgconfig" \
27- --enable-pc-files \
28- --without-cxx \
29- --without-cxx-binding \
30- "$DEBUG_CONFIGURE_FLAG"
31-
32- echo "Building ncurses (narrow)..."
33- sdh_make
34-
35- echo "Installing ncurses (narrow)..."
36- sdh_make_install
37-
38- cd .. # leave narrow
39-
40- ###################################################
41- mkdir wide
42- cd wide
43- ln -s ../configure .
10+ # Build only the wide (unicode, --enable-widec) version of ncurses.
11+ # Python's curses module wants the wide version.
12+ # Readline should also work with wide version via compatibility symlinks.
4413
4514echo "Configuring ncurses (wide)..."
4615sdh_configure --with-termlib \
@@ -49,6 +18,7 @@ sdh_configure --with-termlib \
4918 --without-normal \
5019 --without-ada \
5120 --disable-rpath-hack \
21+ --enable-overwrite \
5222 --with-pkg-config-libdir="$SAGE_LOCAL/lib/pkgconfig" \
5323 --enable-pc-files \
5424 --without-cxx \
@@ -61,7 +31,4 @@ sdh_make
6131echo "Installing ncurses (wide)..."
6232sdh_make_install
6333
64- cd .. # leave wide
65-
6634# Note: Symbolic links for compatibility are created in spkg-postinst
67- # after the files have been moved to their final location.
0 commit comments