Last change
on this file since 2900 was
2299,
checked in by Sam Hocevar, 15 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 | |
---|
6 | set -x |
---|
7 | set -e |
---|
8 | |
---|
9 | # Clean up our working directory |
---|
10 | SRCDIR="`pwd`" |
---|
11 | DIRNAME="libcaca-dos-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`" |
---|
12 | INSTALLDIR="`pwd`/${DIRNAME}" |
---|
13 | BUILDDIR="${INSTALLDIR}/build" |
---|
14 | rm -Rf "${INSTALLDIR}" |
---|
15 | rm -f "${INSTALLDIR}.zip" |
---|
16 | mkdir "${INSTALLDIR}" |
---|
17 | mkdir "${BUILDDIR}" |
---|
18 | |
---|
19 | cd "${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 |
---|
22 | make pkglibdir=/lib pkgdatadir=/data |
---|
23 | # Install into our private directory |
---|
24 | make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib pkgdatadir=/ |
---|
25 | cd "${SRCDIR}" |
---|
26 | rm -Rf "${BUILDDIR}" |
---|
27 | |
---|
28 | i386-pc-msdosdjgpp-strip "${INSTALLDIR}/"*.exe |
---|
29 | |
---|
30 | mkdir "${INSTALLDIR}/doc" |
---|
31 | for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do |
---|
32 | sed -e 's/$/^M/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt" |
---|
33 | done |
---|
34 | |
---|
35 | rm -Rf "${INSTALLDIR}/share" |
---|
36 | rm -Rf "${INSTALLDIR}/man" |
---|
37 | rm -Rf "${INSTALLDIR}/include" |
---|
38 | rm -Rf "${INSTALLDIR}/pkg-config" |
---|
39 | rm -f "${INSTALLDIR}/caca-config" |
---|
40 | rm -f "${INSTALLDIR}/"*.a |
---|
41 | rm -f "${INSTALLDIR}/"*.la |
---|
42 | |
---|
43 | # Pack the directory |
---|
44 | zip "${DIRNAME}.zip" `find "${DIRNAME}"` |
---|
45 | rm -Rf "${INSTALLDIR}" |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.