Ignore:
Timestamp:
Mar 7, 2006, 1:39:34 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fixed DOS driver.
  • Added a build-dos script to cross-compile the DOS version using djgpp.
File:
1 copied

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/build-dos

    r537 r543  
    11#! /bin/sh
    22
    3 ##  Win32 cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
     3##  DOS cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org>
    44##  $Id$
    55
     
    88
    99# Clean up our working directory
    10 DIRNAME="libcaca-win32-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
     10DIRNAME="libcaca-dos-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
    1111DESTDIR="`pwd`/${DIRNAME}"
    1212rm -Rf "${DIRNAME}"
     
    1414mkdir "${DIRNAME}"
    1515
    16 # Build for win32
    17 ./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
     16# Build for DOS
     17./configure --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
    1818make pkglibdir=/lib pkgdatadir=/data
    1919
    2020# Install into our private directory
    2121make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
    22 i586-mingw32msvc-strip "${DESTDIR}/"*.exe
     22i386-pc-msdosdjgpp-strip "${DESTDIR}/"*.exe
    2323rm -Rf "${DESTDIR}/man"
    2424rm -Rf "${DESTDIR}/include"
Note: See TracChangeset for help on using the changeset viewer.