1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/Mk/Uses/varnish.mk
Mark Felder fc6bdea051 Introduce USES=varnish
You can now set the default version of Varnish with DEFAULT_VERSIONS to
build Varnish and its modules against your desired Varnish release
train.

The default version of Varnish throughout the ports tree will remain as
www/varnish4 until at least 2017Q1 when it will be changed in HEAD to be
www/varnish5. This should allow plenty of time for migration and for
stabilization of the changes in Varnish 5.x.

Submitted by:	vanilla
2016-10-26 14:15:38 +00:00

31 lines
747 B
Makefile

# $FreeBSD$
#
# Provide support for Varnish
#
# Feature: varnish
# Usage: USES=varnish
# Valid ARGS: 4, 5, 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:M5}
VARNISH_VERSION= 5
. 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