aboutsummaryrefslogtreecommitdiff
path: root/textproc/code2html
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-08-15 20:33:16 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-08-15 20:33:16 +0000
commit329c977502884c573478573703d4fdc1cf47cc3c (patch)
treeda7218515b0cf9493f15d3656391a819ed46faac /textproc/code2html
parentfe366a94317e1457726d9093e697f2d6f6e80325 (diff)
downloadports-329c977502884c573478573703d4fdc1cf47cc3c.tar.gz
ports-329c977502884c573478573703d4fdc1cf47cc3c.zip
Notes
Diffstat (limited to 'textproc/code2html')
-rw-r--r--textproc/code2html/Makefile8
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