pkgsrc/www/wslay/Makefile
adam 67c7f5c083 Wslay is a WebSocket library written in C. It implements the protocol version
13 described in RFC 6455. This library offers 2 levels of API: event-based API
and frame-based low-level API. For event-based API, it is suitable for
non-blocking reactor pattern style. You can set callbacks in various events.
For frame-based API, you can send WebSocket frame directly. Wslay only supports
data transfer part of WebSocket protocol and does not perform opening handshake
in HTTP.

Wslay supports:
* Text/Binary messages.
* Automatic ping reply.
* Callback interface.
* External event loop.

Wslay does not perform any I/O operations for its own. Instead, it
offers callbacks for them. This makes Wslay independent on any I/O
frameworks, SSL, sockets, etc.  This makes Wslay protable across
various platforms and the application authors can choose freely I/O
frameworks.
2016-04-23 18:32:09 +00:00

32 lines
950 B
Makefile

# $NetBSD: Makefile,v 1.1 2016/04/23 18:32:09 adam Exp $
DISTNAME= wslay-1.0.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=tatsuhiro-t/}
GITHUB_TAG= release-${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/tatsuhiro-t/wslay/
COMMENT= WebSocket library written in C
LICENSE= mit
# parallel build fails when building man-pages with sphinx
MAKE_JOBS_SAFE= no
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.3.4:../../textproc/py-sphinx
USE_LANGUAGES= c
USE_LIBTOOL= yes
USE_TOOLS+= autoconf automake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ENV+= SPHINX_BUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
PKGCONFIG_OVERRIDE+= lib/libwslay.pc.in
pre-configure:
cd ${WRKSRC} && autoreconf -i && automake && autoconf
# Only needed for examples
#.include "../../devel/cunit/buildlink3.mk"
#.include "../../security/nettle/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"