summaryrefslogtreecommitdiff
path: root/www/spdylay/Makefile
blob: fe4b98bc57a2dd6d76c01a5967cac5363219768f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.10 2020/11/05 09:07:13 ryoon Exp $

DISTNAME=	spdylay-1.4.0
PKGREVISION=	3
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_GITHUB:=tatsuhiro-t/}
EXTRACT_SUFX=	.tar.xz

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}

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config
GNU_CONFIGURE=		yes

CONFIGURE_ARGS=		--enable-examples
CONFIGURE_ARGS+=	--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"

PKGCONFIG_OVERRIDE+=	lib/libspdylay.pc.in

.include "../../mk/bsd.prefs.mk"

CPPFLAGS+=		-D__STDC_LIMIT_MACROS

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

.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"