diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile index 4402b5db002a..455a71eb530e 100644 --- a/lang/nawk/Makefile +++ b/lang/nawk/Makefile @@ -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