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.
 
 
 
 
 
 

35 regels
892 B

  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. DIRNAME="libcaca-dos-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
  8. DESTDIR="`pwd`/${DIRNAME}"
  9. rm -Rf "${DIRNAME}"
  10. rm -f "${DIRNAME}.zip"
  11. mkdir "${DIRNAME}"
  12. # Build for DOS
  13. ./configure --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
  14. make pkglibdir=/lib pkgdatadir=/data
  15. # Install into our private directory
  16. make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
  17. i386-pc-msdosdjgpp-strip "${DESTDIR}/"*.exe
  18. rm -Rf "${DESTDIR}/man"
  19. rm -Rf "${DESTDIR}/include"
  20. rm -f "${DESTDIR}/caca-config"
  21. rm -f "${DESTDIR}/"*.a
  22. mv "${DESTDIR}/share/doc/libcaca-dev/" "${DESTDIR}/doc"
  23. rmdir "${DESTDIR}/share/doc"
  24. rmdir "${DESTDIR}/share"
  25. # Pack the directory
  26. zip "${DIRNAME}.zip" `find "${DIRNAME}"`
  27. rm -Rf "${DIRNAME}"