summaryrefslogtreecommitdiff
path: root/textproc/txt2html/Makefile
blob: 6a89e172adadcdbdd069d4d338baada4e66b045d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:    txt2html
# Version required:     1.27
# Date created:         29 Jun 1998
# Whom:                 Don Croyle <croyle@gelemna.ft-wayne.in.us>
#
# $FreeBSD$
#

DISTNAME=	txt2html-1.27
CATEGORIES=	textproc
MASTER_SITES=	http://www.aigeek.com/txt2html/

MAINTAINER=	croyle@gelemna.ft-wayne.in.us

WRKSRC=		${WRKDIR}/txt2html
NO_BUILD=	yes

do-configure:
	cd ${WRKSRC} && perl -pi -e "s|/usr/local|${PREFIX}|g" txt2html.pl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/txt2html.pl ${PREFIX}/bin/txt2html
	${MKDIR} ${PREFIX}/share/doc/txt2html
	${INSTALL_DATA} ${WRKSRC}/txt2html.dict ${PREFIX}/share/doc/txt2html/
.if !defined(NOPORTDOCS)
.for file in INSTALL LICENSE README changes.html sample.html sample.txt
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/txt2html/
.endfor
.endif
	@${ECHO_MSG} "To install the sample links dictionary as the default"
	@${ECHO_MSG} "copy or link ${PREFIX}/share/doc/txt2html/txt2html.dict to"
	@${ECHO_MSG} "${PREFIX}/lib/txt2html.dict or ~/.txt2html.dict"

.include <bsd.port.mk>