Permalink
Browse files

Add net/libstrophe. libstrophe is a small XMPP client written in C.

Needed for net/profanity (incoming).
  • Loading branch information...
1 parent 267ac50 commit d969c4bb249f1afdbc559a7752995944b00740f0 @ibara ibara committed Mar 30, 2014
View
@@ -68,3 +68,4 @@ devel/p5-Term-VT102-Boundless ready for import, sent to ports@ 2014-03-11
devel/p5-Term-VT102 ready for import, sent to ports@ 2014-03-11
games/galois ready for import (bcallah@)
graphics/lumee ready for import (bcallah@)
+net/libstrophe ready for import (bcallah@)
View
@@ -0,0 +1,38 @@
+# $OpenBSD$
+
+COMMENT = simple, lightweight XMPP C library
+DISTNAME = libstrophe-0.8
+CATEGORIES = net devel
+
+HOMEPAGE = http://strophe.im/libstrophe/
+MAINTAINER = Brian Callahan <bcallah@openbsd.org>
+
+# Dual licensed: MIT and GPLv3
+PERMIT_PACKAGE_CDROM = Yes
+
+MASTER_SITES = http://devio.us/~bcallah/source/
+
+BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
+ ${MODGNU_AUTOMAKE_DEPENDS}
+
+# Only needed for tests, but cannot be a TEST_DEPENDS.
+# Check must be present at build time for tests to work.
+BUILD_DEPENDS += devel/check
+
+CONFIGURE_STYLE = gnu
+
+MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}"
+
+AUTOCONF_VERSION = 2.69
+AUTOMAKE_VERSION = 1.11
+
+pre-configure:
+ cd ${WRKSRC} && \
+ ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
+ AUTOCONF_VERSION=${AUTOCONF_VERSION} aclocal -I${TRUEPREFIX}/share/aclocal-${AUTOMAKE_VERSION} && \
+ ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
+ AUTOCONF_VERSION=${AUTOCONF_VERSION} automake --add-missing --foreign --copy && \
+ ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
+ AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf
+
+.include <bsd.port.mk>
View
@@ -0,0 +1,2 @@
+SHA256 (libstrophe-0.8.tar.gz) = 8J/L57g1SdwnEDUXo2ogNnNIM17uj02m1LV6PkxQZ7E=
+SIZE (libstrophe-0.8.tar.gz) = 110015
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.ac.orig Sat Mar 29 23:26:44 2014
++++ configure.ac Sat Mar 29 23:26:51 2014
+@@ -43,7 +43,7 @@ fi
+ AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser])
+ AC_SEARCH_LIBS([socket], [socket])
+
+-AC_LINK_IFELSE([AC_LANG_CALL([#include <resolv.h>], [res_query])], [],[LIBS="$LIBS -lresolv"])
++AC_LINK_IFELSE([AC_LANG_CALL([#include <resolv.h>], [res_query])], [],[LIBS="$LIBS"])
+
+ AC_CHECK_HEADERS([arpa/nameser_compat.h])
+
View
@@ -0,0 +1,3 @@
+libstrophe is a minimal XMPP library written in C. It has almost no
+external dependencies, only an XML parsing library (expat or libxml are
+both supported). It is designed for both POSIX and Windows systems.
View
@@ -0,0 +1,3 @@
+@comment $OpenBSD$
+include/strophe.h
+lib/libstrophe.a

0 comments on commit d969c4b

Please sign in to comment.