summaryrefslogtreecommitdiffstats
path: root/security/nessus/Makefile
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-03-11 13:46:15 +0000
committerolgeni <olgeni@FreeBSD.org>2001-03-11 13:46:15 +0000
commit65e35decfafa355cd0d4a0f4b3db284167f6d2a0 (patch)
tree5937d2e28605c1efd1c2635ecf90882b9695f366 /security/nessus/Makefile
parent30b015e09cc2488d7eaa21bd718cf6bb0c90ce2b (diff)
downloadFreeBSD-ports-65e35decfafa355cd0d4a0f4b3db284167f6d2a0.zip
FreeBSD-ports-65e35decfafa355cd0d4a0f4b3db284167f6d2a0.tar.gz
Use WANT_GTK and USE_GTK properly, so that the text-only nessus client can
be built automatically if gtk is not installed. The WITHOUT_GTK option is still supported (by bsd.gnome.mk) I also changed a couple of @dirrms to @unexecs in pkg-plist.
Diffstat (limited to 'security/nessus/Makefile')
-rw-r--r--security/nessus/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/security/nessus/Makefile b/security/nessus/Makefile
index eefb87a..7af90b3 100644
--- a/security/nessus/Makefile
+++ b/security/nessus/Makefile
@@ -26,9 +26,14 @@ LIB_DEPENDS= nasl.1:${PORTSDIR}/security/nessus-libnasl
DIST_SUBDIR= nessus
WRKSRC= ${WRKDIR}/nessus-core
-HAVE_GTK= yes
USE_LIBTOOL= yes
-.if defined(WITHOUT_GTK)
+WANT_GTK= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GTK) && !defined(WITHOUT_GTK)
+USE_GTK= yes
+.else
CONFIGURE_ARGS+= --disable-gtk
.endif
@@ -41,4 +46,4 @@ post-install:
@${ECHO} "collection."
@${ECHO} "================================================================================"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud