libcaca - Graphics library that outputs text instead of pixels ChangeLog

HOWTO


# libcaca
# =======
# The latest stable release is 0.9 but the site says "Warning: stable
# releases of libcaca are terribly outdated".  I also include the latest
# beta version below.

# Slackware 10.0, 10.1, 10.2, and 11.0's 'libcaca' packages include version
# 0.9, 12.0's includes 0.99.beta11

# If you ever want to uninstall libcaca, or clean up files from an old
# version before installing a new one, skip down to the bottom for
# instructions


# libcaca 0.9
# ===========
# Prerequisites:
# S-Lang
# XFree86 or X.org
# ncurses
# imlib2
# doxygen (to skip it, pass --disable-doc)

cd
test -f installed/libcaca-0.9.tar.bz2 &&
mv installed/libcaca-0.9.tar.bz2 .
test ! -f libcaca-0.9.tar.bz2 &&
wget http://libcaca.zoy.org/files/libcaca-0.9.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libcaca-*" -exec rm -r {} \;
tar xjvf ~/libcaca-0.9.tar.bz2
cd libcaca-0.9
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

# Remove old library files, install it
( cd /usr/local/lib ; rm -f libcaca.* libcaca_pic.* )
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libcaca-*.tar.*
mv libcaca-0.9.tar.bz2 installed/


# libcaca 0.99.beta13b
# ====================
# Prerequisites:
# pkg-config
# S-Lang
# XFree86 or X.org
# ncurses
# imlib2
# doxygen, TeX (to skip: --disable-doc)

cd
test -f installed/libcaca-0.99.beta13b.tar.gz &&
mv installed/libcaca-0.99.beta13b.tar.gz .
test ! -f libcaca-0.99.beta13b.tar.gz &&
wget http://libcaca.zoy.org/files/libcaca-0.99.beta13b.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libcaca-*" -exec rm -r {} \;
tar xzvf ~/libcaca-0.99.beta13b.tar.gz
cd libcaca-0.99.beta13b
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libcaca

# Remove old library files, install it
( cd /usr/local/lib ; rm -f libcaca.* libcaca_pic.* libcucul.* )
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libcaca-*.tar.*
mv libcaca-0.99.beta13b.tar.gz installed/


# If you ever want to uninstall libcaca, this should do it:
cd
su
test -d src/libcaca-* && ( cd src/libcaca-* ; make uninstall )
test -d /usr/lib/ruby/site_ruby &&
( find /usr/lib/ruby/site_ruby -type f -name "caca.*" -exec rm {} \;
   find /usr/lib/ruby/site_ruby -type f -name "cucul.*" -exec rm {} \;
   find /usr/lib/ruby/site_ruby -type f -name "caca.rb" -exec rm {} \; )
( cd /usr/local/bin
  rm -f caca-config cacademo cacafire cacaplay cacaserver cacaview img2txt )
( cd /usr/local/include
  rm -f caca++.h caca.h caca0.h cucul++.h cucul.h )
( cd /usr/local/lib ; rm -f libcaca.* libcaca++.* libcucul.* libcucul++.* )
test -d /usr/local/lib/caca-sharp && rm -r /usr/local/lib/caca-sharp
test -d /usr/local/lib/cucul-sharp && rm -r /usr/local/lib/cucul-sharp
( cd /usr/local/lib/pkgconfig ; rm -f caca.pc cucul.pc )
test -d /usr/local/doc/libcucul-dev && rm -r /usr/local/doc/libcucul-dev
( cd /usr/local/man/man1 ; rm -f caca-config.1 cacafire.1 cacaplay.1
cacaserver.1 cacaview.1 img2txt.1 )
test -d /usr/local/share/doc/libcucul-dev &&
rm -r /usr/local/share/doc/libcucul-dev
test -d /usr/local/share/libcaca && rm -r /usr/local/share/libcaca
( cd /usr/local/share/man/man1 ; rm -f caca-config.1 cacafire.1 cacaview.1 cacaserver.1 img2txt.1 cacaplay.1 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libcaca-*" -exec rm -r {} \;
rm -f ~/installed/libcaca-*.tar.*

List of HOWTOs

Last updated: 2020-04-29 10:24pm EDT(-0400)
Copyright © 2001-2020 Jason Englander. All Rights reserved.
[HTML5]