From 65e35decfafa355cd0d4a0f4b3db284167f6d2a0 Mon Sep 17 00:00:00 2001 From: olgeni Date: Sun, 11 Mar 2001 13:46:15 +0000 Subject: 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. --- security/nessus/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'security/nessus/Makefile') 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 + +.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 +.include -- cgit v1.1