Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

    rd0ca5ead rb64efb72  
    177177
    178178<screen role="nodump"><userinput>make distclean
    179 ./configure --prefix=/usr    \
    180             --with-shared    \
    181             --without-normal \
    182             --without-debug  \
     179./configure --prefix=/usr     \
     180            --with-shared     \
     181            --without-normal  \
     182            --with-cxx-shared \
     183            --without-debug   \
    183184            --without-cxx-binding \
    184185            --with-abi-version=5
     
    188189
    189190  </sect2>
     191
     192  <!-- - - - - - - - - - -->
     193  <!-- Multilib - 32bit  -->
     194  <!-- - - - - - - - - - -->
     195  <sect2 arch="ml_32,ml_all">
     196    <title>Building Ncurses - 32bit</title>
     197
     198    <para>Clean previous build:</para>
     199
     200<screen><userinput remap="pre">make distclean</userinput></screen>
     201
     202    <para>Prepare Ncurses for compilation:</para>
     203
     204<screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \
     205./configure --prefix=/usr           \
     206            --host=i686-pc-linux-gnu \
     207            --libdir=/usr/lib32     \
     208            --mandir=/usr/share/man \
     209            --with-shared           \
     210            --without-debug         \
     211            --without-normal        \
     212            --with-cxx-shared       \
     213            --enable-pc-files       \
     214            --with-pkg-config-libdir=/usr/lib32/pkgconfig</userinput></screen>
     215
     216    <para>Compile the package:</para>
     217
     218<screen><userinput remap="make">make</userinput></screen>
     219
     220    <para>Install the package:</para>
     221
     222<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     223mkdir -p DESTDIR/usr/lib32/pkgconfig
     224for lib in ncurses form panel menu ; do
     225    rm -vf                    DESTDIR/usr/lib32/lib${lib}.so
     226    echo "INPUT(-l${lib}w)" > DESTDIR/usr/lib32/lib${lib}.so
     227    ln -svf ${lib}w.pc        DESTDIR/usr/lib32/pkgconfig/$lib.pc
     228done
     229rm -vf                     DESTDIR/usr/lib32/libcursesw.so
     230echo "INPUT(-lncursesw)" > DESTDIR/usr/lib32/libcursesw.so
     231ln -sfv libncurses.so      DESTDIR/usr/lib32/libcurses.so
     232cp -Rv DESTDIR/usr/lib32/* /usr/lib32
     233rm -rf DESTDIR</userinput></screen>
     234
     235  </sect2><!-- m32 -->
     236
     237  <!-- - - - - - - - - - -->
     238  <!-- Multilib - x32bit -->
     239  <!-- - - - - - - - - - -->
     240  <sect2 arch="ml_x32,ml_all">
     241    <title>Building Ncurses - x32bit</title>
     242
     243    <para>Clean previous build:</para>
     244
     245<screen><userinput remap="pre">make distclean</userinput></screen>
     246
     247    <para>Prepare Ncurses for compilation:</para>
     248
     249<screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \
     250./configure --prefix=/usr           \
     251            --host=x86_64-pc-linux-gnux32 \
     252            --libdir=/usr/libx32    \
     253            --mandir=/usr/share/man \
     254            --with-shared           \
     255            --without-debug         \
     256            --without-normal        \
     257            --enable-pc-files       \
     258            --with-pkg-config-libdir=/usr/libx32/pkgconfig</userinput></screen>
     259
     260    <para>Compile the package:</para>
     261
     262<screen><userinput remap="make">make</userinput></screen>
     263
     264    <para>Install the package:</para>
     265
     266<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     267mkdir -p DESTDIR/usr/libx32/pkgconfig
     268for lib in ncurses form panel menu ; do
     269    rm -vf                    DESTDIR/usr/libx32/lib${lib}.so
     270    echo "INPUT(-l${lib}w)" > DESTDIR/usr/libx32/lib${lib}.so
     271    ln -svf ${lib}w.pc        DESTDIR/usr/libx32/pkgconfig/$lib.pc
     272done
     273rm -vf                     DESTDIR/usr/libx32/libcursesw.so
     274echo "INPUT(-lncursesw)" > DESTDIR/usr/libx32/libcursesw.so
     275ln -sfv libncurses.so      DESTDIR/usr/libx32/libcurses.so
     276cp -Rv DESTDIR/usr/libx32/* /usr/libx32
     277rm -rf DESTDIR</userinput></screen>
     278
     279  </sect2><!-- mx32 -->
    190280
    191281  <sect2 id="contents-ncurses" role="content">
Note: See TracChangeset for help on using the changeset viewer.