aboutsummaryrefslogtreecommitdiffstats
path: root/cad/tochnog
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
committermat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
commit9d30f78a00bed11384c7259f662e9352754275db (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /cad/tochnog
parent996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff)
downloadfreebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'cad/tochnog')
-rw-r--r--cad/tochnog/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/cad/tochnog/Makefile b/cad/tochnog/Makefile
index 33c01880cb9e..b6da439c6947 100644
--- a/cad/tochnog/Makefile
+++ b/cad/tochnog/Makefile
@@ -71,13 +71,12 @@ pre-configure:
s,%%SUPERLU%%,${SUPERLU},g ; \
s,%%BLAS_LIBS%%,-L${LOCALBASE}/lib ${BLAS_LIBS},g' \
${WRKSRC}/makefile
-.if ${PORT_OPTIONS:MTHREADS}
+pre-configure-THREADS-on:
${REINPLACE_CMD} -e 's,SUPERLU_MT_USE 0,SUPERLU_MT_USE 1,' \
${WRKSRC}/tnsuplu.h
-.else # Serial
+pre-configure-THREADS-off:
${REINPLACE_CMD} -e 's,SUPERLU_USE 0,SUPERLU_USE 1,' \
${WRKSRC}/tnsuplu.h
-.endif
post-build:
(cd ${WRKDIR}/Sources/tools && ${CXX} ${CXXFLAGS} -o aba2tn aba2tn.cc)
@@ -93,10 +92,9 @@ do-install:
${STAGEDIR}${GID_PTYPES}/tochnog.gid
${INSTALL_SCRIPT} ${WRKDIR}/Sources/gid/tochnog.gid/tochnog.ba* \
${STAGEDIR}${GID_PTYPES}/tochnog.gid
-.if ${PORT_OPTIONS:MEXAMPLES}
+do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${RM} -f ${WRKDIR}/Sources/test/*.orig
${INSTALL_DATA} ${WRKDIR}/Sources/test/* ${STAGEDIR}${EXAMPLESDIR}
-.endif
.include <bsd.port.mk>