monotone

monotone Mtn Source Tree

Root/mac/readme-mac.txt

1Steps to build a distributable OS X dmg:
2
31) Install the prerequisites listed in INSTALL, be sure to build
4gettext so that translations work. Static libraries should be built
5for libintl.a and the Boost libraries, and they need to be built as
6universal binaries.
7Make also sure you've TeX installed, as we're bundling a PDF version
8of the monotone documentation later on. The easiest way to install TeX
9on Mac OS X is using the gwTeX i-Install package; further instructions for
10this can be found here: http://ii2.sourceforge.net/tex-index.html.
11After installation the all the needed binaries can be found in
12/usr/local/gwTeX/bin/i386-apple-darwin-current.
13
14
15At the time of writing Macports doesn't build these as universal binaries.
16
172) Configure it (changing paths appropriately):
18 mkdir "build"
19 ../configure --enable-static-boost=/usr/local/stow/boost-1.33.1-fat \
20 --with-libintl-prefix=/usr/local/stow/gettext-0.16.1 \
21 CFLAGS="-O2 -mdynamic-no-pic -ggdb -gfull -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
22 CXXFLAGS="-O2 -mdynamic-no-pic -fno-threadsafe-statics -ggdb -gfull -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \
23 CPPFLAGS="-pipe -I/usr/local/stow/boost-1.33.1-fat/include" LDFLAGS="-L/usr/local/stow/boost-1.33.1-fat/lib -dead_strip" \
24 STRIP="stripS" \
25 --disable-dependency-tracking
26
27(note that stripS is a wrapper executable in PATH that runs "strip -S")
28
29Edit the resultant Makefile and change the "LIBINTL = " line to something
30similar (with correct path) to:
31LIBINTL = /usr/local/stow/gettext-0.16.1/lib/libintl.a -framework CoreFoundation
32
33Check that other libraries such as zlib and libiconv
34seem to be pointing at system-provided paths.
35
363) "make" to build it
37
384) Run "otool -L" on the mtn binary and check that it only links against
39 system-provided libraries (in /usr/lib).
40
41 The mtn binary can be stripped with "strip -S" and is suitable for
42 standalone distribution.
43
444) Run "make dmg" to build a distributable installer, with working translations
45 and documentation. The "mac/monotone.pmproj" is the base for the install
46 package, however the version number is automatically replaced.
47
485) Test the installer preferably on a different system.

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status