summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorscole <scole@pkgsrc.org>2017-11-07 17:18:25 +0000
committerscole <scole@pkgsrc.org>2017-11-07 17:18:25 +0000
commit12b77c92f08cbd856ef28cc6818b06c7a41dd236 (patch)
tree19ee29ea16ad30ace0147aaef21f76f6f9332092 /chat
parenta0879d827978e39f0dd93ed4ac990c045a5063c9 (diff)
downloadpkgsrc-12b77c92f08cbd856ef28cc6818b06c7a41dd236.tar.gz
Initial import of libpurple (Pidgin, Finch) protocol plugin for LINE
version 0.1
Diffstat (limited to 'chat')
-rw-r--r--chat/line-purple/patches/patch-libpurple_Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/chat/line-purple/patches/patch-libpurple_Makefile b/chat/line-purple/patches/patch-libpurple_Makefile
new file mode 100644
index 00000000000..ddaa1bf8175
--- /dev/null
+++ b/chat/line-purple/patches/patch-libpurple_Makefile
@@ -0,0 +1,35 @@
+$NetBSD: patch-libpurple_Makefile,v 1.1 2017/11/07 17:18:25 scole Exp $
+
+Modify for libtool
+
+--- libpurple/Makefile.orig 2017-03-30 23:35:47.000000000 +0000
++++ libpurple/Makefile 2017-07-04 11:22:31.000000000 +0000
+@@ -15,10 +15,10 @@ CXX ?= g++
+ CXXFLAGS = -g -Wall -shared -fPIC \
+ -DHAVE_INTTYPES_H -DHAVE_CONFIG_H -DPURPLE_PLUGINS \
+ `pkg-config --cflags purple` `libgcrypt-config --cflags` `gpg-error-config --cflags` \
+- $(THRIFT_CXXFLAGS)
++ `pkg-config --cflags libidn` $(THRIFT_CXXFLAGS)
+
+ LIBS = `pkg-config --libs purple` `libgcrypt-config --libs` `gpg-error-config --libs` \
+- $(THRIFT_LIBS)
++ `pkg-config --libs libidn` $(THRIFT_LIBS)
+
+ PURPLE_PLUGIN_DIR:=$(shell pkg-config --variable=plugindir purple)
+ PURPLE_DATA_ROOT_DIR:=$(shell pkg-config --variable=datarootdir purple)
+@@ -39,11 +39,12 @@ OBJS = $(SRCS:.cpp=.o)
+ all: $(MAIN)
+
+ $(MAIN): $(OBJS) $(THRIFT_DEP)
+- $(CXX) $(CXXFLAGS) -Wl,-z,defs -o $(MAIN) $(OBJS) $(LIBS)
+- strip $(MAIN)
++ $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) \
++ -module -avoid-version -o $(MAIN:.so=.la) $(OBJS:.o=.lo) $(LIBS:.a=.la) \
++ -rpath $(PREFIX)/lib/purple-2
+
+ .cpp.o:
+- $(CXX) $(CXXFLAGS) -std=c++11 -c $< -o $@
++ $(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) -std=c++11 -c $< -o $@
+
+ # The Thrift generator generates three files at once, this file shall represent them.
+ thrift_line/TalkService.cpp: line.thrift $(THRIFT_DEP) $@