From 227f0af79c04aeeb9ce785fa55386a0c0d6e3f56 Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Fri, 26 Jun 2015 02:16:51 +0200 Subject: Make autotools install optional. Reformat build and install instructions at the end a bit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0f6be9e4b58f3987615abcec6521f59ba33b3b0a Reviewed-on: https://code.wireshark.org/review/9166 Reviewed-by: Jörg Mayer --- macosx-setup.sh | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'macosx-setup.sh') diff --git a/macosx-setup.sh b/macosx-setup.sh index 2e62914070..9773442ac5 100755 --- a/macosx-setup.sh +++ b/macosx-setup.sh @@ -26,6 +26,10 @@ # CMAKE=1 # +# To install autotools +# +AUTOTOOLS=1 +# # To build all libraries as 32-bit libraries uncomment the following three lines. # # export CFLAGS="$CFLAGS -arch i386" @@ -73,7 +77,7 @@ PKG_CONFIG_VERSION=0.28 # If you don't want to build with GTK+ at all, comment out both lines. # QT_VERSION=5.3.2 -GTK_VERSION=2.24.17 +#GTK_VERSION=2.24.17 #GTK_VERSION=3.5.2 if [ "$GTK_VERSION" ]; then # @@ -138,7 +142,7 @@ DARWIN_MAJOR_VERSION=`uname -r | sed 's/\([0-9]*\).*/\1/'` # GNU autotools; they're provided with releases up to Snow Leopard, but # not in later releases. # -if [[ $DARWIN_MAJOR_VERSION -gt 10 ]]; then +if [ -n "$AUTOTOOLS" -a $DARWIN_MAJOR_VERSION -gt 10 ]; then AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.13.3 LIBTOOL_VERSION=2.4.2 @@ -2297,31 +2301,35 @@ if [ "$QT_VERSION" ]; then fi pkg_config_path="$pkg_config_path":/usr/X11/lib/pkgconfig -echo "You are now prepared to build Wireshark. To do so do:" -echo "export PKG_CONFIG_PATH=$pkg_config_path" -echo "" -if [ -n "$CMAKE" ]; then +echo "You are now prepared to build Wireshark." +echo +if [[ $CMAKE ]]; then + echo "To build with CMAKE:" + echo + echo "export PKG_CONFIG_PATH=$pkg_config_path" echo "export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" echo "export PATH=$PATH:$qt_base_path/bin" + echo echo "mkdir build; cd build" echo "cmake .." echo "make $MAKE_BUILD_OPTS app_bundle" echo "make install/strip" echo - echo "or" +fi +if [[ $AUTOTOOLS ]]; then + echo "To build with AUTOTOOLS:" + echo + echo "export PKG_CONFIG_PATH=$pkg_config_path" + echo + echo "./autogen.sh" + echo "mkdir build; cd build" + echo "../configure" + echo "make $MAKE_BUILD_OPTS" + echo "make install" echo fi -echo "./autogen.sh" -echo "mkdir build; cd build" -echo "../configure" -echo "make $MAKE_BUILD_OPTS" -echo "make install" - -echo "" - echo "Make sure you are allowed capture access to the network devices" echo "See: https://wiki.wireshark.org/CaptureSetup/CapturePrivileges" - -echo "" +echo exit 0 -- cgit v1.2.3