Changeset 543


Ignore:
Timestamp:
Mar 7, 2006, 1:39:34 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fixed DOS driver.
  • Added a build-dos script to cross-compile the DOS version using djgpp.
Location:
libcaca/trunk
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/Makefile.am

    r537 r543  
    44DIST_SUBDIRS = $(SUBDIRS) autotools debian msvc
    55
    6 EXTRA_DIST = NOTES COPYING.LGPL bootstrap build-win32 caca-config.in libcaca.spec
     6EXTRA_DIST = NOTES COPYING.LGPL bootstrap build-dos build-win32 caca-config.in libcaca.spec
    77AUTOMAKE_OPTIONS = dist-bzip2
    88
  • 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"
  • libcaca/trunk/caca/caca_internals.h

    r541 r543  
    2323#if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
    2424#   include <inttypes.h>
    25 #else
     25#elif !defined(CUSTOM_INTTYPES)
     26#   define CUSTOM_INTTYPES
    2627typedef unsigned char uint8_t;
    2728typedef unsigned short uint16_t;
     
    2930#endif
    3031
     32#if defined(USE_CONIO)
     33#   include <conio.h>
     34#endif
    3135#if defined(USE_GL)
    3236#   include <GL/glut.h>
  • libcaca/trunk/caca/driver_conio.c

    r540 r543  
    7070    textcolor((enum COLORS)WHITE);
    7171    textbackground((enum COLORS)BLACK);
    72     gotoxy(_caca_width, _caca_height);
     72    gotoxy(kk->qq->width, kk->qq->height);
    7373    cputs("\r\n");
    7474    _setcursortype(_NORMALCURSOR);
  • libcaca/trunk/cucul/cucul_internals.h

    r540 r543  
    2323#if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
    2424#   include <inttypes.h>
    25 #else
     25#elif !defined(CUSTOM_INTTYPES)
     26#   define CUSTOM_INTTYPES
    2627typedef unsigned char uint8_t;
    2728typedef unsigned char uint16_t;
Note: See TracChangeset for help on using the changeset viewer.