aboutsummaryrefslogtreecommitdiffstats
path: root/cad/atlc/Makefile
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-01-03 23:53:42 +0800
committeradamw <adamw@FreeBSD.org>2014-01-03 23:53:42 +0800
commitbbe517fc11c41a36f1d82e2d3cb2e547ce8dae85 (patch)
tree7ebb16ef28c161ae63aef766228c555d90ec2830 /cad/atlc/Makefile
parent257d988f480a12d8d661eb13fd3ffca39a8091ae (diff)
downloadfreebsd-ports-gnome-bbe517fc11c41a36f1d82e2d3cb2e547ce8dae85.tar.gz
freebsd-ports-gnome-bbe517fc11c41a36f1d82e2d3cb2e547ce8dae85.tar.zst
freebsd-ports-gnome-bbe517fc11c41a36f1d82e2d3cb2e547ce8dae85.zip
Convert cad to MDOCS and MEXAMPLES
Diffstat (limited to 'cad/atlc/Makefile')
-rw-r--r--cad/atlc/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/cad/atlc/Makefile b/cad/atlc/Makefile
index 6133233b91e2..c6e1efc78379 100644
--- a/cad/atlc/Makefile
+++ b/cad/atlc/Makefile
@@ -44,6 +44,9 @@ PLIST_FILES= bin/atlc bin/coax bin/create_any_bitmap \
bin/locatediff bin/myfilelength bin/mymd5sum bin/readbin
NO_STAGE= yes
+
+.include <bsd.port.options.mk>
+
post-patch:
.for file in Makefile.in
@${REINPLACE_CMD} -e \
@@ -51,7 +54,7 @@ post-patch:
.endfor
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(${TAR} -C ${WRKSRC}/docs --exclude "*Makefile*" -cf - . | \
${TAR} -C ${DOCSDIR} --unlink -xf -)
@@ -59,7 +62,7 @@ post-install:
@${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@${FIND} ${DOCDIR} | ${XARGS} ${CHOWN} ${SHHAREOWN}:${SHAREGRP}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -)