summaryrefslogtreecommitdiff
path: root/net/mrtg
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2002-08-15 06:34:22 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2002-08-15 06:34:22 +0000
commit3c0311643bee327fe2ba525984813c838bbd640a (patch)
tree0adc90a12efe5bb081b3f359cea323108b92e8d8 /net/mrtg
parentAdd a backup MASTER_SITE. (diff)
Add WITH_GD2 knob for building with gd2 rather than gd.
Submitted by: David <david@dyn-ns.net>
Diffstat (limited to 'net/mrtg')
-rw-r--r--net/mrtg/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile
index 219f5eb6d771..c1c2bedd556b 100644
--- a/net/mrtg/Makefile
+++ b/net/mrtg/Makefile
@@ -15,16 +15,21 @@ MASTER_SITE_SUBDIR= net/mrtg
MAINTAINER= demon@FreeBSD.org
+.if defined(WITH_GD2)
+LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2
+CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
+ --with-gd-inc=${LOCALBASE}/include
+.else
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
+CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
+ --with-gd-inc=${LOCALBASE}/include/gd
+.endif
USE_PERL5= YES
MAKE_ENV+= PERL=${PERL}
GNU_CONFIGURE= YES
-CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
- --with-gd-inc=${LOCALBASE}/include/gd
-
CONFIGURE_ENV= PERL=${PERL}
MAN1= cfgmaker.1 contrib.1 faq.1 forum.1 indexmaker.1 logfile.1 \