README.md 1.95 KB
Newer Older
1 2
Ring Mac OSX
**********
Socapex's avatar
Socapex committed
3

4
This is the official Mac port of Ring.
Socapex's avatar
Socapex committed
5

6 7 8 9 10
For more information about the ring project, see the following:
- Main website: https://ring.cx/
- Bug tracker: https://tuleap.ring.cx/projects/ring/
- Repositories: https://gerrit-ring.savoirfairelinux.com

11 12 13 14 15 16 17 18 19 20 21
Requirements
=============

- Ring daemon
- libRingClient (Qt5 version)
- Qt5 Core
- Cocoa framework

Build instructions
==================

22 23 24 25 26
Build Sparkle framework (optional)
----------------------------------
Ring can ship with the Sparkle framework to allow automatic app updates.
This can be disabled for your custom build by specifying -DENABLE_SPARKLE=false
in the cmake phase.
27

28 29 30 31 32 33 34 35 36 37 38 39 40 41
1. cd sparkle/
2. git submodule update
3. cd Sparkle/
4. make release
5. A Finder window will popup in the directory where Sparkle has been built.
Copy-paste the Sparkle.framework in sparkle/ in our project, or in
/Library/Frameworks on your system.

Build Client
------------

1. mkdir build && cd build

2. export CMAKE_PREFIX_PATH=<dir_to_qt5>
42 43

Now generate an Xcode project with CMake:
44 45 46
3. cmake ../ -DCMAKE_INSTALL_PREFIX=<libringclient_install_path> -G Xcode
4. open Ring.xcodeproj/
5. Build and run it from Xcode. You can also generate the final Ring.app bundle.
47 48 49

You can also build it from the command line:

50 51 52 53 54 55 56 57 58 59
3. cmake ../ -DCMAKE_INSTALL_PREFIX=<libringclient_install_path>
4. make
5. open Ring.app/

If you want to create the final app (self-containing .dmg):

4. make install
5. cpack -G DragNDrop Ring

Notes:
60

61 62
By default the client version is specified in CMakeLists.txt but it can be
overriden by specifying -DRING_VERSION=<num> in the cmake command line.
63

64 65 66
You can specify a custom ringtone folder containing audio files (only)
with -DRINGTONE_DIR option

67 68 69 70 71 72 73
Debugging
==================

For now, the build type of the client is "Debug" by default, however it is
useful to also have the debug symbols of libRingClient. To do this, specify this
when compiling libRingClient with '-DCMAKE_BUILD_TYPE=Debug' in the cmake
options.