Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

46 rader
1.2 KiB

  1. #! /bin/sh
  2. ## DOS cross-compilation for libcaca -- Sam Hocevar <sam@hocevar.net>
  3. set -x
  4. set -e
  5. # Clean up our working directory
  6. SRCDIR="`pwd`"
  7. DIRNAME="libcaca-dos-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`"
  8. INSTALLDIR="`pwd`/${DIRNAME}"
  9. BUILDDIR="${INSTALLDIR}/build"
  10. rm -Rf "${INSTALLDIR}"
  11. rm -f "${INSTALLDIR}.zip"
  12. mkdir "${INSTALLDIR}"
  13. mkdir "${BUILDDIR}"
  14. cd "${BUILDDIR}"
  15. # Build for DOS
  16. "${SRCDIR}/configure" --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx
  17. make pkglibdir=/lib pkgdatadir=/data
  18. # Install into our private directory
  19. make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib pkgdatadir=/
  20. cd "${SRCDIR}"
  21. rm -Rf "${BUILDDIR}"
  22. i386-pc-msdosdjgpp-strip "${INSTALLDIR}/"*.exe
  23. mkdir "${INSTALLDIR}/doc"
  24. for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do
  25. sed -e 's/$/^M/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt"
  26. done
  27. rm -Rf "${INSTALLDIR}/share"
  28. rm -Rf "${INSTALLDIR}/man"
  29. rm -Rf "${INSTALLDIR}/include"
  30. rm -Rf "${INSTALLDIR}/pkg-config"
  31. rm -f "${INSTALLDIR}/caca-config"
  32. rm -f "${INSTALLDIR}/"*.a
  33. rm -f "${INSTALLDIR}/"*.la
  34. # Pack the directory
  35. zip "${DIRNAME}.zip" `find "${DIRNAME}"`
  36. rm -Rf "${INSTALLDIR}"