From 9d30f78a00bed11384c7259f662e9352754275db Mon Sep 17 00:00:00 2001
From: mat <mat@FreeBSD.org>
Date: Wed, 19 Aug 2015 13:29:59 +0000
Subject: Convert ports to use the options helpers in categories [abc]*, and
 minor fixes.

Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3412?
---
 audio/lash/Makefile | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

(limited to 'audio/lash')

diff --git a/audio/lash/Makefile b/audio/lash/Makefile
index 68f40c2b8d7e..5a1720f3bc46 100644
--- a/audio/lash/Makefile
+++ b/audio/lash/Makefile
@@ -37,19 +37,11 @@ PYTHON_USES=	python
 PYTHON_BUILD_DEPENDS=	swig:${PORTSDIR}/devel/swig13
 PYTHON_CONFIGURE_OFF=	--disable-pylash
 
-.include <bsd.port.options.mk>
+READLINE_USES=		readline
+READLINE_CONFIGURE_ENV_OFF=	vl_cv_lib_readline=no
 
-.if ${PORT_OPTIONS:MREADLINE}
-USES+=		readline
-.else
-CONFIGURE_ENV+=	vl_cv_lib_readline=no
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+=	texi2html:${PORTSDIR}/textproc/texi2html
-.else
-CONFIGURE_ENV+=	ac_cv_prog_lash_texi2html=no
-.endif
+DOCS_BUILD_DEPENDS=	texi2html:${PORTSDIR}/textproc/texi2html
+DOCS_CONFIGURE_ENV_OFF=	ac_cv_prog_lash_texi2html=no
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -57,11 +49,9 @@ post-patch:
 	@${REINPLACE_CMD} -e \
 		'/texi2html/s|--number||' ${WRKSRC}/docs/Makefile.in
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/lash-manual-html-one-page/lash-manual.html \
 		${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>
-- 
cgit