diff options
Diffstat (limited to 'math/lapack++/Makefile')
-rw-r--r-- | math/lapack++/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile index 14d789c7b22f..a37d1a30d243 100644 --- a/math/lapack++/Makefile +++ b/math/lapack++/Makefile @@ -9,10 +9,6 @@ MASTER_SITES= SF/lapackpp/lapackpp/${PORTVERSION} \ http://math.nist.gov/lapack++/:doc DISTNAME= lapackpp-${PORTVERSION} -.if !defined(NOPORTDOCS) -DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} lapack++.ps.gz:doc lapackpp1_1.ps.gz:doc \ - lapackppman1_1.ps.gz:doc lapack++_install.ps.gz:doc -.endif DIST_SUBDIR= lapackpp EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -21,8 +17,15 @@ COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK USES= fortran gmake pathfix libtool +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> +.if ${PORT_OPTIONS:MDOCS} +DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} lapack++.ps.gz:doc lapackpp1_1.ps.gz:doc \ + lapackppman1_1.ps.gz:doc lapack++_install.ps.gz:doc +.endif + .if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS) WITH_ATLAS= yes .endif @@ -49,12 +52,10 @@ LAPACK_LIB= -L${LOCALBASE}/lib -llapack CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas --enable-static post-install: -.if !defined(NOPORTDOCS) @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++_install.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackpp1_1.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackppman1_1.ps.gz ${STAGEDIR}${DOCSDIR} -.endif .include <bsd.port.post.mk> |