- Update cmake, gnutls and pixman to current version

- unpack an xz file with xzcat instead of gzcat
- remove some trailing whitespace
- the update of gnutls required two changes in the gnutls
  build stuff: a) gnutls.pc is now generated from gnutls.pc.in
  and b) we now need to build with --without-p11-kit

svn path=/trunk/; revision=42861
This commit is contained in:
Jörg Mayer 2012-05-27 10:15:56 +00:00
parent 73fbd6894d
commit 2d935ea939
2 changed files with 16 additions and 18 deletions

View File

@ -5,7 +5,7 @@
# #
# Trying to follow "Building Wireshark on SnowLeopard" # Trying to follow "Building Wireshark on SnowLeopard"
# given by Michael Tuexen at # given by Michael Tuexen at
# http://nplab.fh-muenster.de/groups/wiki/wiki/fb7a4/Building_Wireshark_on_SnowLeopard.html # http://nplab.fh-muenster.de/groups/wiki/wiki/fb7a4/Building_Wireshark_on_SnowLeopard.html
# #
# To set up a GTK3 environment # To set up a GTK3 environment
@ -29,7 +29,7 @@ PKG_CONFIG_VERSION=0.26
ATK_VERSION=2.4.0 ATK_VERSION=2.4.0
PANGO_VERSION=1.30.0 PANGO_VERSION=1.30.0
PNG_VERSION=1.5.10 PNG_VERSION=1.5.10
PIXMAN_VERSION=0.24.4 PIXMAN_VERSION=0.26.0
CAIRO_VERSION=1.12.2 CAIRO_VERSION=1.12.2
GDK_PIXBUF_VERSION=2.26.1 GDK_PIXBUF_VERSION=2.26.1
if [ -z "$GTK3" ]; then if [ -z "$GTK3" ]; then
@ -45,7 +45,7 @@ fi
XZ_VERSION=5.0.3 XZ_VERSION=5.0.3
# In case we want to build with cmake # In case we want to build with cmake
CMAKE_VERSION=2.8.7 CMAKE_VERSION=2.8.8
# #
# The following libraries are optional. # The following libraries are optional.
@ -65,7 +65,7 @@ LIBGPG_ERROR_VERSION=1.10
# 1.4.6. # 1.4.6.
# #
LIBGCRYPT_VERSION=1.5.0 LIBGCRYPT_VERSION=1.5.0
GNUTLS_VERSION=2.12.7 GNUTLS_VERSION=2.12.19
LUA_VERSION=5.2.0 LUA_VERSION=5.2.0
PORTAUDIO_VERSION=pa_stable_v19_20111121 PORTAUDIO_VERSION=pa_stable_v19_20111121
# #
@ -231,7 +231,7 @@ if [ -n "$GTK3" ]; then
# #
echo "Downloading, building, and installing Cairo:" echo "Downloading, building, and installing Cairo:"
curl -O http://cairographics.org/releases/cairo-$CAIRO_VERSION.tar.xz || exit 1 curl -O http://cairographics.org/releases/cairo-$CAIRO_VERSION.tar.xz || exit 1
gzcat cairo-$CAIRO_VERSION.tar.xz | tar xf - || exit 1 xzcat cairo-$CAIRO_VERSION.tar.xz | tar xf - || exit 1
cd cairo-$CAIRO_VERSION cd cairo-$CAIRO_VERSION
#./configure --enable-quartz=no || exit 1 #./configure --enable-quartz=no || exit 1
# Maybe follow http://cairographics.org/end_to_end_build_for_mac_os_x/ # Maybe follow http://cairographics.org/end_to_end_build_for_mac_os_x/
@ -239,7 +239,7 @@ if [ -n "$GTK3" ]; then
make -j 3 || exit 1 make -j 3 || exit 1
$DO_MAKE_INSTALL || exit 1 $DO_MAKE_INSTALL || exit 1
cd .. cd ..
fi fi
echo "Downloading, building, and installing ATK:" echo "Downloading, building, and installing ATK:"
atk_dir=`expr $ATK_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'` atk_dir=`expr $ATK_VERSION : '\([0-9][0-9]*\.[0-9][0-9]*\).*'`
@ -360,7 +360,7 @@ then
# XXX - is there some reason to prefer nettle? Or does # XXX - is there some reason to prefer nettle? Or does
# Wireshark directly use libgcrypt routines? # Wireshark directly use libgcrypt routines?
# #
./configure --with-libgcrypt || exit 1 ./configure --with-libgcrypt --without-p11-kit || exit 1
make -j 3 || exit 1 make -j 3 || exit 1
# #
# The pkgconfig file for GnuTLS says "requires zlib", but OS X, # The pkgconfig file for GnuTLS says "requires zlib", but OS X,
@ -372,7 +372,7 @@ then
# depend on building GnuTLS with zlib, an alternative would be # depend on building GnuTLS with zlib, an alternative would be
# to configure it not to use zlib.) # to configure it not to use zlib.)
# #
patch -p0 lib/gnutls.pc <../../macosx-support-lib-patches/gnutls-pkgconfig.patch || exit 1 patch -p0 lib/gnutls.pc.in <../../macosx-support-lib-patches/gnutls-pkgconfig.patch || exit 1
$DO_MAKE_INSTALL || exit 1 $DO_MAKE_INSTALL || exit 1
cd .. cd ..
fi fi

View File

@ -1,10 +1,8 @@
*** gnutls.pc.orig 2011-07-15 15:02:32.000000000 -0700 --- gnutls.pc.in.orig 2012-05-27 02:08:48.000000000 +0200
--- gnutls.pc 2011-07-15 15:02:42.000000000 -0700 +++ gnutls.pc.in 2012-05-27 02:11:39.000000000 +0200
*************** @@ -21,5 +21,4 @@
*** 21,25 **** Version: @VERSION@
Version: 2.12.7 Libs: -L${libdir} -lgnutls
Libs: -L${libdir} -lgnutls Libs.private: @LTLIBGCRYPT@ @LTLIBNETTLE@ @NETTLE_LIBS@ @GNUTLS_ZLIB_LIBS_PRIVATE@
Libs.private: -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error -L/usr/local/lib -lintl -liconv -lc -R/usr/local/lib -@GNUTLS_REQUIRES_PRIVATE@
- Requires.private: zlib Cflags: -I${includedir}
Cflags: -I${includedir}
--- 21,24 ----