Initial import of libpurple (Pidgin, Finch) protocol plugin for LINE

version 0.1
This commit is contained in:
scole 2017-11-07 17:18:25 +00:00
parent 4e64aaa736
commit 1adaa86602

View file

@ -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) $@