+}
+
+install_atk() {
+ if [ ! -f atk-$ATK_VERSION-done ] ; then
+ echo "Downloading, building, and installing ATK:"
+ atk_dir=`expr $ATK_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'`
+ ATK_MAJOR_VERSION="`expr $ATK_VERSION : '\([0-9][0-9]*\).*'`"
+ ATK_MINOR_VERSION="`expr $ATK_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\).*'`"
+ ATK_DOTDOT_VERSION="`expr $ATK_VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*'`"
+ if [[ $ATK_MAJOR_VERSION -gt 2 ||
+ ($ATK_MAJOR_VERSION -eq 2 && $ATK_MINOR_VERSION -gt 0) ||
+ ($ATK_MANOR_VERSION -eq 2 && $ATK_MINOR_VERSION -eq 0 && $ATK_DOTDOT_VERSION -ge 1) ]]
+ then
+ #
+ # Starting with ATK 2.0.1, xz-compressed tarballs are available.
+ #
+ [ -f atk-$ATK_VERSION.tar.xz ] || curl -O http://ftp.gnome.org/pub/gnome/sources/atk/$atk_dir/atk-$ATK_VERSION.tar.xz || exit 1
+ xzcat atk-$ATK_VERSION.tar.xz | tar xf - || exit 1
+ else
+ [ -f atk-$ATK_VERSION.tar.bz2 ] || curl -O http://ftp.gnome.org/pub/gnome/sources/atk/$atk_dir/atk-$ATK_VERSION.tar.bz2 || exit 1
+ bzcat atk-$ATK_VERSION.tar.bz2 | tar xf - || exit 1
+ fi
+ cd atk-$ATK_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch atk-$ATK_VERSION-done
+ fi
+}
+
+uninstall_atk() {
+ if [ ! -z "$installed_atk_version" ] ; then
+ #
+ # GTK+ depends on this, so uninstall it.
+ #
+ uninstall_gtk "$@"
+
+ echo "Uninstalling ATK:"
+ cd atk-$installed_atk_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm atk-$installed_atk_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf atk-$installed_atk_version
+ rm -rf atk-$installed_atk_version.tar.xz atk-$installed_atk_version.tar.bz2
+ fi
+
+ installed_atk_version=""
+ fi
+}
+
+install_pango() {
+ if [ ! -f pango-$PANGO_VERSION-done ] ; then
+ echo "Downloading, building, and installing Pango:"
+ pango_dir=`expr $PANGO_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'`
+ PANGO_MAJOR_VERSION="`expr $PANGO_VERSION : '\([0-9][0-9]*\).*'`"
+ PANGO_MINOR_VERSION="`expr $PANGO_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\).*'`"
+ if [[ $PANGO_MAJOR_VERSION -gt 1 ||
+ $PANGO_MINOR_VERSION -ge 29 ]]
+ then
+ #
+ # Starting with Pango 1.29, the tarballs are compressed with
+ # xz rather than bzip2.
+ #
+ [ -f pango-$PANGO_VERSION.tar.xz ] || curl -L -O http://ftp.gnome.org/pub/gnome/sources/pango/$pango_dir/pango-$PANGO_VERSION.tar.xz || exit 1
+ xzcat pango-$PANGO_VERSION.tar.xz | tar xf - || exit 1
+ else
+ [ -f pango-$PANGO_VERSION.tar.bz2 ] || curl -L -O http://ftp.gnome.org/pub/gnome/sources/pango/$pango_dir/pango-$PANGO_VERSION.tar.bz2 || exit 1
+ bzcat pango-$PANGO_VERSION.tar.bz2 | tar xf - || exit 1
+ fi
+ cd pango-$PANGO_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch pango-$PANGO_VERSION-done
+ fi
+}
+
+uninstall_pango() {
+ if [ ! -z "$installed_pango_version" ] ; then
+ #
+ # GTK+ depends on this, so uninstall it.
+ #
+ uninstall_gtk "$@"
+
+ echo "Uninstalling Pango:"
+ cd pango-$installed_pango_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm pango-$installed_pango_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf pango-$installed_pango_version
+ rm -rf pango-$installed_pango_version.tar.xz pango-$installed_pango_version.tar.bz2
+ fi
+
+ installed_pango_version=""
+ fi
+}
+
+install_gdk_pixbuf() {
+ if [ "$GDK_PIXBUF_VERSION" -a ! -f gdk-pixbuf-$GDK_PIXBUF_VERSION-done ] ; then
+ echo "Downloading, building, and installing gdk-pixbuf:"
+ gdk_pixbuf_dir=`expr $GDK_PIXBUF_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'`
+ [ -f gdk-pixbuf-$GDK_PIXBUF_VERSION.tar.xz ] || curl -L -O http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/$gdk_pixbuf_dir/gdk-pixbuf-$GDK_PIXBUF_VERSION.tar.xz || exit 1
+ xzcat gdk-pixbuf-$GDK_PIXBUF_VERSION.tar.xz | tar xf - || exit 1
+ cd gdk-pixbuf-$GDK_PIXBUF_VERSION
+ #
+ # If we're building using the 10.6 SDK, force the use of libpng12.
+ #
+ # The OS's X11, and corresponding SDK, didn't introduce libpng15,
+ # or pkg-config files, until 10.7, so, for 10.6 have to explicitly
+ # set LIBPNG to override the configure script, and also force the
+ # CFLAGS to look for the header files for libpng12 (note that
+ # -isysroot doesn't affect the arguments to -I, so we need to
+ # include the SDK path explicitly).
+ #
+ if [[ "$sdk_target" = 10.6 ]]
+ then
+ LIBPNG="-L/usr/X11/lib -lpng12" CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS -I$SDKPATH/usr/X11/include/libpng12" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS -I$SDKPATH/usr/X11/include/libpng12" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --without-libtiff --without-libjpeg || exit 1
+ else
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --without-libtiff --without-libjpeg || exit 1
+ fi
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch gdk-pixbuf-$GDK_PIXBUF_VERSION-done
+ fi
+}
+
+uninstall_gdk_pixbuf() {
+ if [ ! -z "$installed_gdk_pixbuf_version" ] ; then
+ #
+ # GTK+ depends on this, so uninstall it.
+ #
+ uninstall_gtk "$@"
+
+ echo "Uninstalling gdk-pixbuf:"
+ cd gdk-pixbuf-$installed_gdk_pixbuf_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm gdk-pixbuf-$installed_gdk_pixbuf_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf gdk-pixbuf-$installed_gdk_pixbuf_version
+ rm -rf gdk-pixbuf-$installed_gdk_pixbuf_version.tar.xz
+ fi
+
+ installed_gdk_pixbuf_version=""
+ fi
+}
+
+install_gtk() {
+ if [ ! -f gtk+-$GTK_VERSION-done ] ; then
+ echo "Downloading, building, and installing GTK+:"
+ gtk_dir=`expr $GTK_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'`
+ if [[ $GTK_MAJOR_VERSION -gt 2 ||
+ $GTK_MINOR_VERSION -gt 24 ||
+ ($GTK_MINOR_VERSION -eq 24 && $GTK_DOTDOT_VERSION -ge 5) ]]
+ then
+ #
+ # Starting with GTK+ 2.24.5, the tarballs are compressed with
+ # xz rather than gzip, in addition to bzip2; use xz, as we've
+ # built and installed it, and as xz compresses better than
+ # bzip2 so the tarballs take less time to download.
+ #
+ [ -f gtk+-$GTK_VERSION.tar.xz ] || curl -L -O http://ftp.gnome.org/pub/gnome/sources/gtk+/$gtk_dir/gtk+-$GTK_VERSION.tar.xz || exit 1
+ xzcat gtk+-$GTK_VERSION.tar.xz | tar xf - || exit 1
+ else
+ [ -f gtk+-$GTK_VERSION.tar.bz2 ] || curl -L -O http://ftp.gnome.org/pub/gnome/sources/gtk+/$gtk_dir/gtk+-$GTK_VERSION.tar.bz2 || exit 1
+ bzcat gtk+-$GTK_VERSION.tar.bz2 | tar xf - || exit 1
+ fi
+ cd gtk+-$GTK_VERSION
+ if [ $DARWIN_MAJOR_VERSION -ge "12" ]
+ then
+ #
+ # GTK+ 2.24.10, at least, doesn't build on Mountain Lion with the
+ # CUPS printing backend - either the CUPS API changed incompatibly
+ # or the backend was depending on non-API implementation details.
+ #
+ # Configure it out, on Mountain Lion and later, for now.
+ # (12 is the Darwin major version number in Mountain Lion.)
+ #
+ # Also, configure out libtiff and libjpeg; configure scripts
+ # just ignore unknown --enable/--disable and --with/--without
+ # options (at least they've always do so up to now).
+ #
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --disable-cups --without-libtiff --without-libjpeg || exit 1
+ else
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --without-libtiff --without-libjpeg || exit 1
+ fi
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch gtk+-$GTK_VERSION-done
+ fi
+}
+
+uninstall_gtk() {
+ if [ ! -z "$installed_gtk_version" ] ; then
+ echo "Uninstalling GTK+:"
+ cd gtk+-$installed_gtk_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm gtk+-$installed_gtk_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf gtk+-$installed_gtk_version
+ rm -rf gtk+-$installed_gtk_version.tar.xz gtk+-$installed_gtk_version.tar.bz2
+ fi
+
+ installed_gtk_version=""
+ fi
+}
+
+install_libsmi() {
+ if [ "$LIBSMI_VERSION" -a ! -f libsmi-$LIBSMI_VERSION-done ] ; then
+ echo "Downloading, building, and installing libsmi:"
+ [ -f libsmi-$LIBSMI_VERSION.tar.gz ] || curl -L -O https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-$LIBSMI_VERSION.tar.gz || exit 1
+ gzcat libsmi-$LIBSMI_VERSION.tar.gz | tar xf - || exit 1
+ cd libsmi-$LIBSMI_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch libsmi-$LIBSMI_VERSION-done
+ fi
+}
+
+uninstall_libsmi() {
+ if [ ! -z "$installed_libsmi_version" ] ; then
+ echo "Uninstalling libsmi:"
+ cd libsmi-$installed_libsmi_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm libsmi-$installed_libsmi_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf libsmi-$installed_libsmi_version
+ rm -rf libsmi-$installed_libsmi_version.tar.gz
+ fi
+
+ installed_libsmi_version=""
+ fi
+}
+
+install_libgpg_error() {
+ if [ "$LIBGPG_ERROR_VERSION" -a ! -f libgpg-error-$LIBGPG_ERROR_VERSION-done ] ; then
+ echo "Downloading, building, and installing libgpg-error:"
+ [ -f libgpg-error-$LIBGPG_ERROR_VERSION.tar.bz2 ] || curl -L -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-$LIBGPG_ERROR_VERSION.tar.bz2 || exit 1
+ bzcat libgpg-error-$LIBGPG_ERROR_VERSION.tar.bz2 | tar xf - || exit 1
+ cd libgpg-error-$LIBGPG_ERROR_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch libgpg-error-$LIBGPG_ERROR_VERSION-done
+ fi
+}
+
+uninstall_libgpg_error() {
+ if [ ! -z "$installed_libgpg_error_version" ] ; then
+ #
+ # libgcrypt depends on this, so uninstall it.
+ #
+ uninstall_libgcrypt "$@"
+
+ echo "Uninstalling libgpg-error:"
+ cd libgpg-error-$installed_libgpg_error_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm libgpg-error-$installed_libgpg_error_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf libgpg-error-$installed_libgpg_error_version
+ rm -rf libgpg-error-$installed_libgpg_error_version.tar.bz2
+ fi
+
+ installed_libgpg_error_version=""
+ fi
+}
+
+install_libgcrypt() {
+ if [ "$LIBGCRYPT_VERSION" -a ! -f libgcrypt-$LIBGCRYPT_VERSION-done ] ; then
+ #
+ # libgpg-error is required for libgcrypt.
+ #
+ if [ -z $LIBGPG_ERROR_VERSION ]
+ then
+ echo "libgcrypt requires libgpg-error, but you didn't install libgpg-error." 1>&2
+ exit 1
+ fi
+
+ echo "Downloading, building, and installing libgcrypt:"
+ [ -f libgcrypt-$LIBGCRYPT_VERSION.tar.gz ] || curl -L -O ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$LIBGCRYPT_VERSION.tar.gz || exit 1
+ gzcat libgcrypt-$LIBGCRYPT_VERSION.tar.gz | tar xf - || exit 1
+ cd libgcrypt-$LIBGCRYPT_VERSION
+ #
+ # The assembler language code is not compatible with the OS X
+ # x86 assembler (or is it an x86-64 vs. x86-32 issue?).
+ #
+ # libgcrypt expects gnu89, not c99/gnu99, semantics for
+ # "inline". See, for example:
+ #
+ # http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2010-October/198809.html
+ #
+ CFLAGS="$CFLAGS -std=gnu89 $VERSION_MIN_FLAGS $SDKFLAGS" CFLAGS="$CFLAGS -std=gnu89 $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --disable-asm || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch libgcrypt-$LIBGCRYPT_VERSION-done
+ fi
+}
+
+uninstall_libgcrypt() {
+ if [ ! -z "$installed_libgcrypt_version" ] ; then
+ #
+ # GnuTLS depends on this, so uninstall it.
+ #
+ uninstall_gnutls "$@"
+
+ echo "Uninstalling libgcrypt:"
+ cd libgcrypt-$installed_libgcrypt_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm libgcrypt-$installed_libgcrypt_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf libgcrypt-$installed_libgcrypt_version
+ rm -rf libgcrypt-$installed_libgcrypt_version.tar.gz
+ fi
+
+ installed_libgcrypt_version=""
+ fi
+}
+
+install_gnutls() {
+ if [ "$GNUTLS_VERSION" -a ! -f gnutls-$GNUTLS_VERSION-done ] ; then
+ #
+ # GnuTLS requires libgcrypt (or nettle, in newer versions).
+ #
+ if [ -z $LIBGCRYPT_VERSION ]
+ then
+ echo "GnuTLS requires libgcrypt, but you didn't install libgcrypt" 1>&2
+ exit 1
+ fi
+
+ echo "Downloading, building, and installing GnuTLS:"
+ [ -f gnutls-$GNUTLS_VERSION.tar.bz2 ] || curl -L -O http://ftp.gnu.org/gnu/gnutls/gnutls-$GNUTLS_VERSION.tar.bz2 || exit 1
+ bzcat gnutls-$GNUTLS_VERSION.tar.bz2 | tar xf - || exit 1
+ cd gnutls-$GNUTLS_VERSION
+ #
+ # Use libgcrypt, not nettle.
+ # XXX - is there some reason to prefer nettle? Or does
+ # Wireshark directly use libgcrypt routines?
+ #
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --with-libgcrypt --without-p11-kit || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ #
+ # The pkgconfig file for GnuTLS says "requires zlib", but OS X,
+ # while it supplies zlib, doesn't supply a pkgconfig file for
+ # it.
+ #
+ # Patch the GnuTLS pkgconfig file not to require zlib.
+ # (If the capabilities of GnuTLS that Wireshark uses don't
+ # depend on building GnuTLS with zlib, an alternative would be
+ # to configure it not to use zlib.)
+ #
+ patch -p0 lib/gnutls.pc.in <../../macosx-support-lib-patches/gnutls-pkgconfig.patch || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch gnutls-$GNUTLS_VERSION-done
+ fi
+}
+
+uninstall_gnutls() {
+ if [ ! -z "$installed_gnutls_version" ] ; then
+ echo "Uninstalling GnuTLS:"
+ cd gnutls-$installed_gnutls_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm gnutls-$installed_gnutls_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf gnutls-$installed_gnutls_version
+ rm -rf gnutls-$installed_gnutls_version.tar.bz2
+ fi
+
+ installed_gnutls_version=""
+ fi
+}
+
+install_lua() {
+ if [ "$LUA_VERSION" -a ! -f lua-$LUA_VERSION-done ] ; then
+ echo "Downloading, building, and installing Lua:"
+ [ -f lua-$LUA_VERSION.tar.gz ] || curl -L -O http://www.lua.org/ftp/lua-$LUA_VERSION.tar.gz || exit 1
+ gzcat lua-$LUA_VERSION.tar.gz | tar xf - || exit 1
+ cd lua-$LUA_VERSION
+ make MYCFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" MYLDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" $MAKE_BUILD_OPTS macosx || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch lua-$LUA_VERSION-done
+ fi
+}
+
+uninstall_lua() {
+ if [ ! -z "$installed_lua_version" ] ; then
+ echo "Uninstalling Lua:"
+ #
+ # Lua has no "make uninstall", so just remove stuff manually.
+ # There's no configure script, so there's no need for
+ # "make distclean", either; just do "make clean".
+ #
+ (cd /usr/local/bin; $DO_RM -f lua luac)
+ (cd /usr/local/include; $DO_RM -f lua.h luaconf.h lualib.h lauxlib.h lua.hpp)
+ (cd /usr/local/lib; $DO_RM -f liblua.a)
+ (cd /usr/local/man/man1; $DO_RM -f lua.1 luac.1)
+ cd lua-$installed_lua_version
+ make clean || exit 1
+ cd ..
+ rm lua-$installed_lua_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf lua-$installed_lua_version
+ rm -rf lua-$installed_lua_version.tar.gz
+ fi
+
+ installed_lua_version=""
+ fi
+}
+
+install_portaudio() {
+ #
+ # Check for both the old versionless portaudio-done and the new
+ # versioned -done file.
+ #
+ if [ "$PORTAUDIO_VERSION" -a ! -f portaudio-$PORTAUDIO_VERSION-done ] ; then
+ echo "Downloading, building, and installing PortAudio:"
+ [ -f $PORTAUDIO_VERSION.tgz ] || curl -L -O http://www.portaudio.com/archives/$PORTAUDIO_VERSION.tgz || exit 1
+ gzcat $PORTAUDIO_VERSION.tgz | tar xf - || exit 1
+ cd portaudio
+ #
+ # Un-comment an include that's required on Lion.
+ #
+ patch -p0 include/pa_mac_core.h <../../macosx-support-lib-patches/portaudio-pa_mac_core.h.patch
+ #
+ # Fix a bug that showed up with clang (but is a bug with any
+ # compiler).
+ #
+ patch -p0 src/hostapi/coreaudio/pa_mac_core.c <../../macosx-support-lib-patches/portaudio-pa_mac_core.c.patch
+ #
+ # Disable fat builds - the configure script doesn't work right
+ # with Xcode 4 if you leave them enabled, and we don't build
+ # any other libraries fat (GLib, for example, would be very
+ # hard to build fat), so there's no advantage to having PortAudio
+ # built fat.
+ #
+ # Set the minimum OS X version to 10.4, to suppress some
+ # deprecation warnings. (Good luck trying to make any of
+ # this build on an OS+Xcode with a pre-10.4 SDK; we don't
+ # worry about the user requesting that.)
+ #
+ # Explicitly disable deprecation, so the damn thing will build
+ # on El Capitan with Xcode 7.
+ #
+ CFLAGS="$CFLAGS -Wno-deprecated-declarations -mmacosx-version-min=10.4 $SDKFLAGS" CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.4 $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure --disable-mac-universal || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch portaudio-$PORTAUDIO_VERSION-done
+ fi
+}
+
+uninstall_portaudio() {
+ if [ ! -z "$installed_portaudio_version" ] ; then
+ echo "Uninstalling PortAudio:"
+ cd portaudio
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm portaudio-$installed_portaudio_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf portaudio
+ rm -rf $installed_portaudio_version.tgz
+ fi
+
+ installed_portaudio_version=""
+ fi
+}
+
+install_geoip() {
+ if [ "$GEOIP_VERSION" -a ! -f geoip-$GEOIP_VERSION-done ] ; then
+ echo "Downloading, building, and installing GeoIP API:"
+ [ -f GeoIP-$GEOIP_VERSION.tar.gz ] || curl -L -O http://geolite.maxmind.com/download/geoip/api/c/GeoIP-$GEOIP_VERSION.tar.gz || exit 1
+ gzcat GeoIP-$GEOIP_VERSION.tar.gz | tar xf - || exit 1
+ cd GeoIP-$GEOIP_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ #
+ # Grr. Their man pages "helpfully" have an ISO 8859-1
+ # copyright symbol in the copyright notice, but OS X's
+ # default character encoding is UTF-8. sed on Mountain
+ # Lion barfs at the "illegal character sequence" represented
+ # by an ISO 8859-1 copyright symbol, as it's not a valid
+ # UTF-8 sequence.
+ #
+ # iconv the relevant man pages into UTF-8.
+ #
+ for i in geoipupdate.1.in geoiplookup6.1.in geoiplookup.1.in
+ do
+ iconv -f iso8859-1 -t utf-8 man/"$i" >man/"$i".tmp &&
+ mv man/"$i".tmp man/"$i"
+ done
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch geoip-$GEOIP_VERSION-done
+ fi
+}
+
+uninstall_geoip() {
+ if [ ! -z "$installed_geoip_version" ] ; then
+ echo "Uninstalling GeoIP API:"
+ cd GeoIP-$installed_geoip_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm geoip-$installed_geoip_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf GeoIP-$installed_geoip_version
+ rm -rf GeoIP-$installed_geoip_version.tar.gz
+ fi
+
+ installed_geoip_version=""
+ fi
+}
+
+install_c_ares() {
+ if [ "$CARES_VERSION" -a ! -f c-ares-$CARES_VERSION-done ] ; then
+ echo "Downloading, building, and installing C-Ares API:"
+ [ -f c-ares-$CARES_VERSION.tar.gz ] || curl -L -O http://c-ares.haxx.se/download/c-ares-$CARES_VERSION.tar.gz || exit 1
+ gzcat c-ares-$CARES_VERSION.tar.gz | tar xf - || exit 1
+ cd c-ares-$CARES_VERSION
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" ./configure || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ..
+ touch c-ares-$CARES_VERSION-done
+ fi
+}
+
+uninstall_c_ares() {
+ if [ ! -z "$installed_cares_version" ] ; then
+ echo "Uninstalling C-Ares API:"
+ cd c-ares-$installed_cares_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm c-ares-$installed_cares_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf c-ares-$installed_cares_version
+ rm -rf c-ares-$installed_cares_version.tar.gz
+ fi
+
+ installed_cares_version=""
+ fi
+}
+
+install_libssh() {
+ if [ "$LIBSSH_VERSION" -a ! -f libssh-$LIBSSH_VERSION-done ] ; then
+ echo "Downloading, building, and installing libssh:"
+ [ -f libssh-$LIBSSH_VERSION.tar.xz ] || curl -L -O https://red.libssh.org/attachments/download/177/libssh-$LIBSSH_VERSION.tar.xz || exit 1
+ xzcat libssh-$LIBSSH_VERSION.tar.xz | tar xf - || exit 1
+ cd libssh-$LIBSSH_VERSION
+ mkdir build
+ cd build
+ CFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" CXXFLAGS="$CXXFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" LDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" cmake -DWITH_GCRYPT=1 ../ || exit 1
+ make $MAKE_BUILD_OPTS || exit 1
+ $DO_MAKE_INSTALL || exit 1
+ cd ../..
+ touch libssh-$LIBSSH_VERSION-done
+ fi
+}
+
+uninstall_libssh() {
+ if [ ! -z "$installed_libssh_version" ] ; then
+ echo "Uninstalling libssh:"
+ cd libssh-$installed_libssh_version
+ $DO_MAKE_UNINSTALL || exit 1
+ make distclean || exit 1
+ cd ..
+ rm libssh-$installed_libssh_version-done
+
+ if [ "$#" -eq 1 -a "$1" = "-r" ] ; then
+ #
+ # Get rid of the previously downloaded and unpacked version.
+ #
+ rm -rf libssh-$installed_libssh_version
+ rm -rf libssh-$installed_libssh_version.tar.xz
+ fi
+
+ installed_libssh_version=""
+ fi
+}
+
+install_all() {
+ #
+ # Check whether the versions we have installed are the versions
+ # requested; if not, uninstall the installed versions.
+ #
+ if [ ! -z "$installed_libssh_version" -a \
+ "$installed_libssh_version" != "$LIBSSH_VERSION" ] ; then
+ echo "Installed libssh version is $installed_libssh_version"
+ if [ -z "$LIBSSH_VERSION" ] ; then
+ echo "libssh is not requested"
+ else
+ echo "Requested libssh version is $LIBSSH_VERSION"
+ fi
+ uninstall_libssh -r
+ fi
+
+ if [ ! -z "$installed_cares_version" -a \
+ "$installed_cares_version" != "$CARES_VERSION" ] ; then
+ echo "Installed C-Ares version is $installed_cares_version"
+ if [ -z "$CARES_VERSION" ] ; then
+ echo "C-Ares is not requested"
+ else
+ echo "Requested C-Ares version is $CARES_VERSION"
+ fi
+ uninstall_c_ares -r
+ fi
+
+ if [ ! -z "$installed_geoip_version" -a \
+ "$installed_geoip_version" != "$GEOIP_VERSION" ] ; then
+ echo "Installed GeoIP API version is $installed_geoip_version"
+ if [ -z "$GEOIP_VERSION" ] ; then
+ echo "GeoIP is not requested"
+ else
+ echo "Requested GeoIP version is $GEOIP_VERSION"
+ fi
+ uninstall_geoip -r
+ fi
+
+ if [ ! -z "$installed_portaudio_version" -a \
+ "$installed_portaudio_version" != "$PORTAUDIO_VERSION" ] ; then
+ echo "Installed PortAudio version is $installed_portaudio_version"
+ if [ -z "$PORTAUDIO_VERSION" ] ; then
+ echo "PortAudio is not requested"
+ else
+ echo "Requested PortAudio version is $PORTAUDIO_VERSION"
+ fi
+ uninstall_portaudio -r
+ fi
+
+ if [ ! -z "$installed_lua_version" -a \
+ "$installed_lua_version" != "$LUA_VERSION" ] ; then
+ echo "Installed Lua version is $installed_lua_version"
+ if [ -z "$LUA_VERSION" ] ; then
+ echo "Lua is not requested"
+ else
+ echo "Requested Lua version is $LUA_VERSION"
+ fi
+ uninstall_lua -r
+ fi
+
+ if [ ! -z "$installed_gnutls_version" -a \
+ "$installed_gnutls_version" != "$GNUTLS_VERSION" ] ; then
+ echo "Installed GnuTLS version is $installed_gnutls_version"
+ if [ -z "$GNUTLS_VERSION" ] ; then
+ echo "GnuTLS is not requested"
+ else
+ echo "Requested GnuTLS version is $GNUTLS_VERSION"
+ fi
+ uninstall_gnutls -r
+ fi
+
+ if [ ! -z "$installed_libgcrypt_version" -a \
+ "$installed_libgcrypt_version" != "$LIBGCRYPT_VERSION" ] ; then
+ echo "Installed libgcrypt version is $installed_libgcrypt_version"
+ if [ -z "$LIBGCRYPT_VERSION" ] ; then
+ echo "libgcrypt is not requested"
+ else
+ echo "Requested libgcrypt version is $LIBGCRYPT_VERSION"
+ fi
+ uninstall_libgcrypt -r
+ fi
+
+ if [ ! -z "$installed_libgpg_error_version" -a \
+ "$installed_libgpg_error_version" != "$LIBGPG_ERROR_VERSION" ] ; then
+ echo "Installed libgpg-error version is $installed_libgpg_error_version"
+ if [ -z "$LIBGPG_ERROR_VERSION" ] ; then
+ echo "libgpg-error is not requested"
+ else
+ echo "Requested libgpg-error version is $LIBGPG_ERROR_VERSION"
+ fi
+ uninstall_libgpg_error -r
+ fi
+
+ if [ ! -z "$installed_libsmi_version" -a \
+ "$installed_libsmi_version" != "$LIBSMI_VERSION" ] ; then
+ echo "Installed libsmi version is $installed_libsmi_version"
+ if [ -z "$LIBSMI_VERSION" ] ; then
+ echo "libsmi is not requested"
+ else
+ echo "Requested libsmi version is $LIBSMI_VERSION"
+ fi
+ uninstall_libsmi -r
+ fi
+
+ if [ ! -z "$installed_gtk_version" -a \
+ "$installed_gtk_version" != "$GTK_VERSION" ] ; then
+ echo "Installed GTK+ version is $installed_gtk_version"
+ if [ -z "$GTK_VERSION" ] ; then
+ echo "GTK+ is not requested"
+ else
+ echo "Requested GTK+ version is $GTK_VERSION"
+ fi
+ uninstall_gtk -r
+ fi
+
+ if [ ! -z "$installed_gdk_pixbuf_version" -a \
+ "$installed_gdk_pixbuf_version" != "$GDK_PIXBUF_VERSION" ] ; then
+ echo "Installed gdk-pixbuf version is $installed_gdk_pixbuf_version"
+ if [ -z "$GDK_PIXBUF_VERSION" ] ; then
+ echo "gdk-pixbuf is not requested"
+ else
+ echo "Requested gdk-pixbuf version is $GDK_PIXBUF_VERSION"
+ fi
+ uninstall_gdk_pixbuf -r
+ fi
+
+ if [ ! -z "$installed_pango_version" -a \
+ "$installed_pango_version" != "$PANGO_VERSION" ] ; then
+ echo "Installed Pango version is $installed_pango_version"
+ if [ -z "$PANGO_VERSION" ] ; then
+ echo "Pango is not requested"
+ else
+ echo "Requested Pango version is $PANGO_VERSION"
+ fi
+ uninstall_pango -r
+ fi
+
+ if [ ! -z "$installed_atk_version" -a \
+ "$installed_atk_version" != "$ATK_VERSION" ] ; then
+ echo "Installed ATK version is $installed_atk_version"
+ if [ -z "$ATK_VERSION" ] ; then
+ echo "ATK is not requested"
+ else
+ echo "Requested ATK version is $ATK_VERSION"
+ fi
+ uninstall_atk -r
+ fi
+
+ if [ ! -z "$installed_cairo_version" -a \
+ "$installed_cairo_version" != "$CAIRO_VERSION" ] ; then
+ echo "Installed Cairo version is $installed_cairo_version"
+ if [ -z "$CAIRO_VERSION" ] ; then
+ echo "Cairo is not requested"
+ else
+ echo "Requested Cairo version is $CAIRO_VERSION"
+ fi
+ uninstall_cairo -r
+ fi
+
+ if [ ! -z "$installed_pixman_version" -a \
+ "$installed_pixman_version" != "$PIXMAN_VERSION" ] ; then
+ echo "Installed pixman version is $installed_pixman_version"
+ if [ -z "$PIXMAN_VERSION" ] ; then
+ echo "pixman is not requested"
+ else
+ echo "Requested pixman version is $PIXMAN_VERSION"
+ fi
+ uninstall_pixman -r
+ fi
+
+ if [ ! -z "$installed_libpng_version" -a \
+ "$installed_libpng_version" != "$PNG_VERSION" ] ; then
+ echo "Installed libpng version is $installed_libpng_version"
+ if [ -z "$PNG_VERSION" ] ; then
+ echo "libpng is not requested"
+ else
+ echo "Requested libpng version is $PNG_VERSION"
+ fi
+ uninstall_libpng -r
+ fi
+
+ if [ ! -z "$installed_qt_version" -a \
+ "$installed_qt_version" != "$QT_VERSION" ] ; then
+ echo "Installed Qt version is $installed_qt_version"
+ if [ -z "$QT_VERSION" ] ; then
+ echo "Qt is not requested"
+ else
+ echo "Requested Qt version is $QT_VERSION"
+ fi
+ uninstall_qt -r
+ fi
+
+ if [ ! -z "$installed_glib_version" -a \
+ "$installed_glib_version" != "$GLIB_VERSION" ] ; then
+ echo "Installed GLib version is $installed_glib_version"
+ if [ -z "$GLIB_VERSION" ] ; then
+ echo "GLib is not requested"
+ else
+ echo "Requested GLib version is $GLIB_VERSION"
+ fi
+ uninstall_glib -r
+ fi
+
+ if [ ! -z "$installed_pkg_config_version" -a \
+ "$installed_pkg_config_version" != "$PKG_CONFIG_VERSION" ] ; then
+ echo "Installed pkg-config version is $installed_pkg_config_version"
+ if [ -z "$PKG_CONFIG_VERSION" ] ; then
+ echo "pkg-config is not requested"
+ else
+ echo "Requested pkg-config version is $PKG_CONFIG_VERSION"
+ fi
+ uninstall_pkg_config -r
+ fi
+
+ if [ ! -z "$installed_gettext_version" -a \
+ "$installed_gettext_version" != "$GETTEXT_VERSION" ] ; then
+ echo "Installed GNU gettext version is $installed_gettext_version"
+ if [ -z "$GETTEXT_VERSION" ] ; then
+ echo "GNU gettext is not requested"
+ else
+ echo "Requested GNU gettext version is $GETTEXT_VERSION"
+ fi
+ uninstall_gettext -r
+ fi
+
+ if [ ! -z "$installed_cmake_version" -a \
+ "$installed_cmake_version" != "$CMAKE_VERSION" ] ; then
+ echo "Installed CMake version is $installed_cmake_version"
+ if [ -z "$CMAKE_VERSION" ] ; then
+ echo "CMake is not requested"
+ else
+ echo "Requested CMake version is $CMAKE_VERSION"
+ fi
+ #
+ # XXX - really remove this?
+ # Or should we remember it as installed only if this script
+ # installed it?
+ #
+ uninstall_cmake -r
+ fi
+
+ if [ ! -z "$installed_libtool_version" -a \
+ "$installed_libtool_version" != "$LIBTOOL_VERSION" ] ; then
+ echo "Installed GNU libtool version is $installed_libtool_version"
+ if [ -z "$LIBTOOL_VERSION" ] ; then
+ echo "GNU libtool is not requested"
+ else
+ echo "Requested GNU libtool version is $LIBTOOL_VERSION"
+ fi
+ uninstall_libtool -r
+ fi
+
+ if [ ! -z "$installed_automake_version" -a \
+ "$installed_automake_version" != "$AUTOMAKE_VERSION" ] ; then
+ echo "Installed GNU automake version is $installed_automake_version"
+ if [ -z "$AUTOMAKE_VERSION" ] ; then
+ echo "GNU automake is not requested"
+ else
+ echo "Requested GNU automake version is $AUTOMAKE_VERSION"
+ fi
+ uninstall_automake -r
+ fi
+
+ if [ ! -z "$installed_autoconf_version" -a \
+ "$installed_autoconf_version" != "$AUTOCONF_VERSION" ] ; then
+ echo "Installed GNU autoconf version is $installed_autoconf_version"
+ if [ -z "$AUTOCONF_VERSION" ] ; then
+ echo "GNU autoconf is not requested"
+ else
+ echo "Requested GNU autoconf version is $AUTOCONF_VERSION"
+ fi
+ uninstall_autoconf -r
+ fi
+
+ if [ ! -z "$installed_xz_version" -a \
+ "$installed_xz_version" != "$XZ_VERSION" ] ; then
+ echo "Installed xz version is $installed_xz_version"
+ if [ -z "$XZ_VERSION" ] ; then
+ echo "xz is not requested"
+ else
+ echo "Requested xz version is $XZ_VERSION"
+ fi
+ uninstall_xz -r
+ fi
+
+ #
+ # Start with xz: It is the sole download format of glib later than 2.31.2
+ #
+ install_xz
+
+ install_autoconf
+
+ install_automake
+
+ install_libtool
+
+ install_cmake
+
+ #
+ # Start with GNU gettext; GLib requires it, and OS X doesn't have it
+ # or a BSD-licensed replacement.
+ #
+ # At least on Lion with Xcode 4, _FORTIFY_SOURCE gets defined as 2
+ # by default, which causes, for example, stpncpy to be defined as
+ # a hairy macro that collides with the GNU gettext configure script's
+ # attempts to workaround AIX's lack of a declaration for stpncpy,
+ # with the result being a huge train wreck. Define _FORTIFY_SOURCE
+ # as 0 in an attempt to keep the trains on separate tracks.
+ #
+ install_gettext
+
+ #
+ # GLib depends on pkg-config.
+ # By default, pkg-config depends on GLib; we break the dependency cycle
+ # by configuring pkg-config to use its own internal version of GLib.
+ #
+ install_pkg_config
+
+ install_glib
+
+ #
+ # Now we have reached a point where we can build everything but
+ # the GUI (Wireshark).
+ #
+ install_qt
+
+ if [ "$GTK_VERSION" ]; then
+ #
+ # GTK+ 3 requires a newer Cairo build than the one that comes with
+ # 10.6, so we build Cairo if we are using GTK+ 3.
+ #
+ # In 10.6 and 10.7, it's an X11 library; if we build with "native" GTK+
+ # rather than X11 GTK+, we might have to build and install Cairo.
+ # In 10.8 and later, there is no X11, but it's included in Xquartz;
+ # again, if we build with "native" GTK+, we'd have to build and install
+ # it.
+ #
+ if [[ "$GTK_MAJOR_VERSION" -eq 3 || "$cairo_not_in_the_os" = yes ]]; then
+ #
+ # Requirements for Cairo first
+ #
+ # The libpng that comes with the X11 for Leopard has a bogus
+ # pkg-config file that lies about where the header files are,
+ # which causes other packages not to be able to find its
+ # headers.
+ #
+ # The libpng in later versions is not what the version of
+ # libpixman we build below wants - it wants libpng15.
+ #
+ install_libpng
+
+ #
+ # The libpixman versions that come with the X11s for Leopard,
+ # Snow Leopard, and Lion is too old to support Cairo's image
+ # surface backend feature (which requires pixman-1 >= 0.22.0).
+ #
+ # XXX - what about the one that comes with the latest version
+ # of Xquartz?
+ #
+ install_pixman
+
+ #
+ # And now Cairo itself.
+ # XXX - with the libxcb that comes with 10.6,
+ # xcb_discard_reply() is missing, and the build fails.
+ #
+ install_cairo
+ fi
+
+ install_atk
+
+ install_pango
+
+ install_gdk_pixbuf
+
+ install_gtk
+ fi
+
+ #
+ # Now we have reached a point where we can build everything including
+ # the GUI (Wireshark), but not with any optional features such as
+ # SNMP OID resolution, some forms of decryption, Lua scripting, playback
+ # of audio, or GeoIP mapping of IP addresses.
+ #
+ # We now conditionally download optional libraries to support them;
+ # the default is to download them all.
+ #
+
+ install_libsmi
+
+ install_libgpg_error
+
+ install_libgcrypt
+
+ install_gnutls
+
+ install_lua
+
+ install_portaudio
+
+ install_geoip
+
+ install_c_ares
+
+ install_libssh
+}
+
+uninstall_all() {
+ if [ -d macosx-support-libs ]
+ then
+ cd macosx-support-libs
+
+ #
+ # Uninstall items in the reverse order from the order in which they're
+ # installed. Only uninstall if the download/build/install process
+ # completed; uninstall the version that appears in the name of
+ # the -done file.
+ #
+ # We also do a "make distclean", so that we don't have leftovers from
+ # old configurations.
+ #
+ uninstall_libssh
+
+ uninstall_c_ares
+
+ uninstall_geoip
+
+ uninstall_portaudio
+
+ uninstall_lua
+
+ uninstall_gnutls
+
+ uninstall_libgcrypt
+
+ uninstall_libgpg_error
+
+ uninstall_libsmi
+
+ uninstall_gtk
+
+ uninstall_gdk_pixbuf
+
+ uninstall_pango
+
+ uninstall_atk
+
+ uninstall_cairo
+
+ uninstall_pixman
+
+ uninstall_libpng
+
+ uninstall_qt
+
+ uninstall_glib
+
+ uninstall_pkg_config
+
+ uninstall_gettext
+
+ #
+ # XXX - really remove this?
+ # Or should we remember it as installed only if this script
+ # installed it?
+ #
+ uninstall_cmake