1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/vietnamese/vnroff/Makefile
Mathieu Arnold eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00

37 lines
885 B
Makefile

# Created by: David O'Brien (obrien@cs.ucdavis.edu)
# $FreeBSD$
PORTNAME= vnroff
PORTVERSION= 2.1
CATEGORIES= vietnamese print
MASTER_SITES= LOCAL/cy
DISTNAME= ${PORTNAME}-2.0
DISTFILES= vnroff.c.Z vnroff.1.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts Vietnamese VIQR text into troff format
PLIST_FILES= bin/vnroff man/man1/vnroff.1.gz
NO_WRKSUBDIR= yes
do-extract:
@${RM} -r ${WRKSRC}
@${MKDIR} ${WRKSRC}
@(cd ${WRKSRC} && ${GZCAT} ${DISTDIR}/vnroff.c.Z \
| ${SED} -e '1,/-cut here-/d' \
> vnroff.c)
@(cd ${WRKSRC} && ${GZCAT} ${DISTDIR}/vnroff.1.Z \
| ${SED} -e '1,/Status:/d' \
| ${SED} -e '1,1d' \
| ${TR} -d '\01' \
> vnroff.1)
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o vnroff vnroff.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vnroff ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/vnroff.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>