1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-03-13 15:12:44 +00:00
parent f1d0b55940
commit 8a14dc1176
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348085

View File

@ -14,14 +14,15 @@ COMMENT= Brian Kernighan's pattern scanning and processing language
NO_WRKSUBDIR= yes
MAKEFILE= makefile
ALL_TARGET= a.out
MAN1= nawk.1
CFLAGS+= -DHAS_ISBLANK
PLIST_FILES= bin/nawk
PLIST_FILES= bin/nawk man/man1/nawk.1.gz
post-patch:
@${REINPLACE_CMD} -e 's|awk|nawk|g' ${WRKSRC}/awk.1
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/nawk
${SED} -e 's|awk|nawk|g' ${WRKSRC}/awk.1 > ${WRKSRC}/nawk.1
${INSTALL_MAN} ${WRKSRC}/nawk.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/a.out ${STAGEDIR}${PREFIX}/bin/nawk
${INSTALL_MAN} ${WRKSRC}/awk.1 \
${STAGEDIR}${MANPREFIX}/man/man1/nawk.1.gz
.include <bsd.port.mk>