# 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.
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
# /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
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
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 {} \;