root/vidalia/trunk/pkg/osx/build-bundle.txt

Revision 2198, 2.6 kB (checked in by edmanm, 9 months ago)

Add a OSX_FAT_BINARY option for building as a Universsal binary.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1           Building the Vidalia/Tor/Privoxy OS X Bundle
2
3Libevent
41. Download and extract the latest libevent source from
5   http://www.monkey.org/~provos/libevent/
6
72. Configure libevent with the following:
8   ./configure --enable-static --disable-shared
9
103. Build and install libevent as follows:
11   make && make install
12
13   You will need to be root to `make install`
14
15  NOTE: If you have previously installed a Libevent that was not configured with
16  the options above, you must remove those before building Tor, otherwise Tor
17  will link to the wrong Libevent.
18
19
20Qt
214. Download and extract the open source version of Qt 4.1 or higher from
22   Trolltech at the following address:
23   http://www.trolltech.com/developer/downloads/qt/mac
24
255. Configure Qt with the following:
26   ./configure -static -release
27
286. Build and install Qt as follows:
29   make && make install
30 
31 
32Privoxy
337. Download the OS X Privoxy package from
34   http://prdownloads.sourceforge.net/ijbswa/privoxyosx_setup_3.0.3.zip?download
35 
36   Note the location in which you save this .zip file, because you will need
37   to specify it in Step 8.
38
39
40Tor
418. Download and extract the latest Tor source from
42   https://www.torproject.org/download
43
44   Note the location in which you extract Tor's source, because you will need
45   to specify it in Step 8.
46   
479. Configure Tor with the following:
48   ./configure --prefix=/Library/Tor --bindir=/Library/Tor --sysconfdir=/Library
49
50Vidalia
5110. Configure Vidalia with the following:
52      cmake -DOSX_FAT_BINARY=1 .
53
54   The Vidalia binary on OS X links to Qt statically, so you will need to have
55   your Qt installation configured appropriately.
56
5711. Run `make` to build Vidalia.
58
5912. Download the latest Torbutton and LICENSE file from https://torbutton.torproject.org/dev/.
60Remember where you put this file.
61
62   
63Finish
6412. From Vidalia's pkg/ directory in Vidalia's source, run the following:
65     ./package.sh osx-bundle <path-to-tor> <privoxy-package.zip>
66 
67  Example:
68     ./package.sh osx-bundle ~/tor-0.2.0.11-alpha ~/privoxyosx_setup_3.0.3.zip
69
70  The script that builds the .mpkg (pkg/osx/bundle/buildmpkg.sh) gets Tor's
71  version number from the directory name, so it should be named appropriately,
72  as in the example above.
73 
74The resulting .dmg containg the .mpkg and necessary licenses will be placed in
75the 'pkg' directory under Vidalia's source.
76
77NOTE: Steps 1-6 only need to be done once initially, unless you need to change the
78packaged version of Libevent or Qt. Step 7 also only needs to be done once,
79unless Privoxy ever gets updated. Steps 8-9 need to be repeated when the
80bundled version of Tor changes. Steps 10-11 need to be repeated when the
81bundled version of Vidalia changes.
82
Note: See TracBrowser for help on using the browser.