aboutsummaryrefslogtreecommitdiffstats
path: root/science/ncs
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-05 06:08:14 +0800
committeradamw <adamw@FreeBSD.org>2014-07-05 06:08:14 +0800
commit7f7715bfaf269f91bfd6a3a609279fdd2f62101e (patch)
treee17b8e2668f61273f7d92b0e106d3da5553774ce /science/ncs
parentd5f97b8c32afc1a862154e3187d36b3b4806feb0 (diff)
downloadfreebsd-ports-gnome-7f7715bfaf269f91bfd6a3a609279fdd2f62101e.tar.gz
freebsd-ports-gnome-7f7715bfaf269f91bfd6a3a609279fdd2f62101e.tar.zst
freebsd-ports-gnome-7f7715bfaf269f91bfd6a3a609279fdd2f62101e.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
Diffstat (limited to 'science/ncs')
-rw-r--r--science/ncs/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/science/ncs/Makefile b/science/ncs/Makefile
index fef22449f8f3..f63789f64d22 100644
--- a/science/ncs/Makefile
+++ b/science/ncs/Makefile
@@ -41,6 +41,10 @@ NEED_ROOT= yes
FORTRANLIBDIR= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``
FORTRANLIBDIR2= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
.if defined(PACKAGE_BUILDING)
TERM= vt100 # Force for pointyhat to override su
.else
@@ -70,7 +74,7 @@ RUN_DEPENDS+= ${MPI_HOME}/bin/mpirun:${PORTSDIR}/net/mpich2
MPI_LIBS= -lmpich -lmpl ${PTHREAD_LIBS}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
USE_TEX= tex:build
BUILD_DEPENDS+= fig2dev:${PORTSDIR}/print/transfig
ALL_TARGET= all pdf
@@ -107,11 +111,11 @@ pre-everything::
@${ECHO_MSG}
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif