Ignore:
Timestamp:
May 25, 2006, 9:10:35 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Updated build scripts for DOS and Win32.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/build-dos

    r543 r975  
    88
    99# Clean up our working directory
    10 DIRNAME="libcaca-dos-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
    11 DESTDIR="`pwd`/${DIRNAME}"
    12 rm -Rf "${DIRNAME}"
    13 rm -f "${DIRNAME}.zip"
    14 mkdir "${DIRNAME}"
     10SRCDIR="`pwd`"
     11DIRNAME="libcaca-dos-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`"
     12INSTALLDIR="`pwd`/${DIRNAME}"
     13BUILDDIR="${INSTALLDIR}/build"
     14rm -Rf "${INSTALLDIR}"
     15rm -f "${INSTALLDIR}.zip"
     16mkdir "${INSTALLDIR}"
     17mkdir "${BUILDDIR}"
    1518
     19cd "${BUILDDIR}"
    1620# Build for DOS
    17 ./configure --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
     21"${SRCDIR}/configure" --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
    1822make pkglibdir=/lib pkgdatadir=/data
     23# Install into our private directory
     24make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib pkgdatadir=/
     25cd "${SRCDIR}"
     26rm -Rf "${BUILDDIR}"
    1927
    20 # Install into our private directory
    21 make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
    22 i386-pc-msdosdjgpp-strip "${DESTDIR}/"*.exe
    23 rm -Rf "${DESTDIR}/man"
    24 rm -Rf "${DESTDIR}/include"
    25 rm -f "${DESTDIR}/caca-config"
    26 rm -f "${DESTDIR}/"*.a
    27 mv "${DESTDIR}/share/doc/libcaca-dev/" "${DESTDIR}/doc"
    28 rmdir "${DESTDIR}/share/doc"
    29 rmdir "${DESTDIR}/share"
     28i386-pc-msdosdjgpp-strip "${INSTALLDIR}/"*.exe
     29
     30mkdir "${INSTALLDIR}/doc"
     31for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS TODO; do
     32   sed -e 's/$/^M/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt"
     33done
     34
     35rm -Rf "${INSTALLDIR}/share"
     36rm -Rf "${INSTALLDIR}/man"
     37rm -Rf "${INSTALLDIR}/include"
     38rm -Rf "${INSTALLDIR}/pkg-config"
     39rm -f "${INSTALLDIR}/caca-config"
     40rm -f "${INSTALLDIR}/"*.a
     41rm -f "${INSTALLDIR}/"*.la
    3042
    3143# Pack the directory
    3244zip "${DIRNAME}.zip" `find "${DIRNAME}"`
    33 rm -Rf "${DIRNAME}"
     45rm -Rf "${INSTALLDIR}"
    3446
Note: See TracChangeset for help on using the changeset viewer.