potrace - Transforms a bitmap into a smooth, scalable image ChangeLog

HOWTO


# Potrace 1.16 (2019-09-17)
# ============
# Prerequisites:
# zlib

# Get the source tarball
cd
test -f installed/potrace-1.16.tar.gz &&
mv -f installed/potrace-1.16.tar.gz .
test ! -f potrace-1.16.tar.gz &&
wget https://downloads.sourceforge.net/potrace/potrace-1.16.tar.gz

# Verify tarball w/ sha1sum:
# (https://potrace.sourceforge.net/download/SHA1SUMS)
echo "256b4fb858c66bc38117afde7c722016d2e265f3  potrace-1.16.tar.\
gz" | sha1sum -c

# Verify tarball w/ sha256sum:
# [ this comes from me, only proves yours is the same as mine ]
echo "be8248a17dedd6ccbaab2fcc45835bb0502d062e40fbded3bc56028ce5eb7a\
cc  potrace-1.16.tar.gz" | sha256sum -c

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

# Read ./README or
# https://potrace.sourceforge.net/README
# If upgrading, read ./NEWS and/or ./ChangeLog

# It will use clisp by default, so I add CC=gcc to force GCC
# (I have clisp also, but it didn't go well)

# You only need the library and include file if other software requires it
# Leave off --with-libpotrace if you do not want to install them

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
CC=gcc ./configure --with-libpotrace --disable-static \
--docdir=/usr/local/doc/potrace \
--libdir=/usr/local/lib64 \
--mandir=/usr/local/man

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
CC=gcc ./configure --with-libpotrace --disable-static \
--docdir=/usr/local/doc/potrace \
--mandir=/usr/local/man

# Build it
make

# Become root to install it
su

# Install it
make install
ldconfig

# See 'man potrace' and 'man bitmap' for usage info

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

# Become your non-root user again
exit

# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/potrace-*.tar.*
mv potrace-1.16.tar.gz installed/


# If you ever want to uninstall Potrace, this should do it:
cd
su
test -d src/potrace-* && ( cd src/potrace-* ; make uninstall )
( cd /usr/local/bin ; rm -f potrace mkbitmap )
test -d /usr/local/doc/potrace && rm -r /usr/local/doc/potrace
rm -f /usr/local/include/potracelib.h
rm -f /usr/local/lib/libpotrace.*
test -d /usr/local/lib64 &&
( cd /usr/local/lib64 ; rm -f libpotrace.* && ldconfig )
( cd /usr/local/man/man1 ; rm -f potrace.1 mkbitmap.1 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "potrace-*" -exec rm -r {} \;
rm -f ~/installed/potrace-*.tar.*

List of HOWTOs

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