1999-10-03 14:31:36 +00:00
|
|
|
# New ports collection makefile for: code2html
|
|
|
|
# Date created: 01 October 1999
|
|
|
|
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 21:54:47 +00:00
|
|
|
PORTNAME= code2html
|
2001-05-17 12:24:36 +00:00
|
|
|
PORTVERSION= 0.9
|
1999-10-03 14:31:36 +00:00
|
|
|
CATEGORIES= textproc
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2001-05-17 12:24:36 +00:00
|
|
|
http://www.palfrader.org/code2html/all/
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1999-10-03 14:31:36 +00:00
|
|
|
|
1999-12-22 13:31:07 +00:00
|
|
|
MAINTAINER= jedgar@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Sourcecode to HTML converter
|
1999-10-03 14:31:36 +00:00
|
|
|
|
2001-08-15 20:33:16 +00:00
|
|
|
.if !exists(/usr/bin/bzip2)
|
1999-10-27 07:20:39 +00:00
|
|
|
RUN_DEPENDS= bzip2:${PORTSDIR}/archivers/bzip2
|
|
|
|
|
2001-08-15 20:33:16 +00:00
|
|
|
BZIP2BASE= ${PREFIX}
|
|
|
|
.else
|
|
|
|
BZIP2BASE= /usr
|
|
|
|
.endif
|
|
|
|
|
1999-10-03 14:31:36 +00:00
|
|
|
NO_BUILD= yes
|
2002-11-04 03:05:48 +00:00
|
|
|
USE_REINPLACE= yes
|
1999-10-03 14:31:36 +00:00
|
|
|
|
2000-03-19 12:40:48 +00:00
|
|
|
MAN1= code2html.1
|
2004-02-06 13:12:53 +00:00
|
|
|
PLIST_FILES= bin/code2html
|
1999-10-27 07:20:39 +00:00
|
|
|
|
|
|
|
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|' \
|
1999-10-27 07:20:39 +00:00
|
|
|
-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
|
2002-11-04 03:05:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/code|${PREFIX}/etc/code|' \
|
2001-05-17 12:24:36 +00:00
|
|
|
${WRKSRC}/code2html.1
|
1999-10-03 14:31:36 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-04-01 12:32:06 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/code2html ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/code2html.1 ${PREFIX}/man/man1
|
1999-10-03 14:31:36 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|