Linux HOWTOs

About | Home | Search


HOWTO: libmng
Description: Multiple-image Network Graphics; the animation version of PNG
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


# libmng 1.0.10
# =============
# Slackware 9.1, 10.0, 10.1, 10.2, and 11.0's 'libmng' packages include
# version 1.0.5, 12.0's includes version 1.0.9

# Prerequisites:
# autoconf
# automake
# libtool
# zlib
# libjpeg
# lcms

cd
test -f installed/libmng-1.0.10.tar.gz && mv installed/libmng-1.0.10.tar.gz .
test ! -f libmng-1.0.10.tar.gz &&
 wget http://downloads.sf.net/libmng/libmng-1.0.10.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmng-*" -exec rm -r {} \;
tar xzvf ~/libmng-1.0.10.tar.gz
cd libmng-1.0.10
test $UID = 0 && chown -R root:root .
cp makefiles/configure.in makefiles/Makefile.am .
autoreconf -f -i
./configure --prefix=/usr --sysconfdir=/etc
make

# Become root to install it
su

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

# Remove old library files, install it
rm -f /usr/lib/libmng.*
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/libmng-*.tar.*
mv libmng-1.0.10.tar.gz installed/


# If you ever want to uninstall libmng, this should do it:
cd
su
test -d src/libmng-* && ( cd src/libmng-* ; make uninstall )
( cd /usr/include ; rm -f libmng.h libmng_conf.h libmng_types.h )
( cd /usr/man/man5 ; rm -f jng.5 mng.5 )
rm -f /usr/lib/libmng.* /usr/man/man3/libmng.3
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libmng-*" -exec rm -r {} \;
rm -f ~/installed/libmng-*.tar.*

Back to the list


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