File:  [cvs.NetBSD.org] / pkgsrc / www / h2o / Makefile
Revision 1.16: download - view: text, annotated - select for diffs
Sun Jul 30 22:32:25 2017 UTC (7 years, 4 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, HEAD
Switch github HOMEPAGEs to https.

# $NetBSD: Makefile,v 1.16 2017/07/30 22:32:25 wiz Exp $

DISTNAME=	h2o-2.2.0
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_GITHUB:=h2o/}

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

GITHUB_TAG=	v${PKGVERSION_NOREV}

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

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"

CVSweb <webmaster@jp.NetBSD.org>