summaryrefslogtreecommitdiffstats
path: root/comm/third_party/libotr/INSTALL
blob: 4226b2f44d1f503bdd26a4689ea2755e86b20321 (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
REQUIREMENTS

To compile the OTR library and toolkit, you'll need at least:
 - libgpg-error 1.0  [ftp://ftp.gnupg.org/gcrypt/libgpg-error/]
 - libgcrypt 1.2.0   [ftp://ftp.gnupg.org/gcrypt/libgcrypt/]

If you install these with a package manager, you'll probably need the
-dev or -devel versions of the packages.

On Fedora, these packages are:
    libgpg-error-devel libgcrypt-devel

On Debian (testing or unstable), they are:
    libgpg-error-dev libgcrypt11-dev

COMPILING

If you're got a CVS copy, you will need to regenerate the configure
script using:

    ./bootstrap

Once you have the configure script (which comes with the source
deistribution), run it with the "--with-pic" option, as well as any
other options that may be necessary for your system.  Some examples:

Linux:
    ./configure --with-pic --prefix=/usr --mandir=/usr/share/man

NETBSD:
    CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib" \
	./configure --with-pic --prefix=/usr/pkg

mingw cross-compiler from Debian Linux:
    ./configure --with-pic --host=i586-mingw32msvc \
	--prefix=/usr/i586-mingw32msvc

Once the configure script writes a Makefile, you should be able to just
run "make".

INSTALLATION

You should be able to simply do "make install".  If you want to install
somewhere other than / (this is useful for package creators), use
something like "make DESTDIR=/path/to/install/to install".