diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-15 20:33:16 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-15 20:33:16 +0000 |
commit | 329c977502884c573478573703d4fdc1cf47cc3c (patch) | |
tree | da7218515b0cf9493f15d3656391a819ed46faac /textproc/code2html | |
parent | Update to 4154. (diff) |
Conditionalize bzip2 dependencies.
Notes
Notes:
svn path=/head/; revision=46297
Diffstat (limited to 'textproc/code2html')
-rw-r--r-- | textproc/code2html/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/textproc/code2html/Makefile b/textproc/code2html/Makefile index 9226c15c9ca6..2601f45eeed3 100644 --- a/textproc/code2html/Makefile +++ b/textproc/code2html/Makefile @@ -14,15 +14,21 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= jedgar@FreeBSD.org +.if !exists(/usr/bin/bzip2) RUN_DEPENDS= bzip2:${PORTSDIR}/archivers/bzip2 +BZIP2BASE= ${PREFIX} +.else +BZIP2BASE= /usr +.endif + NO_BUILD= yes MAN1= code2html.1 do-configure: @${MV} ${WRKSRC}/code2html ${WRKSRC}/code2html.orig - @${SED} -e 's|/usr/bin/bzip2|${PREFIX}/bin/bzip2|' \ + @${SED} -e 's|/usr/bin/bzip2|${BZIP2BASE}/bin/bzip2|' \ -e 's|/bin/gzip|/usr/bin/gzip|' \ -e 's|/etc/code|${PREFIX}/etc/code|' \ < ${WRKSRC}/code2html.orig > ${WRKSRC}/code2html |