aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-25 21:31:49 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-25 21:31:49 +0800
commit1e6c8f699f711b2f826a32fd4beb35e2ad3e703a (patch)
tree154c128bc2c6f46062fa6483950a7c16769bc1f4 /sysutils
parent23e5a8c854724e903fe0aa5f69b41265e869b0c7 (diff)
downloadfreebsd-ports-gnome-1e6c8f699f711b2f826a32fd4beb35e2ad3e703a.tar.gz
freebsd-ports-gnome-1e6c8f699f711b2f826a32fd4beb35e2ad3e703a.tar.zst
freebsd-ports-gnome-1e6c8f699f711b2f826a32fd4beb35e2ad3e703a.zip
Support staging
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/flog/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/sysutils/flog/Makefile b/sysutils/flog/Makefile
index 0b1104a407a8..4d42c6c2b565 100644
--- a/sysutils/flog/Makefile
+++ b/sysutils/flog/Makefile
@@ -12,7 +12,8 @@ COMMENT= A small STDIN-to-file logger with support for log rotation
PORTDOCS= README
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
${REINPLACE_CMD} -e "s@|O_LARGEFILE@@" ${WRKSRC}/flog.c
@@ -20,10 +21,8 @@ do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/flog ${WRKSRC}/flog.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/flog ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${INSTALL} -d -m 0755 ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/flog ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>