aboutsummaryrefslogtreecommitdiff
path: root/vietnamese/vnroff/Makefile
blob: 81aa34d275aa092ea5d78a51668d051cac74b9c8 (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
35
36
37
38
# ex:ts=8
# Ports collection makefile for:  vnTeX
# Date created:		Monday, Dec 9, 1996
# Whom:			David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#

PORTNAME=	vi-vnroff
PORTVERSION= 	2.0
CATEGORIES=	vietnamese print
MASTER_SITES=	ftp://ftp.media.mit.edu/pub/Vietnet/Viscii/Troff/
DISTFILES=	vnroff.c.Z vnroff.1.Z

MAINTAINER=	obrien@FreeBSD.org

NO_WRKSUBDIR=	yes
MAN1=		vnroff.1

do-extract:
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKDIR}
	@(cd ${WRKDIR} && ${GZCAT} ${DISTDIR}/vnroff.c.Z  \
		| ${SED} -e '1,/-cut here-/d'    \
		> vnroff.c)
	@(cd ${WRKDIR} && ${GZCAT} ${DISTDIR}/vnroff.1.Z  \
		| ${SED} -e '1,/Status:/d' -e '//,//d'  \
		| ${SED} -e '1,1d'  \
		> vnroff.1)

do-build:
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o vnroff vnroff.c)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vnroff ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/vnroff.1 ${PREFIX}/man/man1

.include <bsd.port.mk>