From 49e0e21a443388bc93e6ce7ed7173105c7a106c5 Mon Sep 17 00:00:00 2001 From: Dmitry Sivachenko Date: Wed, 23 Apr 2003 10:40:02 +0000 Subject: Add WITH_GD2 knob to use gd2 rather than gd1. PR: 51287 Submitted by: "Leonid A. Lyamanov" Reviewed by: maintainer --- net-mgmt/nagios/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'net-mgmt/nagios') diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile index 39430cd5a9c0..bce678162792 100644 --- a/net-mgmt/nagios/Makefile +++ b/net-mgmt/nagios/Makefile @@ -15,8 +15,12 @@ MASTER_SITE_SUBDIR=nagios MAINTAINER= blaz@si.FreeBSD.org COMMENT= Extremely powerful network monitoring system -LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd \ - gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +.if defined(WITH_GD2) +LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2 +.else +LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd +.endif +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins GNU_CONFIGURE= yes -- cgit v1.2.3