freebsd has no install, eek

v1
Tony Olagbaiye 3 years ago
parent 4e2bfee714
commit ec3e918712
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -11,7 +11,6 @@ LDLIBS=-lstrophe -lpthread $(shell xml2-config --libs) $(shell pkg-config --libs
PREFIX ?= /usr/local
LIBDIR ?= $(PREFIX)/lib
INSTALL ?= /usr/bin/install
SRCS=plugin.c \
account.c \
@ -59,8 +58,8 @@ tidy:
$(FIND) . -name "*.o" -delete
clean:
$(RM) $(OBJS)
$(MAKE) -C axc clean
$(RM) -f $(OBJS)
$(MAKE) -C axc clean || true
git submodule foreach --recursive git clean -xfd || true
git submodule foreach --recursive git reset --hard || true
git submodule update --init --recursive || true
@ -70,9 +69,13 @@ distclean: clean
install: xmpp.so
ifeq ($(shell id -u),0)
$(INSTALL) -s -t $(DESTDIR)$(LIBDIR)/weechat/plugins -D -m 0644 xmpp.so
mkdir -p $(DESTDIR)$(LIBDIR)/weechat/plugins
cp xmpp.so $(DESTDIR)$(LIBDIR)/weechat/plugins/xmpp.so
chmod 644 $(DESTDIR)$(LIBDIR)/weechat/plugins/xmpp.so
else
$(INSTALL) -s -t ~/.weechat/plugins -D -m 0755 xmpp.so
mkdir -p ~/.weechat/plugins
cp xmpp.so ~/.weechat/plugins/xmpp.so
chmod 755 ~/.weechat/plugins/xmpp.so
endif
.PHONY: tags cs

@ -43,13 +43,19 @@
- libstrophe (dynamic, dependency)
- libxml2 (dynamic, dependency)
- glib (dynamic, dependency of libomemo)
- sqlite (dynamic, dependency of libomemo/axc)
- libsignal-protocol-c (dynamic, dependency of axc)
- weechat (>= v2.5)
.. or just use the guix spec in .envrc
* Building
#+begin_src sh
git clone git://github.com/bqv/weechat-xmpp.git
cd weechat-xmpp
git submodule update --init --recursive
make
make install
#+end_src

Loading…
Cancel
Save