Linux HOWTOs

About | Home | Search

HOWTO: libwmf
Description: Library for converting WMF (Window$ Metafile Format) files
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

# libwmf
# ==============
# Slackware 10.0 and 10.1's 'libwmf' and 'libwmf-docs' packages include
# version, 10.2's includes

# Prerequisites:
# gawk
# sed
# grep
# XFree86 or
# expat
# freetype
# zlib
# libpng
# libjpeg
# GD
# pkg-config
# glib's gdk-pixbuf (for the gdk-pixbuf plug-in)

# This used to be covered in the wv howto, move files from ~/installed/wv/
# into the right place, remove source directories in there:
mv ~/installed/wv/libwmf-*.tar.* ~/installed/
find ~/src/wv -maxdepth 1 -type d -name "wv-*" -exec rm -r {} \;

test -f installed/libwmf- &&
 mv installed/libwmf- .
test ! -f libwmf- &&
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libwmf-*" -exec rm -r {} \;
tar xzvf ~/libwmf-
cd libwmf-
test $UID = 0 && chown -R root:root .

# Become root to install it

test -x /sbin/removepkg && /sbin/removepkg libwmf
( cd /usr/local/lib ; rm -f libwmf.* libwmf-*.so.* libwmflite.* \
  libwmflite-*.so.* )
make install
chown -R $USER .

# Become yourself again

rm -f installed/libwmf-*.tar.gz
mv libwmf- installed/

# If you ever want to uninstall libwmv, cd into the source directory, run
# 'make uninstall', remove the source directory, then remove the tarball

Back to the list

Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>