source: libcaca/trunk/build-dos @ 543

Last change on this file since 543 was 543, checked in by Sam Hocevar, 16 years ago
  • Fixed DOS driver.
  • Added a build-dos script to cross-compile the DOS version using djgpp.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 892 bytes
RevLine 
[341]1#! /bin/sh
2
[543]3##  DOS cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
[341]4##  $Id: build-dos 543 2006-03-07 12:39:34Z sam $
5
6set -x
7set -e
8
9# Clean up our working directory
[543]10DIRNAME="libcaca-dos-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
[341]11DESTDIR="`pwd`/${DIRNAME}"
12rm -Rf "${DIRNAME}"
13rm -f "${DIRNAME}.zip"
14mkdir "${DIRNAME}"
15
[543]16# Build for DOS
17./configure --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
[341]18make pkglibdir=/lib pkgdatadir=/data
19
20# Install into our private directory
21make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
[543]22i386-pc-msdosdjgpp-strip "${DESTDIR}/"*.exe
[341]23rm -Rf "${DESTDIR}/man"
24rm -Rf "${DESTDIR}/include"
25rm -f "${DESTDIR}/caca-config"
26rm -f "${DESTDIR}/"*.a
[346]27mv "${DESTDIR}/share/doc/libcaca-dev/" "${DESTDIR}/doc"
[341]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.