# Created by: anders
# $FreeBSD: tags/RELEASE_10_1_0/www/varnish-libvmod-header/Makefile 360171 2014-07-02 12:27:43Z tijl $

PORTNAME=	libvmod-header
DISTVERSION=	0.3-5
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	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

USES=		gmake libtool pkgconfig
USE_AUTOTOOLS=	aclocal libtoolize autoheader automake autoconf
ACLOCAL_ARGS=	-I m4
AUTOMAKE_ARGS=	--add-missing --copy --foreign
CONFIGURE_ARGS=	--disable-static
CFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/varnish
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/varnish
PLIST_FILES=	man/man3/vmod_header.3.gz lib/varnish/vmods/libvmod_header.so
WRKSRC=		${WRKDIR}/${PORTNAME}-master

.include <bsd.port.mk>
