diff options
author | jgh <jgh@FreeBSD.org> | 2013-03-21 08:25:51 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2013-03-21 08:25:51 +0800 |
commit | 958505b530e17100a7a96206cec8255bdf68ca3e (patch) | |
tree | 6cd7f9d72260315d528fbd38dd1ea56c1358a153 /textproc | |
parent | 0eb20661b80e7b09ddf56ea8d1bdfecf5b6d1c57 (diff) | |
download | freebsd-ports-gnome-958505b530e17100a7a96206cec8255bdf68ca3e.tar.gz freebsd-ports-gnome-958505b530e17100a7a96206cec8255bdf68ca3e.tar.zst freebsd-ports-gnome-958505b530e17100a7a96206cec8255bdf68ca3e.zip |
- adopt optionsNG
- trim historical header
Approved by: portmgr (miwi)
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/source-highlight/Makefile | 15 |
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 |