Changeset 975


Ignore:
Timestamp:
May 25, 2006, 9:10:35 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Updated build scripts for DOS and Win32.
Location:
libcaca/trunk
Files:
2 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
  • libcaca/trunk/build-win32

    r867 r975  
    88
    99# Clean up our working directory
    10 DIRNAME="libcaca-win32-`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-win32-`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 win32
    17 ./configure --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc
     21"${SRCDIR}/configure" --host=i586-mingw32msvc --program-suffix=.exe --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc
    1822make pkglibdir=/lib pkgdatadir=/data bindir=/bin
     23# Install into our private directory
     24make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
     25cd "${SRCDIR}"
     26rm -Rf "${BUILDDIR}"
    1927
    20 # Install into our private directory
    21 make install DESTDIR="${DESTDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
     28mv "${INSTALLDIR}/bin/"* "${INSTALLDIR}/"
     29mv "${INSTALLDIR}/lib/"* "${INSTALLDIR}/"
     30rm -f "${INSTALLDIR}/caca-config.exe" # Just in case. *sigh*.
     31i586-mingw32msvc-strip "${INSTALLDIR}/"*.exe
     32i586-mingw32msvc-strip "${INSTALLDIR}/"*.dll
     33rmdir "${INSTALLDIR}/bin"
     34rmdir "${INSTALLDIR}/lib"
    2235
    23 mv "${DESTDIR}/bin/"* "${DESTDIR}/"
    24 mv "${DESTDIR}/lib/"* "${DESTDIR}/"
    25 i586-mingw32msvc-strip "${DESTDIR}/"*.exe
    26 i586-mingw32msvc-strip "${DESTDIR}/"*.dll
    27 rmdir "${DESTDIR}/bin"
    28 rmdir "${DESTDIR}/lib"
    29 
    30 mkdir "${DESTDIR}/doc"
     36mkdir "${INSTALLDIR}/doc"
    3137for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS TODO; do
    3238   sed -e 's/$/
    33 /' < "${f}" > "${DESTDIR}/doc/${f}.txt"
     39/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt"
    3440done
    35 rm -Rf "${DESTDIR}/share"
    36 rm -Rf "${DESTDIR}/man"
    37 rm -Rf "${DESTDIR}/include"
    38 rm -f "${DESTDIR}/caca-config"
    39 rm -f "${DESTDIR}/"*.a
    40 rm -f "${DESTDIR}/"*.la
     41rm -Rf "${INSTALLDIR}/share"
     42rm -Rf "${INSTALLDIR}/man"
     43rm -Rf "${INSTALLDIR}/include"
     44rm -Rf "${INSTALLDIR}/pkg-config"
     45rm -f "${INSTALLDIR}/caca-config"
     46rm -f "${INSTALLDIR}/"*.a
     47rm -f "${INSTALLDIR}/"*.la
    4148
    4249# Pack the directory
    4350zip "${DIRNAME}.zip" `find "${DIRNAME}"`
    44 rm -Rf "${DIRNAME}"
     51rm -Rf "${INSTALLDIR}"
    4552
Note: See TracChangeset for help on using the changeset viewer.