liblasi - Unicode Postscript printing engine project ChangeLog

HOWTO


# libLASi 1.1.0
# =============
# Prerequisites:
# CMake
# pkg-config
# Pango
# Freetype
# GLib
# Doxygen

cd
mkdir -p -m 0700 src
test -f installed/libLASi-1.1.0.tar.gz &&
mv installed/libLASi-1.1.0.tar.gz .
test ! -f libLASi-1.1.0.tar.gz &&
wget http://downloads.sf.net/lasi/libLASi-1.1.0.tar.gz

# Verify tarball w/ md5sum:
echo "f18091569ed4fface75453b097c67459  libLASi-1.1.0.tar.gz" | md5sum -c

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

# Put everything in a build directory
mkdir build_dir
cd build_dir

# Configure it using CMake:
cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_INFODIR=/usr/local/info \
-DCMAKE_INSTALL_MANDIR=/usr/local/man ..

# Build it
make

# Become root to install it
su

# Slackware keeps local documentation in /usr/local/doc.  Many
# packages will try to install it in to /usr/local/share/doc.
# I would suggest making /usr/local/share/doc a symlink to
# /usr/local/doc (or vice-versa) so you don't have to wonder which
# one it went in to.  You could use -DCMAKE_INSTALL_DATADIR=/usr/local,
# but then what used to be /usr/local/share/lasi-1.1.0 will become
# /usr/local/lasi-1.1.0, so I don't do that here.
#
# If you don't want to go with the symlink method, do this after
# 'make install':
test -d /usr/local/share/doc/liblasi-1.1.0 &&
mv -f /usr/local/share/doc/liblasi-1.1.0 /usr/local/doc/
rmdir /usr/local/share/doc

# Install libLASi
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/libLASi-*.tar.*
mv libLASi-1.1.0.tar.gz installed/


# If you ever want to uninstall libLASi, this should do it:
cd
su
test -d src/libLASi-* && ( cd src/libLASi-* ; make uninstall )
find -maxdepth 1 -type d /usr/local/doc -type d -name "libLASi-*" \
-exec rm -r {} \;
find -maxdepth 1 -type d /usr/local/share -type d -name "lasi*" \
-exec rm -r {} \;
find -maxdepth 1 -type d /usr/local/share/doc -type d -name "libLASi-*" \
-exec rm -r {} \;
rm -f /usr/local/lib/libLASi.so* /usr/local/lib/pkgconfig/lasi.pc \
/usr/local/include/LASi.h
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libLASi-*" -exec rm -r {} \;
rm -f ~/installed/libLASi-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2009-09-25 1:00pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]