summaryrefslogtreecommitdiff
path: root/chat/carbons-purple/patches
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2018-11-27 19:25:05 +0000
committernia <nia@pkgsrc.org>2018-11-27 19:25:05 +0000
commitd690f9a91a223ffc89e433d2d40a82d288090a31 (patch)
tree115277ff7ef1204ff3ab61ab790cf8639e5ab403 /chat/carbons-purple/patches
parentda4ee96869f2524358e45e511cbae44cc49a9cbf (diff)
downloadpkgsrc-d690f9a91a223ffc89e433d2d40a82d288090a31.tar.gz
chat/carbons-purple: Import version 0.2.1
If you have multiple devices and want messages sent and received by one device show up on all others, XEP-0280: Message Carbons is what you are looking for. This is an experimental XMPP XEP-0280: Message Carbons plugin for libpurple (Pidgin, Finch, etc.)
Diffstat (limited to 'chat/carbons-purple/patches')
-rw-r--r--chat/carbons-purple/patches/patch-Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/chat/carbons-purple/patches/patch-Makefile b/chat/carbons-purple/patches/patch-Makefile
new file mode 100644
index 00000000000..b139832c339
--- /dev/null
+++ b/chat/carbons-purple/patches/patch-Makefile
@@ -0,0 +1,40 @@
+$NetBSD: patch-Makefile,v 1.1 2018/11/27 19:25:05 nia Exp $
+
+Needs -lpurple.
+
+--- Makefile.orig 2018-10-14 19:45:13.000000000 +0000
++++ Makefile
+@@ -2,14 +2,13 @@ PURPLE_PLUGIN_DIR=~/.purple/plugins
+ PIDGIN_DIR=./pidgin-2.11.0
+ PURPLE_PLUGIN_SRC_DIR=$(PIDGIN_DIR)/libpurple/plugins
+
+-CC ?= gcc
+-
+ PKG_CONFIG ?= pkg-config
+ GLIB_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags glib-2.0)
+ GLIB_LDFLAGS ?= $(shell $(PKG_CONFIG) --libs glib-2.0)
+
+ LIBPURPLE_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags purple)
+-LIBPURPLE_LDFLAGS ?= $(shell $(PKG_CONFIG) --cflags purple) \
++LIBPURPLE_LDFLAGS=$(shell $(PKG_CONFIG) --libs purple) \
++ -Wl,-R$(shell $(PKG_CONFIG) --variable=plugindir purple) \
+ -L$(shell $(PKG_CONFIG) --variable=plugindir purple)
+
+ XML2_CONFIG ?= xml2-config
+@@ -32,14 +31,10 @@ PKGCFG_L=$(GLIB_LDFLAGS) \
+ $(LIBPURPLE_LDFLAGS) \
+ $(XML2_LDFLAGS)
+
+-CFLAGS=-std=c11 -Wall -g -Wstrict-overflow -fPIC -shared -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE $(PKGCFG_C) $(HEADERS)
++CFLAGS+=-std=c11 -Wall -Wstrict-overflow -fPIC -shared -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE $(PKGCFG_C) $(HEADERS)
+ PLUGIN_CPPFLAGS=-DPURPLE_PLUGINS
+
+-ifneq ("$(wildcard /etc/redhat-release)","")
+- LJABBER?=-lxmpp
+-else
+- LJABBER?=-ljabber
+-endif
++LJABBER?=-ljabber
+ LFLAGS= -ldl -lm $(PKGCFG_L) $(LJABBER)
+
+ all: $(BDIR)/carbons.so