pkgsrc/www/h2o/Makefile
nia 19c887e138 h2o: Update to 2.2.6 and build shared libraries.
From @Habbie on GitHub.  Closes NetBSD/pkgsrc#56

Changes:

2.2.6 2019-08-13 17:00:00+0000
	- [security fix][http2] fix HTTP/2 DoS attack vectors CVE-2019-9512 CVE-2019-9514 CVE-2019-9515 #2090 (Kazuho Oku)
2020-03-21 14:16:04 +00:00

39 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2020/03/21 14:16:04 nia Exp $
DISTNAME= h2o-2.2.6
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=h2o/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/h2o/h2o
COMMENT= Optimized HTTP server with support for HTTP/1.x and HTTP/2
LICENSE= mit
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= perl:run pkg-config
PKGCONFIG_OVERRIDE+= libh2o-evloop.pc.in
PKGCONFIG_OVERRIDE+= libh2o.pc.in
CMAKE_ARGS+= -DWITH_BUNDLED_SSL=off
# TODO: make it an option
CMAKE_ARGS+= -DWITH_MRUBY=off
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=on
SUBST_CLASSES+= interp
SUBST_STAGE.interp= post-extract
SUBST_MESSAGE.interp= Fixing interpreter.
SUBST_FILES.interp= share/h2o/*
SUBST_SED.interp= -e 's,^\#\! /bin/sh,\#\!/bin/perl,'
SUBST_SED.interp+= -e '/^exec perl/d'
SUBST_SED.interp+= -e '/\#\! perl/d'
REPLACE_PERL= share/h2o/*
.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libyaml/buildlink3.mk"
.include "../../www/wslay/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"