1 **********************************
2 * Compiling linphone on macos X *
3 **********************************
6 - Xcode (download from apple or using appstore application)
7 - Macports: http://www.macports.org/
8 Download and install macports using its user friendly installer.
10 - Install build time dependencies
11 $ port install automake autoconf libtool intltool
13 - Install some linphone dependencies with macports
15 $ port install libosip2 # WARNING: currently outdated in macport
16 $ port install libeXosip2 #WARNING: currently outdated in macport
17 $ port install ffmpeg-devel
19 $ port install readline
21 - Install srtp (optional) for call encryption
23 If that fails, get from source:
24 $ git clone git://git.linphone.org/srtp.git
25 $ cd srtp && autoconf && ./configure --prefix=/opt/local && make libsrtp.a
28 - Install zrtpcpp (optional), for unbreakable call encryption
30 $ git clone git://git.linphone.org/zrtpcpp.git
31 $ cd zrtpcpp && cmake -Denable-ccrtp=false . && make
34 - Install gtk. It is recommended to use the quartz backend for better integration.
35 $ port install gtk2 +quartz +no_x11
36 $ port install ige-mac-integration
37 $ port install hicolor-icon-theme
39 - Compile and install the tunnel
41 If you got the source code from git, run ./autogen.sh first
43 Then or otherwise, do:
45 $ ./configure --prefix=/opt/local && make && sudo make install
50 If you got the source code from git, run ./autogen.sh first.
52 Then or otherwise, do:
54 $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-x11 --with-srtp=/opt/local --with-gsm=/opt/local --enable-zrtp && make
62 If you want to generate a portable bundle, then install gtk-mac-bundler.
64 $ git clone https://github.com/jralls/gtk-mac-bundler.git
65 $ cd gtk-mac-bundler && make install
66 $ export PATH=$PATH:~/.local/bin
67 #make this dummy charset.alias file for the bundler to be happy:
68 $ sudo touch touch /opt/local/lib/charset.alias
70 Then run, inside linphone source tree:
71 1. Run configure as told before but with "--enable-relativeprefix" appended.
76 The resulting bundle is located in linphone build directory, together with a zipped version.
78 For a better appearance, you can install the gtk-quartz-engine (a gtk theme) that make gtk application more similar to other mac applications (but not perfect).
80 $ git clone https://github.com/jralls/gtk-quartz-engine.git
81 $ cd gtk-quartz-engine
83 $ ./configure --prefix=/opt/local && make
86 Generate a new bundle to have it included.