Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- #! /bin/sh
-
- ## Win32 cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
- ## $Id$
-
- set -x
- set -e
-
- # Clean up our working directory
- SRCDIR="`pwd`"
- DIRNAME="libcaca-win32-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`"
- INSTALLDIR="`pwd`/${DIRNAME}"
- BUILDDIR="${INSTALLDIR}/build"
- rm -Rf "${INSTALLDIR}"
- rm -f "${INSTALLDIR}.zip"
- mkdir "${INSTALLDIR}"
- mkdir "${BUILDDIR}"
-
- cd "${BUILDDIR}"
- # Build for win32
- "${SRCDIR}/configure" --host=i586-mingw32msvc --program-suffix=.exe --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc
- make pkglibdir=/lib pkgdatadir=/data bindir=/bin
- # Install into our private directory
- make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
- cd "${SRCDIR}"
- rm -Rf "${BUILDDIR}"
-
- mv "${INSTALLDIR}/bin/"* "${INSTALLDIR}/"
- mv "${INSTALLDIR}/lib/"* "${INSTALLDIR}/"
- rm -f "${INSTALLDIR}/caca-config.exe" # Just in case. *sigh*.
- i586-mingw32msvc-strip "${INSTALLDIR}/"*.exe
- i586-mingw32msvc-strip "${INSTALLDIR}/"*.dll
- rmdir "${INSTALLDIR}/bin"
- rmdir "${INSTALLDIR}/lib"
-
- mkdir "${INSTALLDIR}/doc"
- for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS TODO; do
- sed -e 's/$/
/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt"
- done
- rm -Rf "${INSTALLDIR}/share"
- rm -Rf "${INSTALLDIR}/man"
- rm -Rf "${INSTALLDIR}/include"
- rm -Rf "${INSTALLDIR}/pkg-config"
- rm -f "${INSTALLDIR}/caca-config"
- rm -f "${INSTALLDIR}/"*.a
- rm -f "${INSTALLDIR}/"*.la
-
- # Pack the directory
- zip "${DIRNAME}.zip" `find "${DIRNAME}"`
- rm -Rf "${INSTALLDIR}"
|