summaryrefslogtreecommitdiff
path: root/net/libexosip
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2013-07-16 02:12:26 +0000
committerrodent <rodent@pkgsrc.org>2013-07-16 02:12:26 +0000
commit05d7f9e022414a269704f2b0d80125502e2fb35e (patch)
tree2b7ba160eac9e8c34caa7c72f06b931507f0a639 /net/libexosip
parentf0ddde55e076309c5681a598c670f96d8d31a9ab (diff)
downloadpkgsrc-05d7f9e022414a269704f2b0d80125502e2fb35e.tar.gz
Import libeXosip2-4.0.0 as net/libexosip.
libeXosip is a library that hides the complexity of using the SIP protocol for mutlimedia session establishement.
Diffstat (limited to 'net/libexosip')
-rw-r--r--net/libexosip/DESCR2
-rw-r--r--net/libexosip/Makefile24
-rw-r--r--net/libexosip/PLIST12
-rw-r--r--net/libexosip/buildlink3.mk23
-rw-r--r--net/libexosip/distinfo7
-rw-r--r--net/libexosip/options.mk14
-rw-r--r--net/libexosip/patches/patch-aa17
-rw-r--r--net/libexosip/patches/patch-ab21
8 files changed, 120 insertions, 0 deletions
diff --git a/net/libexosip/DESCR b/net/libexosip/DESCR
new file mode 100644
index 00000000000..fe0be01f8f3
--- /dev/null
+++ b/net/libexosip/DESCR
@@ -0,0 +1,2 @@
+libeXosip is a library that hides the complexity of using the SIP protocol
+for mutlimedia session establishement.
diff --git a/net/libexosip/Makefile b/net/libexosip/Makefile
new file mode 100644
index 00000000000..f7eb0563ffe
--- /dev/null
+++ b/net/libexosip/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+DISTNAME= libeXosip2-4.0.0
+CATEGORIES= devel net
+MASTER_SITES= http://download.savannah.nongnu.org/releases/exosip/
+
+MAINTAINER= schwarz@NetBSD.org
+HOMEPAGE= http://savannah.nongnu.org/projects/exosip
+COMMENT= The Extended Open SIP library
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+USE_FEATURES+= getopt_long
+
+.include "options.mk"
+
+LIBS.SunOS+= -lsocket -lnsl
+
+.include "../../net/libcares/buildlink3.mk"
+.include "../../devel/libosip/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/libexosip/PLIST b/net/libexosip/PLIST
new file mode 100644
index 00000000000..49e7af1003c
--- /dev/null
+++ b/net/libexosip/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2013/07/16 02:12:26 rodent Exp $
+bin/sip_reg
+include/eXosip2/eX_call.h
+include/eXosip2/eX_message.h
+include/eXosip2/eX_options.h
+include/eXosip2/eX_publish.h
+include/eXosip2/eX_refer.h
+include/eXosip2/eX_register.h
+include/eXosip2/eX_setup.h
+include/eXosip2/eX_subscribe.h
+include/eXosip2/eXosip.h
+lib/libeXosip2.la
diff --git a/net/libexosip/buildlink3.mk b/net/libexosip/buildlink3.mk
new file mode 100644
index 00000000000..9f46d4c2a7f
--- /dev/null
+++ b/net/libexosip/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+BUILDLINK_TREE+= libexosip2
+
+.if !defined(LIBEXOSIP2_BUILDLINK3_MK)
+LIBEXOSIP2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libexosip2+= libeXosip2>=3.5.0
+BUILDLINK_PKGSRCDIR.libexosip2?= ../../net/libexosip
+
+pkgbase := libeXosip2
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.libeXosip2:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
+.endif
+
+.include "../../net/libcares/buildlink3.mk"
+.include "../../devel/libosip/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.endif # LIBEXOSIP2_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libexosip2
diff --git a/net/libexosip/distinfo b/net/libexosip/distinfo
new file mode 100644
index 00000000000..38b3a882d1c
--- /dev/null
+++ b/net/libexosip/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+SHA1 (libeXosip2-4.0.0.tar.gz) = e5b50c20395db3dd50577af4363ad7a0c2f9de6e
+RMD160 (libeXosip2-4.0.0.tar.gz) = 4134a1e15d00938bdf819d4d6ec60583a2ea62da
+Size (libeXosip2-4.0.0.tar.gz) = 526339 bytes
+SHA1 (patch-aa) = 0f7acee4031a827998bde64b4dc847b0831ea5e3
+SHA1 (patch-ab) = 929e7949d783a6065bb34c1a622284ad4ad24603
diff --git a/net/libexosip/options.mk b/net/libexosip/options.mk
new file mode 100644
index 00000000000..03047a1750e
--- /dev/null
+++ b/net/libexosip/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libeXosip2
+PKG_SUPPORTED_OPTIONS= openssl
+PKG_SUGGESTED_OPTIONS+= openssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-openssl
+.else
+CONFIGURE_ARGS+= --disable-openssl
+.endif
diff --git a/net/libexosip/patches/patch-aa b/net/libexosip/patches/patch-aa
new file mode 100644
index 00000000000..8a16b6fe34f
--- /dev/null
+++ b/net/libexosip/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+Defines INADDR_NONE, which is needed on Solaris.
+
+--- src/eXutils.c.orig 2012-11-26 10:04:37.000000000 +0000
++++ src/eXutils.c
+@@ -542,6 +542,10 @@ _eXosip_guess_ip_for_via (struct eXosip_
+
+ #include <stdio.h>
+
++#ifndef INADDR_NONE
++#define INADDR_NONE ((unsigned long) -1) /* needed on Solaris */
++#endif
++
+ static int _eXosip_default_gateway_ipv4 (struct eXosip_t *excontext, char *address, int size);
+
+ static int _eXosip_default_gateway_ipv6 (struct eXosip_t *excontext, char *address, int size);
diff --git a/net/libexosip/patches/patch-ab b/net/libexosip/patches/patch-ab
new file mode 100644
index 00000000000..c55141f60a2
--- /dev/null
+++ b/net/libexosip/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 2013/07/16 02:12:26 rodent Exp $
+
+Pull in NetBSD compatibility headers for use with other headers.
+
+--- tools/sip_reg.c.orig 2012-11-15 17:51:44.000000000 +0000
++++ tools/sip_reg.c
+@@ -56,8 +56,14 @@
+
+ #if !defined(WIN32) && !defined(_WIN32_WCE) && !defined(__arc__)
+ #define _GNU_SOURCE
++#if defined(HAVE_NBCOMPAT_H)
++#include <nbcompat/config.h> /* needed for the other headers */
++#include <nbcompat/cdefs.h> /* needed for the other headers */
++#include <nbcompat/getopt.h>
++#else
+ #include <getopt.h>
+ #endif
++#endif
+
+ #define PROG_NAME "sipreg"
+ #define PROG_VER "1.0"