From 54482e313a5b1997823369289ba4cc6f7581f48c Mon Sep 17 00:00:00 2001 From: Jason Helfman Date: Thu, 21 Mar 2013 00:04:42 +0000 Subject: - adopt optionsNG - trim historical header Approved by: portmgr (miwi) --- textproc/htmldoc/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'textproc/htmldoc') diff --git a/textproc/htmldoc/Makefile b/textproc/htmldoc/Makefile index 2df6b492d83f..032ad8822524 100644 --- a/textproc/htmldoc/Makefile +++ b/textproc/htmldoc/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: htmldoc -# Date created: 12 June 2001 -# Whom: Glenn Trewitt -# +# Created by: Glenn Trewitt # $FreeBSD$ -# PORTNAME= htmldoc PORTVERSION= 1.8.27 @@ -19,7 +15,8 @@ COMMENT= Converts HTML to PDF and/or PostScript LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ png15:${PORTSDIR}/graphics/png -OPTIONS= HTMLDOCGUI "Build GUI front-end" off +OPTIONS_DEFINE= HTMLDOCGUI +HTMLDOCGUI_DESC= Build GUI front-end # .bz2 file is available since Aug 2, but we don't want to # start mirroring _in addition to_ the .gz variant. When the # vendor's release is updated again, we should switch to .bz2 @@ -47,8 +44,9 @@ post-configure: 's|../png/libpng.a ../zlib/libz.a ../jpeg/libjpeg.a|-ljpeg -lpng -lz|' ${WRKSRC}/Makedefs .include +.include -.if !defined(WITHOUT_HTMLDOCGUI) +.if ${PORT_OPTIONS:MHTMLDOCGUI} LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk CONFIGURE_ARGS+=--with-gui=yes .else -- cgit v1.2.3