summaryrefslogtreecommitdiffstats
path: root/docs/install.rst
blob: ae6b44b097d1c0315cdffd859a427a9b46efcc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
============
Installation
============


Prior to building the filter suite you have to install the base library ufo-core
as well as all task-specific dependencies (e.g. *libtiff* for :gobj:class:`read`
and :gobj:class:`write`). Once ufo-core is installed you can check out the
source with::

  $ git clone https://github.com/ufo-kit/ufo-filters


Building with CMake
-------------------

Configure the build with::

  $ cd <source-path>
  $ cmake .

Installation paths can be customized by passing ``configure`` equivalents like
so::

  $ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64

Now build and install the filters with::

  $ make && make install

Depending on the installation location, the second step requires administration
rights.


Building with meson
-------------------

Configure the build with ``meson`` by changing into the root source directory
and type ::

  $ meson build

You can change the location of GNU installation directories during this step or
later with the ``meson configure`` tool ::

  $ meson build --prefix=/usr
  $ cd build && meson configure -Dprefix=/usr/local

Build, test and install everything with ::

  $ cd build
  $ ninja && ninja test && ninja install