diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-05-09 16:15:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 16:15:34 +0100 |
commit | 1ab9317ad546ead7fc7c869ed1cad4cd61df4e9f (patch) | |
tree | f936d8436792ab8ebd4ce81f83b42481c36405b3 | |
parent | 33802dc273fa976a07b9b3bff4fc68ac40a018a9 (diff) | |
parent | f0062e700ecd659c434fba6372f87552b8e6a0ff (diff) | |
download | purple-matrix-1ab9317ad546ead7fc7c869ed1cad4cd61df4e9f.tar.gz |
Merge pull request #94 from jannisteunissen/master
Small improvements to make installation easier
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | README.md | 5 |
2 files changed, 17 insertions, 4 deletions
@@ -4,10 +4,18 @@ CC=gcc LIBS=purple json-glib-1.0 glib-2.0 sqlite3 PKG_CONFIG=pkg-config -CFLAGS+=$(shell $(PKG_CONFIG) --cflags $(LIBS)) -CFLAGS+=-fPIC -DPIC -LDLIBS+=$(shell $(PKG_CONFIG) --libs $(LIBS)) -LDLIBS+=-lhttp_parser + +PKG_CFLAGS:=$(shell $(PKG_CONFIG) --cflags $(LIBS) || echo "FAILED") +ifeq ($(PKG_CFLAGS),FAILED) + $(error "$(PKG_CONFIG) failed") +endif +CFLAGS+=$(PKG_CFLAGS) -fPIC -DPIC + +PKG_LDLIBS:=$(shell $(PKG_CONFIG) --libs $(LIBS) || echo "FAILED") +ifeq ($(PKG_LDLIBS),FAILED) + $(error "$(PKG_CONFIG) failed") +endif +LDLIBS+=$(PKG_LDLIBS) -lhttp_parser ifndef MATRIX_NO_E2E LDLIBS+=-lolm -lgcrypt @@ -46,6 +46,8 @@ You will need development headers/libraries for the following: * libjson-glib [libjson-glib-dev] * libglib [libglib-dev (or libglib2.0-dev on Ubuntu 16.04 xenial)] * libhttp_parser [libhttp-parser-dev]. +* sqlite3 [libsqlite3-dev] +* libolm [libolm-dev] (if not available, compile with `make MATRIX_NO_E2E=1`) You should then be able to: @@ -54,6 +56,9 @@ make sudo make install ``` +If you do not have root access, you can simply copy `libmatrix.so` into +`~/.purple/plugins`. + You will then need to restart Pidgin, after which you should be able to add a 'Matrix' account. |