1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/textproc/code2html/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: code2html
# Date created: 01 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
PORTNAME= code2html
PORTVERSION= 0.9
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.palfrader.org/code2html/all/
MASTER_SITE_SUBDIR= ${PORTNAME}
1999-12-22 13:31:07 +00:00
MAINTAINER= jedgar@FreeBSD.org
COMMENT= Sourcecode to HTML converter
2001-08-15 20:33:16 +00:00
.if !exists(/usr/bin/bzip2)
RUN_DEPENDS= bzip2:${PORTSDIR}/archivers/bzip2
2001-08-15 20:33:16 +00:00
BZIP2BASE= ${PREFIX}
.else
BZIP2BASE= /usr
.endif
NO_BUILD= yes
USE_REINPLACE= yes
2000-03-19 12:40:48 +00:00
MAN1= code2html.1
PLIST_FILES= bin/code2html
do-configure:
2000-01-09 13:52:38 +00:00
@${MV} ${WRKSRC}/code2html ${WRKSRC}/code2html.orig
2001-08-15 20:33:16 +00:00
@${SED} -e 's|/usr/bin/bzip2|${BZIP2BASE}/bin/bzip2|' \
-e 's|/bin/gzip|/usr/bin/gzip|' \
-e 's|/etc/code|${PREFIX}/etc/code|' \
2000-01-09 13:52:38 +00:00
< ${WRKSRC}/code2html.orig > ${WRKSRC}/code2html
@${REINPLACE_CMD} -e 's|/etc/code|${PREFIX}/etc/code|' \
${WRKSRC}/code2html.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/code2html ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/code2html.1 ${PREFIX}/man/man1
.include <bsd.port.mk>