opnsense-ports/textproc/code2html/Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

32 lines
758 B
Makefile

# Created by: Chris D. Faulhaber <jedgar@fxp.org>
# $FreeBSD$
PORTNAME= code2html
PORTVERSION= 0.9.1
CATEGORIES= textproc
MASTER_SITES= SF \
http://www.palfrader.org/code2html/all/
MAINTAINER= ports@FreeBSD.org
COMMENT= Sourcecode to HTML converter
NO_BUILD= yes
USES= perl5
USE_PERL5= run
PLIST_FILES= bin/code2html man/man1/code2html.1.gz
do-configure:
@${REINPLACE_CMD} \
-e 's|/usr/bin/bzip2|${BZIP2_CMD}|' \
-e 's|/bin/gzip|/usr/bin/gzip|' \
-e 's|/etc/|${PREFIX}/etc/|' \
${WRKSRC}/code2html
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' \
${WRKSRC}/code2html.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/code2html ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/code2html.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>