mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
37 lines
891 B
Makefile
37 lines
891 B
Makefile
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= vnroff
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= vietnamese print
|
|
MASTER_SITES= LOCAL/obrien
|
|
DISTNAME= ${PORTNAME}-2.0
|
|
DISTFILES= vnroff.c.Z vnroff.1.Z
|
|
|
|
MAINTAINER= obrien@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} -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' \
|
|
| ${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>
|