diff options
author | bsam <bsam@FreeBSD.org> | 2013-06-20 21:59:24 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-06-20 21:59:24 +0800 |
commit | c2b27a55065c0a5485e2d8b86096ec5e848b4cbc (patch) | |
tree | 959ca4aec7263ad031a7a8e2810f9f669bd5d36b | |
parent | 1f62f4326fc5b7524326e190988e2a0fc85d78b0 (diff) | |
download | freebsd-ports-gnome-c2b27a55065c0a5485e2d8b86096ec5e848b4cbc.tar.gz freebsd-ports-gnome-c2b27a55065c0a5485e2d8b86096ec5e848b4cbc.tar.zst freebsd-ports-gnome-c2b27a55065c0a5485e2d8b86096ec5e848b4cbc.zip |
Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS.
-rw-r--r-- | science/devisor/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/science/devisor/Makefile b/science/devisor/Makefile index f8f0705f4bc7..8a73944e1aae 100644 --- a/science/devisor/Makefile +++ b/science/devisor/Makefile @@ -22,11 +22,13 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME} DATAFILES= data images misc manual CLASSFILES= devisor2 devisorgrid.class -.if !defined(NOPORTDOCS) PORTDOCS= * -.endif PLIST_FILES= bin/devisorgrid +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + do-install: ${INSTALL_SCRIPT} ${WRKDIR}/devisorgrid.sh ${PREFIX}/bin/devisorgrid cd ${WRKSRC} \ @@ -35,7 +37,7 @@ do-install: cd ${WRKSRC} \ && ${FIND} ${CLASSFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \ && ${FIND} ${CLASSFILES} -name '*.class' -type f -print -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} cd ${WRKSRC}/manual \ && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ && ${FIND} . -type f -name '*.pdf' -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; |