aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-09-29 18:49:03 +0800
committermadpilot <madpilot@FreeBSD.org>2013-09-29 18:49:03 +0800
commitf455920263f25f7525e7afe9e74fae87e3ca6278 (patch)
tree3c240742f0d959a90a80b2d9cdd652190449c91d /x11
parent9865c853af5f7c05fdb4726fce6b7ff2c5a14db4 (diff)
downloadfreebsd-ports-gnome-f455920263f25f7525e7afe9e74fae87e3ca6278.tar.gz
freebsd-ports-gnome-f455920263f25f7525e7afe9e74fae87e3ca6278.tar.zst
freebsd-ports-gnome-f455920263f25f7525e7afe9e74fae87e3ca6278.zip
Support staging.
Diffstat (limited to 'x11')
-rw-r--r--x11/trayer/Makefile15
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>