aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/gzrecover/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gzrecover/Makefile')
-rw-r--r--archivers/gzrecover/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/archivers/gzrecover/Makefile b/archivers/gzrecover/Makefile
index c0c4e8f7ddca..dc40a500c124 100644
--- a/archivers/gzrecover/Makefile
+++ b/archivers/gzrecover/Makefile
@@ -20,12 +20,16 @@ CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
${CC} -o ${WRKSRC}/${PORTNAME} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif