source: libcaca/trunk/build-dos @ 3600

Last change on this file since 3600 was 2299, checked in by Sam Hocevar, 11 years ago
  • Remove #include <stdint.h> etc. from "common.h". Instead, make sure that <cucul.h> will provide the C99 types, even if libcaca has been installed.
  • Rename what's left of "common.h" to "stubs.h".
  • Remove all references to erroneous <inttypes.h> from source files.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#! /bin/sh
2
3##  DOS cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
4##  $Id: build-dos 2299 2008-04-19 12:42:50Z sam $
5
6set -x
7set -e
8
9# Clean up our working directory
10SRCDIR="`pwd`"
11DIRNAME="libcaca-dos-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`"
12INSTALLDIR="`pwd`/${DIRNAME}"
13BUILDDIR="${INSTALLDIR}/build"
14rm -Rf "${INSTALLDIR}"
15rm -f "${INSTALLDIR}.zip"
16mkdir "${INSTALLDIR}"
17mkdir "${BUILDDIR}"
18
19cd "${BUILDDIR}"
20# Build for DOS
21"${SRCDIR}/configure" --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx
22make pkglibdir=/lib pkgdatadir=/data
23# Install into our private directory
24make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib pkgdatadir=/
25cd "${SRCDIR}"
26rm -Rf "${BUILDDIR}"
27
28i386-pc-msdosdjgpp-strip "${INSTALLDIR}/"*.exe
29
30mkdir "${INSTALLDIR}/doc"
31for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do
32   sed -e 's/$/^M/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt"
33done
34
35rm -Rf "${INSTALLDIR}/share"
36rm -Rf "${INSTALLDIR}/man"
37rm -Rf "${INSTALLDIR}/include"
38rm -Rf "${INSTALLDIR}/pkg-config"
39rm -f "${INSTALLDIR}/caca-config"
40rm -f "${INSTALLDIR}/"*.a
41rm -f "${INSTALLDIR}/"*.la
42
43# Pack the directory
44zip "${DIRNAME}.zip" `find "${DIRNAME}"`
45rm -Rf "${INSTALLDIR}"
46
Note: See TracBrowser for help on using the repository browser.