source: libcaca/trunk/build-win32 @ 341

Last change on this file since 341 was 341, checked in by Sam Hocevar, 17 years ago
  • build-win32: + Win32 cross-compilation script.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1#! /bin/sh
2
3##  Win32 cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
4##  $Id: build-win32 341 2004-01-12 16:21:34Z sam $
5
6set -x
7set -e
8
9# Clean up our working directory
10DIRNAME="libcaca-win32-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
11DESTDIR="`pwd`/${DIRNAME}"
12rm -Rf "${DIRNAME}"
13rm -f "${DIRNAME}.zip"
14mkdir "${DIRNAME}"
15
16# Build for win32
17./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ --disable-imlib2
18make pkglibdir=/lib pkgdatadir=/data
19
20# Install into our private directory
21make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
22i586-mingw32msvc-strip "${DESTDIR}/"*.exe
23rm -Rf "${DESTDIR}/man"
24rm -Rf "${DESTDIR}/include"
25rm -f "${DESTDIR}/caca-config"
26rm -f "${DESTDIR}/"*.a
27mv "${DESTDIR}/share/doc/libcaca-dev/html" "${DESTDIR}/html"
28mv "${DESTDIR}/share/doc/libcaca-dev/ps" "${DESTDIR}/doc"
29mv "${DESTDIR}/share/doc/libcaca-dev/"* "${DESTDIR}/doc"
30rmdir "${DESTDIR}/share/doc/libcaca-dev"
31rmdir "${DESTDIR}/share/doc"
32rmdir "${DESTDIR}/share"
33
34# Pack the directory
35zip "${DIRNAME}.zip" `find "${DIRNAME}"`
36rm -Rf "${DIRNAME}"
37
Note: See TracBrowser for help on using the repository browser.