diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-31 06:25:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-31 06:25:40 +0000 |
commit | 53bec490e7b769abfe8f2dda292d0a9f2c0b6e1a (patch) | |
tree | e8892fceb4a518b02b473143c2a494ed430627e1 /macosx-setup.sh | |
parent | 365188e9a47790c00534d427a9f80ca2fff8615d (diff) |
Put the GTK2 vs. GTK3 and autofoo vs. CMake options at the beginning,
before either of them are tested.
Put the code to get the OS major version number just before we first use
it.
Fix indentation.
svn path=/trunk/; revision=51054
Diffstat (limited to 'macosx-setup.sh')
-rwxr-xr-x | macosx-setup.sh | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/macosx-setup.sh b/macosx-setup.sh index af245cc6ed..c31718711d 100755 --- a/macosx-setup.sh +++ b/macosx-setup.sh @@ -8,7 +8,17 @@ # http://nplab.fh-muenster.de/groups/wiki/wiki/fb7a4/Building_Wireshark_on_SnowLeopard.html # -DARWIN_MAJOR_VERSION=`uname -r | sed 's/\([0-9]*\).*/\1/'` +# +# To set up a GTK3 environment +GTK3=1 +# To build cmake +# CMAKE=1 +# +# To build all libraries as 32-bit libraries uncomment the following three lines. +# export CFLAGS="$CFLAGS -arch i386" +# export CXXFLAGS="$CXXFLAGS -arch i386" +# export LDFLAGS="$LDFLAGS -arch i386" +# # # Versions to download and install. @@ -69,6 +79,8 @@ PORTAUDIO_VERSION=pa_stable_v19_20111121 # GEOIP_VERSION=1.4.8 +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. @@ -396,17 +408,6 @@ if [[ $DARWIN_MAJOR_VERSION -le 9 ]]; then exit 1 fi -# To set up a GTK3 environment -GTK3=1 -# To build cmake -# CMAKE=1 -# -# To build all libraries as 32-bit libraries uncomment the following three lines. -# export CFLAGS="$CFLAGS -arch i386" -# export CXXFLAGS="$CXXFLAGS -arch i386" -# export LDFLAGS="$LDFLAGS -arch i386" -# - # if no make options are present, set default options if [ -z "$MAKE_BUILD_OPTS" ] ; then # by default use 1.5x number of cores for parallel build @@ -574,7 +575,7 @@ then # export CFLAGS="$CFLAGS -arch i386" export CXXFLAGS="$CXXFLAGS -arch i386" - export LDFLAGS="$LDFLAGS -arch i386" + export LDFLAGS="$LDFLAGS -arch i386" fi # |