diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mrtg/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile index 219f5eb6d77..c1c2bedd556 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 \ |