Linux HOWTOs

About | Home | Search


HOWTO: libart
Description: High-preformance 2D graphics library
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# libart 2.3.17
# =============
# Slackware 9.0's 'libart_gpl' package includes 2.3.11, 9.1, 10.0, and 10.1's
# include 2.3.16, and 10.2's includes 2.3.17

# Prerequisites:
# sed
# grep

cd
test -f installed/libart_lgpl-2.3.17.tar.bz2 &&
 mv installed/libart_lgpl-2.3.17.tar.bz2 .
test ! -f libart_lgpl-2.3.17.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/\
libart_lgpl-2.3.17.tar.bz2

# Verify tarball w/ md5sum:
echo "dfca42529393c8a8f59dc4dc10675a46  libart_lgpl-2.3.17.tar.bz2" | \
 md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libart_lgpl-*" -exec rm -r {} \;
tar xjvf ~/libart_lgpl-2.3.17.tar.bz2
cd libart_lgpl-2.3.17
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make

# Become root to install it
su

removepkg libart_lgpl
find /usr/doc -maxdepth 1 -type d -name "libart_lgpl-*" -exec rm -r {} \;
rm -f /usr/lib/libart_lgpl_2.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libart_lgpl-*.tar.*
mv libart_lgpl-2.3.17.tar.bz2 installed/


# If you ever want to uninstall libart_lgpl, this should do it:
cd
su
test -d src/libart_lgpl-* && ( cd src/libart_lgpl-* ; make uninstall )
rm -f /usr/bin/libart2-config /usr/lib/libart_lgpl_2.* \
 /usr/lib/pkgconfig/libart-2.0.pc
test -d /usr/include/libart-2.0 && rm -r /usr/include/libart-2.0
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libart_lgpl-*" -exec rm -r {} \;
rm -f ~/installed/libart_lgpl-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>