You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 rivejä
1.3 KiB

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