Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

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