blob: c453d464d62db4161ff4f3cd3a43cd54c22855c2 (
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
|
# Provide support for Varnish
#
# Feature: varnish
# Usage: USES=varnish
# Valid ARGS: 4, 6, run
#
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_VARNISH_MK)
_INCLUDE_USES_VARNISH_MK= yes
VARNISH_VERSION= ${VARNISH_DEFAULT}
. if ${varnish_ARGS:M4}
VARNISH_VERSION= 4
. elif ${varnish_ARGS:M6}
VARNISH_VERSION= 6
. elif defined(VARNISH_DEFAULT)
. endif
RUN_DEPENDS+= varnish${VARNISH_VERSION}>=${VARNISH_VERSION}:www/varnish${VARNISH_VERSION}
BUILD_DEPENDS+= varnish${VARNISH_VERSION}>=${VARNISH_VERSION}:www/varnish${VARNISH_VERSION}
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish
LIBS+= -L${LOCALBASE}/lib
.endif
|