Changeset 202


Ignore:
Timestamp:
Nov 20, 2003, 5:54:04 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • debian/control: + Changed section to libs/libdevel instead of games/games. + Changed package name to libcaca-dev.
  • debian/rules: + Use debian/compat instead of DH_COMPAT. + Install README, BUGS and TODO into /usr/share/doc.
  • caca-config.in: + First version of the config script.
  • configure.ac src/Makefile.am: + Build a static PIC library as well.
  • README TODO: + Various updates.
Location:
libcaca/trunk
Files:
2 added
12 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk

    • Property svn:ignore
      •  

        old new  
        1212*-stamp
        1313INSTALL
         14caca-config
  • libcaca/trunk/Makefile.am

    r190 r202  
    66DIST_SUBDIRS = $(SUBDIRS) autotools debian
    77
    8 EXTRA_DIST = BUGS bootstrap
     8EXTRA_DIST = BUGS bootstrap caca-config.in
    99AUTOMAKE_OPTIONS = foreign dist-bzip2
    1010
     11bin_SCRIPTS = caca-config
     12
  • libcaca/trunk/README

    r189 r202  
    1313     ./configure --enable-conio --host=i386-pc-msdosdjgpp
    1414
     15
     16Using libcaca
     17
     18   o  Compiling a libcaca program is fairly simple:
     19
     20      gcc -c foobar.c -o foobar.o `caca-config --cflags`
     21      gcc foobar.o -o foobar `caca-config --libs`
     22
     23   o  If you are writing a shared object that uses libcaca, either a
     24      dynamically loadable plug-in or a shared library, you should use
     25      the `--plugin-libs' flag for libcaca:
     26
     27      gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
     28      gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`
     29
     30
     31Binary packages
     32
     33   o  As the API is not stable yet, everyone should statically link libcaca
     34      with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
     35      OF LIBCACA.
     36
  • libcaca/trunk/TODO

    r201 r202  
    88   o  Better keyboard driver in an X terminal, see
    99      http://groups.yahoo.com/group/zepp/message/381
     10
     11   o  Write a window resize handler.
    1012
    1113   o  DONE 12 Nov 2003: Port to conio.h
     
    2022   o  Fix the thin ellipse rendering
    2123
     24
     25Misc
     26
     27   o  Draw a nicer logo sprite
     28
     29
     30Documentation
     31
     32   o  Everything is still to do.
     33
  • libcaca/trunk/configure.ac

    r190 r202  
    5959CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
    6060
     61# Build the PIC library?
     62case "${target_os}" in
     63  *mingw32* | *cygwin*)
     64    NEED_PIC=false
     65    ;;
     66  *)
     67    NEED_PIC=:
     68    ;;
     69esac
     70
     71AM_CONDITIONAL(NEED_PIC, ${NEED_PIC})
     72
    6173AC_OUTPUT([
    6274  Makefile
     
    6577  autotools/Makefile
    6678  debian/Makefile
     79  caca-config
     80],[
     81  chmod 0755 caca-config
    6782])
    6883
  • libcaca/trunk/debian

    • Property svn:ignore
      •  

        old new  
        33*.debhelper
        44*.substvars
        5 ttyvaders
         5libcaca-dev
         6files
  • libcaca/trunk/debian/control

    r189 r202  
    11Source: libcaca
    2 Section: games
     2Section: libs
    33Priority: optional
    44Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
    5 Build-Depends: debhelper (>= 2.2.0), slang1-dev
     5Build-Depends: debhelper (>= 4.0), slang1-dev
    66Standards-Version: 3.6.1.0
    77
    8 Package: libcaca
    9 Section: games
     8Package: libcaca-dev
     9Section: libdevel
    1010Architecture: any
    1111Depends: ${shlibs:Depends}
    1212Description: text mode graphics library
    13  libcaca is the Color ANSI Console Art library.
     13 libcaca is the Colour AsCii Art library.
    1414 .
    15  It rules.
     15 This package contains the header files and static libraries needed to
     16 compile applications or shared objects that use libcaca.
  • libcaca/trunk/debian/rules

    r189 r202  
    22
    33#export DH_VERBOSE=1
    4 export DH_COMPAT=3
    54export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    65export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
     
    3938        dh_clean -k
    4039        dh_installdirs
    41         DESTDIR=`pwd`/debian/libcaca/ $(MAKE) install prefix=/usr
     40        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
    4241
    4342# Build architecture-independent files here.
     
    5150        dh_testroot
    5251#       dh_installdebconf       
    53         dh_installdocs
     52        dh_installdocs README BUGS TODO
    5453#       dh_installexamples
    5554        dh_installmenu
  • libcaca/trunk/examples

    • Property svn:ignore
      •  

        old new  
        33.libs
        44.deps
        5 demo
        6 demo.exe
        7 spritedit
        8 spritedit.exe
         5caca-demo
         6caca-demo.exe
         7caca-spritedit
         8caca-spritedit.exe
  • libcaca/trunk/examples/Makefile.am

    r198 r202  
    44
    55AM_CPPFLAGS = -I$(top_srcdir)/src
     6
     7pkgdata_DATA = caca.txt
    68
    79EXTRA_DIST = caca.txt
     
    1416endif
    1517
    16 noinst_PROGRAMS = demo spritedit
     18bin_PROGRAMS = caca-demo caca-spritedit
    1719
    18 demo_SOURCES = demo.c
    19 demo_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
    20 demo_CFLAGS = `pkg-config --cflags gtk+-2.0`
    21 demo_LDFLAGS = `pkg-config --libs gtk+-2.0`
     20caca_demo_SOURCES = demo.c
     21caca_demo_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
     22caca_demo_CPPFLAGS = -DDATADIR=\"$(pkgdatadir)\"
     23caca_demo_CFLAGS = `pkg-config --cflags gtk+-2.0`
     24caca_demo_LDFLAGS = `pkg-config --libs gtk+-2.0`
    2225
    23 spritedit_SOURCES = spritedit.c
    24 spritedit_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
     26caca_spritedit_SOURCES = spritedit.c
     27caca_spritedit_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
    2528
  • libcaca/trunk/examples/demo.c

    r199 r202  
    6868
    6969    /* Initialize data */
    70     sprite = caca_load_sprite("caca.txt");
     70    sprite = caca_load_sprite(DATADIR "/caca.txt");
     71    if(!sprite)
     72        sprite = caca_load_sprite("caca.txt");
    7173    if(!sprite)
    7274        sprite = caca_load_sprite("examples/caca.txt");
  • libcaca/trunk/src/Makefile.am

    r198 r202  
    33###############################################################################
    44
    5 lib_LIBRARIES = libcaca.a
     5include_HEADERS = caca.h
     6
     7lib_LIBRARIES = libcaca.a $(libcaca_pic_a)
    68libcaca_a_SOURCES = \
    79        caca.c \
     
    1921        $(NULL)
    2022
    21 include_HEADERS = caca.h
     23if NEED_PIC
     24libcaca_pic_a = libcaca_pic.a
     25endif
     26libcaca_pic_a_SOURCES = $(libcaca_a_SOURCES)
     27libcaca_pic_a_CPPFLAGS = -fPIC
    2228
Note: See TracChangeset for help on using the changeset viewer.