aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-03-21 00:25:51 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-03-21 00:25:51 +0000
commit586bcb16a87e2fbd211fe167936e2dad11d1c2fe (patch)
tree6cd7f9d72260315d528fbd38dd1ea56c1358a153 /textproc
parent694feff818bf65b4295e5f08b635a71d8bde60d1 (diff)
downloadports-586bcb16a87e2fbd211fe167936e2dad11d1c2fe.tar.gz
ports-586bcb16a87e2fbd211fe167936e2dad11d1c2fe.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/source-highlight/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile
index 4c62ec32e392..e022ef67fb97 100644
--- a/textproc/source-highlight/Makefile
+++ b/textproc/source-highlight/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: source-highlight
-# Date created: 24 Aug 2001
-# Whom: Kris Kennaway <kris@FreeBSD.org>
-#
+# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= source-highlight
PORTVERSION= 3.1.6
@@ -27,9 +23,10 @@ USE_LDCONFIG= yes
MAN1= check-regexp.1 source-highlight.1 source-highlight-settings.1
INFO= source-highlight source-highlight-lib
-OPTIONS= BASH "Support Bash completion" Off
+OPTIONS_DEFINE= BASH DOCS EXAMPLES
.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OSVERSION} >= 700042
.if ${ARCH} == "sparc64"
@@ -37,7 +34,7 @@ BROKEN= Does not compile with GCC 4.2
.endif
.endif
-.if defined(WITH_BASH)
+.if ${PORT_OPTIONS:MBASH}
RUN_DEPENDS+= ${LOCALBASE}/etc/bash_completion:${PORTSDIR}/shells/bash-completion
CONFIGURE_ARGS+= --with-bash-completion
PLIST_SUB+= BASH=""
@@ -53,11 +50,11 @@ post-patch:
@${REINPLACE_CMD} -e '/install-data-am:/,/:/s/install-source_highlightdataDATA//g' \
${WRKSRC}/doc/Makefile.in ${WRKSRC}/src/Makefile.in
.endif
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/install-data-am:/,/:/s/install-source_highlightdocDATA//g' \
${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in ${WRKSRC}/tests/Makefile.in
.endif
-.if defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -e '/install-data-am:/,/:/s/install-source_highlightlibexampleDATA//g' \
${WRKSRC}/lib/examples/Makefile.in
.endif