source: libcaca/trunk/build-win32 @ 346

Last change on this file since 346 was 346, checked in by Sam Hocevar, 16 years ago
  • configure.ac: + Added --disable-doc to let the user not build documentation.
  • build-win32: + Do not build documentation.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 894 bytes
Line 
1#! /bin/sh
2
3##  Win32 cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
4##  $Id: build-win32 346 2004-01-13 16:45:45Z 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 --disable-doc
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/" "${DESTDIR}/doc"
28rmdir "${DESTDIR}/share/doc"
29rmdir "${DESTDIR}/share"
30
31# Pack the directory
32zip "${DIRNAME}.zip" `find "${DIRNAME}"`
33rm -Rf "${DIRNAME}"
34
Note: See TracBrowser for help on using the repository browser.