summaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-01-23 23:38:27 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-01-23 23:38:27 +0800
commitcce314b4a186ac0f807b3973fede7945bc1fa7f5 (patch)
tree29085ef7757d7dbc54f6e802adcdda709523ace0 /net-im
parent886850d95a1a4277f881b52385bec60e3a72383f (diff)
downloadmarcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar.gz
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar.bz2
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar.lz
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar.xz
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.tar.zst
marcuscom-ports-cce314b4a186ac0f807b3973fede7945bc1fa7f5.zip
Add libnice 0.1.0. Shlib bump + small api change.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15072 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net-im')
-rw-r--r--net-im/libnice/Makefile33
-rw-r--r--net-im/libnice/distinfo2
-rw-r--r--net-im/libnice/files/patch-agent_interfaces.c19
-rw-r--r--net-im/libnice/files/patch-stun_md5.c10
-rw-r--r--net-im/libnice/files/patch-stun_sha1.c10
-rw-r--r--net-im/libnice/pkg-descr2
-rw-r--r--net-im/libnice/pkg-plist61
7 files changed, 137 insertions, 0 deletions
diff --git a/net-im/libnice/Makefile b/net-im/libnice/Makefile
new file mode 100644
index 000000000..532201b40
--- /dev/null
+++ b/net-im/libnice/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: libnice
+# Date created: 27 February 2009
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/net-im/libnice/Makefile,v 1.20 2011/01/01 16:32:00 marcus Exp $
+#
+
+PORTNAME= libnice
+PORTVERSION= 0.1.0
+CATEGORIES= net-im devel
+MASTER_SITES= http://nice.freedesktop.org/releases/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Library and transmitter that implements ICE-19
+
+USE_GMAKE= yes
+USE_GETTEXT= yes
+USE_LDCONFIG= yes
+USE_GNOME= gnomehack pkgconfig glib20 ltverhack gnometarget
+USE_GSTREAMER= yes
+USE_AUTOTOOLS= libtool
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DHAVE_GETIFADDRS" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+post-patch:
+ @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|-Wno-missing-field-initializers|#|g'
+ @${REINPLACE_CMD} -e 's|-Wno-missing-field-initializers|#|g' \
+ ${WRKSRC}/common.mk
+ @${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \
+ ${WRKSRC}/configure ${WRKSRC}/config.h.in
+
+.include <bsd.port.mk>
diff --git a/net-im/libnice/distinfo b/net-im/libnice/distinfo
new file mode 100644
index 000000000..b9cc803be
--- /dev/null
+++ b/net-im/libnice/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libnice-0.1.0.tar.gz) = c79b85f53c63fc676c6f84f4a40a5e210106cc7856ba17580fc2716f36c720ff
+SIZE (libnice-0.1.0.tar.gz) = 655234
diff --git a/net-im/libnice/files/patch-agent_interfaces.c b/net-im/libnice/files/patch-agent_interfaces.c
new file mode 100644
index 000000000..d3d33d3a3
--- /dev/null
+++ b/net-im/libnice/files/patch-agent_interfaces.c
@@ -0,0 +1,19 @@
+--- agent/interfaces.c.orig 2010-07-20 17:54:40.000000000 -0400
++++ agent/interfaces.c 2010-07-24 20:24:19.000000000 -0400
+@@ -46,6 +46,7 @@
+ #include <ifaddrs.h>
+ #endif
+
++#include <netinet/in.h>
+ #include <net/if.h>
+ #include <net/if_arp.h>
+ #include <arpa/inet.h>
+@@ -198,7 +199,7 @@ nice_interfaces_get_local_ips (gboolean
+ struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
+
+ /* Skip link-local addresses, they require a scope */
+- if (IN6_IS_ADDR_LINKLOCAL (sa6->sin6_addr.s6_addr))
++ if (IN6_IS_ADDR_LINKLOCAL (&sa6->sin6_addr))
+ continue;
+
+ if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
diff --git a/net-im/libnice/files/patch-stun_md5.c b/net-im/libnice/files/patch-stun_md5.c
new file mode 100644
index 000000000..8f787548f
--- /dev/null
+++ b/net-im/libnice/files/patch-stun_md5.c
@@ -0,0 +1,10 @@
+--- stun/md5.c.orig 2009-02-27 23:04:31.000000000 -0500
++++ stun/md5.c 2009-02-27 23:05:15.000000000 -0500
+@@ -13,6 +13,7 @@
+ */
+
+ #include "md5.h"
++#include <sys/endian.h>
+ #include <string.h>
+
+ /* ===== start - public domain MD5 implementation ===== */
diff --git a/net-im/libnice/files/patch-stun_sha1.c b/net-im/libnice/files/patch-stun_sha1.c
new file mode 100644
index 000000000..33e3775b2
--- /dev/null
+++ b/net-im/libnice/files/patch-stun_sha1.c
@@ -0,0 +1,10 @@
+--- stun/sha1.c.orig 2009-02-27 23:05:24.000000000 -0500
++++ stun/sha1.c 2009-02-27 23:05:33.000000000 -0500
+@@ -13,6 +13,7 @@
+ */
+
+ #include "sha1.h"
++#include <sys/endian.h>
+ #include <string.h>
+
+
diff --git a/net-im/libnice/pkg-descr b/net-im/libnice/pkg-descr
new file mode 100644
index 000000000..93cfe2b54
--- /dev/null
+++ b/net-im/libnice/pkg-descr
@@ -0,0 +1,2 @@
+Libnice is a library and a transmitter that does ICE (as defined in the ICE-19
+draft), as well as Google Talk and MSN compatible ICE-like protocols.
diff --git a/net-im/libnice/pkg-plist b/net-im/libnice/pkg-plist
new file mode 100644
index 000000000..c4fae3bc7
--- /dev/null
+++ b/net-im/libnice/pkg-plist
@@ -0,0 +1,61 @@
+bin/stunbdc
+bin/stund
+include/nice/address.h
+include/nice/agent.h
+include/nice/candidate.h
+include/nice/debug.h
+include/nice/interfaces.h
+include/nice/nice.h
+include/nice/pseudotcp.h
+include/stun/constants.h
+include/stun/debug.h
+include/stun/stunagent.h
+include/stun/stunmessage.h
+include/stun/usages/bind.h
+include/stun/usages/ice.h
+include/stun/usages/timer.h
+include/stun/usages/turn.h
+include/stun/win32_common.h
+lib/gstreamer-0.10/libgstnice.a
+lib/gstreamer-0.10/libgstnice.la
+lib/gstreamer-0.10/libgstnice.so
+lib/libnice.a
+lib/libnice.la
+lib/libnice.so
+lib/libnice.so.10
+libdata/pkgconfig/nice.pc
+share/gtk-doc/html/libnice/NiceAgent.html
+share/gtk-doc/html/libnice/ch01.html
+share/gtk-doc/html/libnice/ch02.html
+share/gtk-doc/html/libnice/ch03.html
+share/gtk-doc/html/libnice/ch04.html
+share/gtk-doc/html/libnice/ch05.html
+share/gtk-doc/html/libnice/home.png
+share/gtk-doc/html/libnice/index.html
+share/gtk-doc/html/libnice/index.sgml
+share/gtk-doc/html/libnice/left.png
+share/gtk-doc/html/libnice/libnice-Bind.html
+share/gtk-doc/html/libnice/libnice-Debug-messages.html
+share/gtk-doc/html/libnice/libnice-ICE.html
+share/gtk-doc/html/libnice/libnice-Network-interfaces-discovery.html
+share/gtk-doc/html/libnice/libnice-NiceAddress.html
+share/gtk-doc/html/libnice/libnice-NiceCandidate.html
+share/gtk-doc/html/libnice/libnice-Pseudo-TCP-Socket.html
+share/gtk-doc/html/libnice/libnice-StunAgent.html
+share/gtk-doc/html/libnice/libnice-StunMessage.html
+share/gtk-doc/html/libnice/libnice-TURN.html
+share/gtk-doc/html/libnice/libnice-Timer.html
+share/gtk-doc/html/libnice/libnice.devhelp
+share/gtk-doc/html/libnice/libnice.devhelp2
+share/gtk-doc/html/libnice/pt01.html
+share/gtk-doc/html/libnice/pt02.html
+share/gtk-doc/html/libnice/pt03.html
+share/gtk-doc/html/libnice/right.png
+share/gtk-doc/html/libnice/style.css
+share/gtk-doc/html/libnice/up.png
+@dirrm share/gtk-doc/html/libnice
+@dirrmtry share/gtk-doc/html
+@dirrmtry share/gtk-doc
+@dirrm include/stun/usages
+@dirrm include/stun
+@dirrm include/nice