mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
4db0ccf998
Fix WWW PR: ports/184278 Submitted by: Takefu <takefu@airport.fm> Approved by: maintainer timeout
36 lines
882 B
Makefile
36 lines
882 B
Makefile
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
|
||
# $FreeBSD$
|
||
|
||
PORTNAME= vnroff
|
||
PORTVERSION= 2.1
|
||
CATEGORIES= vietnamese print
|
||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||
MASTER_SITE_SUBDIR= obrien
|
||
DISTNAME= ${PORTNAME}-2.0
|
||
DISTFILES= vnroff.c.Z vnroff.1.Z
|
||
|
||
MAINTAINER= obrien@FreeBSD.org
|
||
COMMENT= Converts Vietnamese VIQR text into troff format
|
||
|
||
NO_WRKSUBDIR= yes
|
||
|
||
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 ${STAGEDIR}${PREFIX}/bin
|
||
${INSTALL_MAN} ${WRKSRC}/vnroff.1 ${STAGEDIR}${PREFIX}/man/man1
|
||
|
||
.include <bsd.port.mk>
|