From e18ab6eecb7643b4ed26b01f73c76e563a22245f Mon Sep 17 00:00:00 2001 From: thierry Date: Wed, 7 Jan 2015 22:38:36 +0000 Subject: - Use options; - Do not check the existence of libatlas. Suggested by: bapt --- math/blocksolve95/Makefile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'math') diff --git a/math/blocksolve95/Makefile b/math/blocksolve95/Makefile index 96e6af63a0e5..01c0482db398 100644 --- a/math/blocksolve95/Makefile +++ b/math/blocksolve95/Makefile @@ -22,11 +22,17 @@ LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c \ libmpich.so:${PORTSDIR}/net/mpich2 USES= fortran gmake tar:Z -.if defined(WITH_ATLAS) -USES+= blaslapack:atlas -.else -USES+= blaslapack -.endif + +OPTIONS_RADIO= BLAS +OPTIONS_RADIO_BLAS= REFERENCE ATLAS +OPTIONS_DEFAULT= REFERENCE + +REFERENCE_DESC= Blas / Lapack +REFERENCE_USES= blaslapack:netlib + +ATLAS_DESC= ATLAS +ATLAS_USES= blaslapack:atlas + MAKEFILE= makefile MAKE_ARGS= GMAKE=${MAKE_CMD} PETSC_ARCH=${PETSC_ARCH} BOPT=${BOPT} \ BLAS_LIB="${BLASLIB}" LAPACK_LIB="-L${LOCALBASE}/lib ${LAPACKLIB}" @@ -40,11 +46,7 @@ FFLAGS+= -O2 INCLUDES= BMmsg.h BSdepend.h BSlog.h BSmy_blas.h BSprivate.h BSsparse.h PORTDOCS= manual.ps -.include - -.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS) -WITH_ATLAS= yes -.endif +.include do-install: ${INSTALL_DATA} ${WRKSRC}/lib/lib${BOPT}/${PETSC_ARCH}/libBS95.a \ @@ -74,4 +76,4 @@ regression-test: build ${LOCALBASE}/bin/mpdallexit .endif -.include +.include -- cgit