source: zzuf/trunk/build-win32 @ 4124

Last change on this file since 4124 was 2522, checked in by Sam Hocevar, 13 years ago
  • Fix the Win32 package build. No, it still doesn't work, it just builds.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 733 bytes
RevLine 
[1701]1#! /bin/sh
2
3##  Win32 cross-compilation for zzuf -- Sam Hocevar <sam@zoy.org>
4##  $Id: build-win32 2522 2008-07-15 20:15:43Z sam $
5
6set -x
7set -e
8
9# Clean up our working directory
10SRCDIR="`pwd`"
[2522]11DIRNAME="zzuf-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`"
[1701]12INSTALLDIR="`pwd`/${DIRNAME}"
13BUILDDIR="${INSTALLDIR}/build"
14rm -Rf "${INSTALLDIR}"
15rm -f "${INSTALLDIR}.zip"
16mkdir "${INSTALLDIR}"
17mkdir "${BUILDDIR}"
18
19cd "${BUILDDIR}"
20# Build for win32
[2522]21"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/
[1701]22
[2522]23make pkglibdir=/ pkgdatadir=/data bindir=/
[1701]24
[2522]25make install DESTDIR="${INSTALLDIR}" pkglibdir=/ pkgdatadir=/ bindir=/
[1702]26rm -Rf "${BUILDDIR}"
[1701]27
28# Pack the directory
[1702]29cd "${SRCDIR}"
[1701]30zip "${DIRNAME}.zip" `find "${DIRNAME}"`
31rm -Rf "${INSTALLDIR}"
32
Note: See TracBrowser for help on using the repository browser.