diff options
Diffstat (limited to 'x11')
-rw-r--r-- | x11/trayer/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/x11/trayer/Makefile b/x11/trayer/Makefile index f1b0d5b60f26..ce5d1cd796f2 100644 --- a/x11/trayer/Makefile +++ b/x11/trayer/Makefile @@ -19,20 +19,17 @@ MAKE_ARGS= "PREFIX=${PREFIX}" WRKSRC= ${WRKDIR}/sargon-${PORTNAME}-srg-${GITVERSION:S/^0-g//} PORTDOCS= README CREDITS CHANGELOG -MAN1= trayer.1 -PLIST_FILES= bin/trayer +PLIST_FILES= bin/trayer man/man1/trayer.1.gz -NO_STAGE= yes -.include <bsd.port.options.mk> +post-patch: + @${REINPLACE_CMD} -e 's|$$(PREFIX)/|$$(DESTDIR)&|' ${WRKSRC}/Makefile post-install: - ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${MAN1PREFIX}/man/man1 -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> |