summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/spdylay/DESCR2
-rw-r--r--www/spdylay/Makefile42
-rw-r--r--www/spdylay/PLIST9
-rw-r--r--www/spdylay/buildlink3.mk18
-rw-r--r--www/spdylay/distinfo6
-rw-r--r--www/spdylay/patches/patch-src_shrpx.cc15
6 files changed, 92 insertions, 0 deletions
diff --git a/www/spdylay/DESCR b/www/spdylay/DESCR
new file mode 100644
index 00000000000..9efba42d9f8
--- /dev/null
+++ b/www/spdylay/DESCR
@@ -0,0 +1,2 @@
+This is an experimental implementation of Google's SPDY protocol in C. This
+library provides SPDY version 2, 3 and 3.1 framing layer implementation.
diff --git a/www/spdylay/Makefile b/www/spdylay/Makefile
new file mode 100644
index 00000000000..b6404e0fdcf
--- /dev/null
+++ b/www/spdylay/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2015/06/03 11:00:15 fhajny Exp $
+
+DISTNAME= spdylay-1.3.2
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=tatsuhiro-t/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/tatsuhiro-t/spdylay/
+COMMENT= Experimental SPDY protocol version 2, 3 and 3.1 implementation in C
+LICENSE= mit
+
+GITHUB_RELEASE= v${PKGVERSION_NOREV}
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= lib/libspdylay.pc.in
+
+CONFIGURE_ARGS= --enable-examples --enable-src
+CONFIGURE_ENV+= LIBEVENT_OPENSSL_CFLAGS="-I${BUILDLINK_PREFIX.libevent}/include"
+CONFIGURE_ENV+= LIBEVENT_OPENSSL_LIBS="-L${BUILDLINK_PREFIX.libevent}/lib -levent_openssl -levent"
+
+.include "../../mk/bsd.prefs.mk"
+
+LIBS.SunOS+= -lsocket
+
+# bin/spdyd requires epoll or kqueue
+PLIST_VARS+= spdyd
+.if ${OPSYS} != "SunOS"
+PLIST.spdyd= yes
+.endif
+
+BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.8
+BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.1
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/spdylay/PLIST b/www/spdylay/PLIST
new file mode 100644
index 00000000000..9a07bb4d566
--- /dev/null
+++ b/www/spdylay/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2015/06/03 11:00:15 fhajny Exp $
+bin/shrpx
+bin/spdycat
+${PLIST.spdyd}bin/spdyd
+include/spdylay/spdylay.h
+include/spdylay/spdylayver.h
+lib/libspdylay.la
+lib/pkgconfig/libspdylay.pc
+share/doc/spdylay/README.rst
diff --git a/www/spdylay/buildlink3.mk b/www/spdylay/buildlink3.mk
new file mode 100644
index 00000000000..83413318cce
--- /dev/null
+++ b/www/spdylay/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/06/03 11:00:15 fhajny Exp $
+
+BUILDLINK_TREE+= spdylay
+
+.if !defined(SPDYLAY_BUILDLINK3_MK)
+SPDYLAY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.spdylay+= spdylay>=1.3.2
+BUILDLINK_ABI_DEPENDS.spdylay+= spdylay>=1.3.2
+BUILDLINK_PKGSRCDIR.spdylay?= ../../www/spdylay
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.endif # SPDYLAY_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -spdylay
diff --git a/www/spdylay/distinfo b/www/spdylay/distinfo
new file mode 100644
index 00000000000..acb04e7912f
--- /dev/null
+++ b/www/spdylay/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/06/03 11:00:15 fhajny Exp $
+
+SHA1 (spdylay-1.3.2.tar.gz) = 3b6b1c3d0df223d826c06e72456c74a2e97cf7c4
+RMD160 (spdylay-1.3.2.tar.gz) = 8cda3f2e8130c68e0addfc4368b52f08597c2379
+Size (spdylay-1.3.2.tar.gz) = 936830 bytes
+SHA1 (patch-src_shrpx.cc) = 035a348dfcce942003d9c518001ad816ac04c8a7
diff --git a/www/spdylay/patches/patch-src_shrpx.cc b/www/spdylay/patches/patch-src_shrpx.cc
new file mode 100644
index 00000000000..91e973caacb
--- /dev/null
+++ b/www/spdylay/patches/patch-src_shrpx.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_shrpx.cc,v 1.1 2015/06/03 11:00:15 fhajny Exp $
+
+Fixes SSIZE_MAX not declared.
+
+--- src/shrpx.cc.orig 2015-03-12 15:39:31.000000000 +0000
++++ src/shrpx.cc
+@@ -36,7 +36,7 @@
+ #include <getopt.h>
+ #include <syslog.h>
+
+-#include <limits>
++#include <limits.h>
+ #include <cstdlib>
+ #include <iostream>
+ #include <fstream>