HOWTO
# gimp 2.2.10
# ===========
# Slackware 8.1 and 9.0's 'gimp' packages include version 1.2.3 (9.0 also has
# 1.3.12 in "extra"), 9.1's includes 1.2.5 (with 1.3.20 in "extra"),
# 10.0's includes 2.0.2, 10.1's includes 2.2.3, and 10.2's includes 2.2.8
# gimp 2.x can be installed at the same time as gimp 1.2.x, so if you have
# an old version installed and you still need/want it for some reason, you
# can leave it. If you run Slackware <= 9.1 and want to keep 1.x, do not
# run 'removepkg gimp' below. This version will be installed (the binary) as
# 'gimp-2.0'. A 'gimp' symlink will point to that. To run the older version,
# run 'gimp-1.2'. Be aware that gimp 2.0.x and 2.2.x must be installed to
# different prefixes to co-exist.
# Prerequisites (some optional, without them you'll loose related features):
#
gawk
#
sed
#
grep
#
perl
#
gettext
#
pkg-config
#
glib >= 2.4.5
#
XFree86 or
X.org
#
gtk+ >= 2.4.4
#
libart-2.0
#
fontconfig >= 2.2.0 (part of X)
#
pango's pangoft2 >= 1.4.0
#
freetype
#
libtiff (optional)
#
libjpeg (optional)
#
zlib (optional)
#
libpng (optional)
#
libmng (optional)
#
libexif (optional)
#
aalib
#
libgtkhtml-2.0 >= 2.0.0
#
librsvg-2.0 >= 2.2.0 (optional)
#
gimp-print >= 4.2.0 (optional)
#
libwmf >= 0.2.8 (optional)
#
lcms
#
alsa >= 1.0.0
#
sendmail
#
libxml2's xmllint
#
libxslt's xsltproc
cd
test -f installed/gimp-2.2.10.tar.bz2 && mv installed/gimp-2.2.10.tar.bz2 .
test ! -f gimp-2.2.10.tar.bz2 &&
wget ftp://ftp.gimp.org/pub/gimp/v2.2/gimp-2.2.10.tar.bz2
# Verify tarball w/
md5sum:
echo "aa29506ed2272af02941a7a601a7a097 gimp-2.2.10.tar.bz2" | md5sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gimp-*" -exec rm -r {} \;
tar xjvf ~/gimp-2.2.10.tar.bz2
cd gimp-2.2.10
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --disable-static
# You may need to add this symlink to get it to build:
su -c "ln -sf /usr/lib/libgsf-1.so /usr/lib/libgsf-1.so.1"
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg gimp
make install
find /usr/share/locale -type f -name gimp20.mo -exec rm {} \;
find /usr/share/locale -type f -name gimp20-libgimp.mo -exec rm {} \;
find /usr/share/locale -type f -name gimp20-std-plug-ins.mo -exec rm {} \;
find /usr/share/locale -type f -name gimp20-script-fu.mo -exec rm {} \;
chown -R $USER .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/gimp-*.tar.*
mv gimp-2.2.10.tar.bz2 installed/
# /usr/share/gimp/2.0/images/wilber-icon.png makes for a good desktop icon
# gimp-help 2-0.9
# ===============
# Below I zap all but the english (en) help files, skip that part if you
# gimp help in any of the following: cs, de, fr, it, nl, sv, zh_CN
cd
test -f installed/gimp-help-2-0.9.tar.gz &&
mv installed/gimp-help-2-0.9.tar.gz .
test ! -f gimp-help-2-0.9.tar.gz &&
wget ftp://ftp.gimp.org/pub/gimp/help/testing/gimp-help-2-0.9.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gimp-help-*" -exec rm -r {} \;
tar xzvf ~/gimp-help-2-0.9.tar.gz
cd gimp-help-2-0.9
test $UID = 0 && chown -R root:root .
./configure
make
# Become root to install it
su
test -d /usr/share/gimp/2.0/help && rm -r /usr/share/gimp/2.0/help
make install
for lang in cs de fr it nl sv zh_CN; do
test -d /usr/share/gimp/2.0/help/${lang} &&
rm -r /usr/share/gimp/2.0/help/${lang}
done
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/gimp-help-*.tar.*
mv gimp-help-2-0.9.tar.gz installed/
# gimp-gap 2.2.0 (GIMP Animation Package)
# ==============
# FYI, plugins written for The Gimp 2.0.x _will_ work with 2.2.x
# This will give you the Video menu, giving The Gimp animation creation and
# editing abilities
# Prerequisites:
# gimp >= 2.2.0
# For the included
ffmpeg:
#
a52
#
SDL
#
Imlib2
# freetype
# For the included
libmpeg3:
#
xvid
#
wavplay
cd
test -f installed/gimp-gap-2.2.0.tar.bz2 &&
mv installed/gimp-gap-2.2.0.tar.bz2 .
test ! -f gimp-gap-2.2.0.tar.bz2 &&
wget ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.2/gap/gimp-gap-2.2.0.tar.bz2
# Verify tarball w/
md5sum:
echo "6be7284c9bf166d4ab86292bb38fd611 gimp-gap-2.2.0.tar.bz2" | md5sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gimp-gap-*" -exec rm -r {} \;
tar xjvf ~/gimp-gap-2.2.0.tar.bz2
cd gimp-gap-2.2.0
test $UID = 0 && chown -R root:root .
# Apply this patch to the included copy of libmpeg3 to allow building
# with recent versions of gcc:
( cd extern_libs
test -d ./libmpeg3 && rm -r ./libmpeg3
tar xzvf ./libmpeg3.tar.gz
cd libmpeg3
wget -nc http://englanders.cc/pub/linux/patches/notmine/libmpeg3-1.5.4-gcc_fixes-1.patch &&
patch -p1 < libmpeg3-1.5.4-gcc_fixes-1.patch )
# To use the source of another copy of ffmpeg instead of the included copy:
# --with-ffmpegsrcdir=$HOME/src/ffmpeg
# To use the source of another copy of libmpeg3 instead of the included
# copy:
# --with-libmpeg3srcdir=$HOME/src/libmpeg3-1.5.4
# (the bundled copy is version 1.5.4, newer releases may not work)
# To use an already installed libmpeg3:
# --with-preinstalled-libmpeg3incdir=$HOME/src/libmpeg3-1.5.4
# --with-preinstalled-libmpeg3=/usr/local/lib/libmpeg3.a
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
# Become root to install it
su
make install
find /usr/share/locale -type f -name gimp20-gap.mo -exec rm {} \;
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/gimp-gap-*.tar.*
mv gimp-gap-2.2.0.tar.bz2 installed/
#
gimp-freetype 0.6
# =================
# Prerequisites:
# gimp >= 2.0.0
# freetype
cd
test -f installed/gimp-freetype-0.6.tar.gz &&
mv installed/gimp-freetype-0.6.tar.gz .
test ! -f gimp-freetype-0.6.tar.gz &&
wget ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.0/freetype/gimp-freetype-0.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gimp-freetype-*" -exec rm -r {} \;
tar xzvf ~/gimp-freetype-0.6.tar.gz
cd gimp-freetype-0.6
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
# Become root to install it
su
make install
find /usr/share/locale -type f -name gimp20-freetype.mo -exec rm {} \;
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/gimp-freetype-*.tar.*
mv gimp-freetype-0.6.tar.gz installed/
# For lots of plug-ins, check out
http://registry.gimp.org/