25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
894 B

  1. #! /bin/sh
  2. ## Win32 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-win32-`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 win32
  13. ./configure --host=i586-mingw32msvc --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. i586-mingw32msvc-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}"