summaryrefslogtreecommitdiffstats
path: root/www/varnish-libvmod-header/Makefile
blob: 4e4a537467f34c72a0f9a235746747850d2f2b75 (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
47
# New ports collection makefile for:	varnish-libvmod-header
# Date created:				2011-08-23
# Whom:					anders
#
# $FreeBSD$
#

PORTNAME=	libvmod-header
DISTVERSION=	0.3-4
CATEGORIES=	www
MASTER_SITES=	https://github.com/KristianLyng/libvmod-header/tarball/master/ \
		http://anders.fupp.net/distfiles/
PKGNAMEPREFIX=	varnish-
DISTNAME=	KristianLyng-${PORTNAME}-${VMOD_HEADER_HASH}
DISTFILES=	KristianLyng-${PORTNAME}-${DISTVERSION}-g${VMOD_HEADER_HASH}.tar.gz

MAINTAINER=	anders@FreeBSD.org
COMMENT=	Varnish Module (vmod) for manipulation of duplicated headers

LICENSE=	BSD

BUILD_DEPENDS=	${LOCALBASE}/include/varnish/varnishapi.h:${PORTSDIR}/www/varnish \
		rst2man:${PORTSDIR}/textproc/py-docutils

FETCH_ARGS=	-Fpr

USE_AUTOTOOLS=	aclocal libtool libtoolize autoheader automake autoconf
USE_GMAKE=	yes
ACLOCAL_ARGS=	-I m4
LIBTOOLFLAGS=	--copy --force
AUTOMAKE_ARGS=	--add-missing --copy --foreign
CONFIGURE_ENV=	LOCALBASE=${LOCALBASE}
CFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/varnish
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/varnish

VMOD_HEADER_HASH=	c8589c0

MAN3=		vmod_header.3

.include <bsd.port.pre.mk>

post-install:
.if !defined(BATCH)
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud