aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2003-04-23 18:40:02 +0800
committerdemon <demon@FreeBSD.org>2003-04-23 18:40:02 +0800
commit10f295419d2fe9f2aad989ad406ac3592fc5ec47 (patch)
tree6dec09b908473d6fa18d93507e738713ef7bc5c3
parentb3f82a7a9ac0d58cf7706e81c40e76851e8b0abc (diff)
downloadfreebsd-ports-gnome-10f295419d2fe9f2aad989ad406ac3592fc5ec47.tar.gz
freebsd-ports-gnome-10f295419d2fe9f2aad989ad406ac3592fc5ec47.tar.zst
freebsd-ports-gnome-10f295419d2fe9f2aad989ad406ac3592fc5ec47.zip
Add WITH_GD2 knob to use gd2 rather than gd1.
PR: 51287 Submitted by: "Leonid A. Lyamanov" <leonas@demos.su> Reviewed by: maintainer
-rw-r--r--net-mgmt/nagios/Makefile8
-rw-r--r--net-mgmt/nagios12/Makefile8
-rw-r--r--net-mgmt/nagios2/Makefile8
-rw-r--r--net/nagios/Makefile8
4 files changed, 24 insertions, 8 deletions
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
diff --git a/net-mgmt/nagios12/Makefile b/net-mgmt/nagios12/Makefile
index 39430cd5a9c0..bce678162792 100644
--- a/net-mgmt/nagios12/Makefile
+++ b/net-mgmt/nagios12/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
diff --git a/net-mgmt/nagios2/Makefile b/net-mgmt/nagios2/Makefile
index 39430cd5a9c0..bce678162792 100644
--- a/net-mgmt/nagios2/Makefile
+++ b/net-mgmt/nagios2/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
diff --git a/net/nagios/Makefile b/net/nagios/Makefile
index 39430cd5a9c0..bce678162792 100644
--- a/net/nagios/Makefile
+++ b/net/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