summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-09-29 10:49:03 +0000
committermadpilot <madpilot@FreeBSD.org>2013-09-29 10:49:03 +0000
commitf455920263f25f7525e7afe9e74fae87e3ca6278 (patch)
tree3c240742f0d959a90a80b2d9cdd652190449c91d
parent9865c853af5f7c05fdb4726fce6b7ff2c5a14db4 (diff)
downloadFreeBSD-ports-f455920263f25f7525e7afe9e74fae87e3ca6278.zip
FreeBSD-ports-f455920263f25f7525e7afe9e74fae87e3ca6278.tar.gz
Support staging.
-rw-r--r--x11/trayer/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/x11/trayer/Makefile b/x11/trayer/Makefile
index f1b0d5b..ce5d1cd 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>
OpenPOWER on IntegriCloud