diff options
author | adam <adam@pkgsrc.org> | 2020-01-20 17:25:10 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2020-01-20 17:25:10 +0000 |
commit | 5dbe6e695e175d68d8256dc86ff4141370ddf18d (patch) | |
tree | 482f8a4220e5b541257ad842eb9a684eb266cbfb | |
parent | 21242328b9369e400e3e2816c512a006ce506f72 (diff) | |
download | pkgsrc-5dbe6e695e175d68d8256dc86ff4141370ddf18d.tar.gz |
libgadu: added version 1.12.2
libgadu is library for handling Gadu-Gadu instant messenger protocol. For a
long time it was an intergral part of ekg application but due to packaging
issues and use in other appliactions it became a project on its own.
Proprietary protocol was reverse engineered which may make libgadu less than
100% compatible with the original.
-rw-r--r-- | chat/Makefile | 3 | ||||
-rw-r--r-- | chat/libgadu/DESCR | 5 | ||||
-rw-r--r-- | chat/libgadu/Makefile | 36 | ||||
-rw-r--r-- | chat/libgadu/PLIST | 4 | ||||
-rw-r--r-- | chat/libgadu/buildlink3.mk | 16 | ||||
-rw-r--r-- | chat/libgadu/distinfo | 8 | ||||
-rw-r--r-- | chat/libgadu/patches/patch-configure.ac | 15 | ||||
-rw-r--r-- | chat/libgadu/patches/patch-protobufgen.sh | 17 |
8 files changed, 103 insertions, 1 deletions
diff --git a/chat/Makefile b/chat/Makefile index c1b2188e32c..739d66a8185 100644 --- a/chat/Makefile +++ b/chat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.236 2020/01/16 13:44:19 nia Exp $ +# $NetBSD: Makefile,v 1.237 2020/01/20 17:25:10 adam Exp $ # COMMENT= Communication programs @@ -67,6 +67,7 @@ SUBDIR+= ktp-filetransfer-handler SUBDIR+= ktp-kded-integration-module SUBDIR+= ktp-send-file SUBDIR+= ktp-text-ui +SUBDIR+= libgadu SUBDIR+= libfolks SUBDIR+= libirc SUBDIR+= libmsn diff --git a/chat/libgadu/DESCR b/chat/libgadu/DESCR new file mode 100644 index 00000000000..fc4967441db --- /dev/null +++ b/chat/libgadu/DESCR @@ -0,0 +1,5 @@ +libgadu is library for handling Gadu-Gadu instant messenger protocol. For a +long time it was an intergral part of ekg application but due to packaging +issues and use in other appliactions it became a project on its own. +Proprietary protocol was reverse engineered which may make libgadu less than +100% compatible with the original. diff --git a/chat/libgadu/Makefile b/chat/libgadu/Makefile new file mode 100644 index 00000000000..a8e3fe0fb65 --- /dev/null +++ b/chat/libgadu/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2020/01/20 17:25:10 adam Exp $ + +DISTNAME= libgadu-1.12.2 +CATEGORIES= chat +MASTER_SITES= ${MASTER_SITE_GITHUB:=wojtekka/} + +MAINTAINER= adam@NetBSD.org +HOMEPAGE= http://libgadu.net/ +COMMENT= Library for handling the protocol of Gadu-Gadu +LICENSE= gnu-lgpl-v2.1 + +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_TOOLS+= autoconf automake gmake perl:test pkg-config +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-openssl +CONFIGURE_ARGS+= --without-bind +CONFIGURE_ARGS+= --without-gnutls +# XXX: https://github.com/wojtekka/libgadu/issues/25 +CONFIGURE_ARGS+= --without-pthread +PKGCONFIG_OVERRIDE+= pkgconfig/libgadu.pc.in +TEST_TARGET= check + +REPLACE_PERL= test/protocol/compile + +pre-configure: + cd ${WRKSRC} && \ + ${SETENV} NOCONFIGURE=no ${SH} ./autogen.sh + +.include "../../devel/protobuf-c/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +#.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/libgadu/PLIST b/chat/libgadu/PLIST new file mode 100644 index 00000000000..6b0337bd285 --- /dev/null +++ b/chat/libgadu/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2020/01/20 17:25:10 adam Exp $ +include/libgadu.h +lib/libgadu.la +lib/pkgconfig/libgadu.pc diff --git a/chat/libgadu/buildlink3.mk b/chat/libgadu/buildlink3.mk new file mode 100644 index 00000000000..f912735a7f7 --- /dev/null +++ b/chat/libgadu/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/01/20 17:25:10 adam Exp $ + +BUILDLINK_TREE+= libgadu + +.if !defined(LIBGADU_BUILDLINK3_MK) +LIBGADU_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libgadu+= libgadu>=1.12.2 +BUILDLINK_PKGSRCDIR.libgadu?= ../../chat/libgadu + +.include "../../devel/protobuf-c/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.endif # LIBGADU_BUILDLINK3_MK + +BUILDLINK_TREE+= -libgadu diff --git a/chat/libgadu/distinfo b/chat/libgadu/distinfo new file mode 100644 index 00000000000..f3ede180f1b --- /dev/null +++ b/chat/libgadu/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2020/01/20 17:25:10 adam Exp $ + +SHA1 (libgadu-1.12.2.tar.gz) = 252ecade86e0d53ff30c4ece71b764c571b28b2a +RMD160 (libgadu-1.12.2.tar.gz) = 5d67b799710d42985b18bef15ddfc9e2f2eb5309 +SHA512 (libgadu-1.12.2.tar.gz) = d3b4fde94327ef312b1df668b8eb73fea9325c9258d85aa65e2746b73f00c2606ebe23f3330493a135a0fec1d0f24988f0cec607d4d899d880853ee8bf60e677 +Size (libgadu-1.12.2.tar.gz) = 298884 bytes +SHA1 (patch-configure.ac) = 7e25edf3aa50ec2bb1cca842686b1af08ecd6530 +SHA1 (patch-protobufgen.sh) = 27cc83cff2a20b24fef5e1c8c87140a0e91fdbbc diff --git a/chat/libgadu/patches/patch-configure.ac b/chat/libgadu/patches/patch-configure.ac new file mode 100644 index 00000000000..a2e69fb0674 --- /dev/null +++ b/chat/libgadu/patches/patch-configure.ac @@ -0,0 +1,15 @@ +$NetBSD: patch-configure.ac,v 1.1 2020/01/20 17:25:10 adam Exp $ + +Portability fix. + +--- configure.ac.orig 2020-01-17 21:30:01.000000000 +0000 ++++ configure.ac +@@ -461,7 +461,7 @@ dnl + AC_ARG_ENABLE(werror, + [ --enable-werror halt on warnings]) + +-if test "x$enable_werror" == "xyes"; then ++if test "x$enable_werror" = "xyes"; then + CFLAGS="$CFLAGS -Werror" + fi + diff --git a/chat/libgadu/patches/patch-protobufgen.sh b/chat/libgadu/patches/patch-protobufgen.sh new file mode 100644 index 00000000000..15231ed4cfb --- /dev/null +++ b/chat/libgadu/patches/patch-protobufgen.sh @@ -0,0 +1,17 @@ +$NetBSD: patch-protobufgen.sh,v 1.1 2020/01/20 17:25:10 adam Exp $ + +Portability fix. + +--- protobufgen.sh.orig 2020-01-17 21:22:08.000000000 +0000 ++++ protobufgen.sh +@@ -42,8 +42,8 @@ if [ "x$PROTOC_LEGACY" = "xyes" ]; then + sed -i 's/PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC/PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC/g' packets.pb-c.c + sed -i 's/PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC/PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC/g' packets.pb-c.c + else +- sed -i 's/<protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h ++ sed 's/<protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h > include/packets.pb-c.h + fi + +-mv packets.pb-c.h include ++rm packets.pb-c.h + mv packets.pb-c.c src |