diff options
Diffstat (limited to 'science/libghemical/Makefile')
-rw-r--r-- | science/libghemical/Makefile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/science/libghemical/Makefile b/science/libghemical/Makefile index 65ff217cf2d0..29d74deadf09 100644 --- a/science/libghemical/Makefile +++ b/science/libghemical/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ PORTNAME= libghemical -PORTVERSION= 2.00 +PORTVERSION= 2.10 CATEGORIES= science MASTER_SITES= http://www.uku.fi/~thassine/projects/download/ \ http://bioinformatics.org/ghemical/download/ @@ -21,15 +21,26 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libmpqc.a:${PORTSDIR}/science/mpqc \ USE_GMAKE= yes USE_GNOME= pkgconfig GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-mopac7 --enable-mpqc --enable-openbabel \ - --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \ - --with-lapack=-lalapack + +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) +WITH_ATLAS= yes +.endif +.if defined(WITH_ATLAS) +LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas +CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \ + --with-lapack=-lalapack +.else +LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas +CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib -lblas" \ + --with-lapack=-lapack +.endif +CONFIGURE_ARGS+= --enable-mopac7 --enable-mpqc --enable-openbabel USE_AUTOTOOLS= autoconf:259 PLIST_SUB= LIBGHEMICAL_VERSION="${PORTVERSION}" -.include <bsd.port.pre.mk> - pre-configure: @cd ${WRKDIR}/${DISTNAME} ; ${AUTOCONF} |