Wireshark-dev: Re: [Wireshark-dev] How to build on MACOS (with revised instructions)
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 15 Jul 2011 14:50:45 -0700
On Jul 13, 2011, at 8:29 PM, Guy Harris wrote:

> I'm working on getting the script to work; I'll check it in, along with the patches, when I have it working.

OK, I've checked them in.  I called the script "macosx-setup.sh".

> The patches should probably be checked into a subdirectory

I did that.

> I'm thinking of having the tarballs downloaded and unpacked into a subdirectory as well

And that.

> - should it just clean up the subdirectory when it's done, or should it leave:
> 
> 	the tarballs;
> 
> 	the source directories for the libraries, including the built objects;
> 
> around?

Currently, it leaves them around.

> The version of the script I have checks, in the beginning of the script, whether you have write permission on /usr/local and, if you don't, runs "make install" with sudo, but doesn't run anything else with sudo.

It does that.

> It should perhaps take an argument for where to install the support libraries, with the default being /usr/local, and perhaps even pass that on to the configure script for use in the "make osx-package" stage.

Not done.

> I'll look at making the versions of the libraries variables in the beginning of the script, so they're easier to update.

Done.

> I'll also try to get the other support libraries in; should that be done with an option or should it just load up your system with GeoIP and PortAudio and GNU this and GNU that and so on?

Done.  If you don't want particular additional libraries installed, comment out the line that sets the version number variable for the library.