diff options
author | maho <maho@FreeBSD.org> | 2002-11-18 11:52:33 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2002-11-18 11:52:33 +0000 |
commit | 42e84c9db4a34580c0ece7b93042b999371954db (patch) | |
tree | 7b42ad9ee89c313d6f31fdf9b275dc925fbc835f /science/mpqc/Makefile | |
parent | 579bd2bfd957be183f71797c08a89ecb3f1f1274 (diff) | |
download | FreeBSD-ports-42e84c9db4a34580c0ece7b93042b999371954db.zip FreeBSD-ports-42e84c9db4a34580c0ece7b93042b999371954db.tar.gz |
Fix the problem mpqc and mpqc-mpich port
produces two identical packages.
Diffstat (limited to 'science/mpqc/Makefile')
-rw-r--r-- | science/mpqc/Makefile | 49 |
1 files changed, 44 insertions, 5 deletions
diff --git a/science/mpqc/Makefile b/science/mpqc/Makefile index b1124e3..a1032e9 100644 --- a/science/mpqc/Makefile +++ b/science/mpqc/Makefile @@ -6,30 +6,69 @@ # PORTNAME= mpqc -PORTVERSION= 2.1.1 +PORTVERSION= 2.1.2 CATEGORIES= science MASTER_SITES= http://aros.ca.sandia.gov/~cljanss/mpqc/distrib/ +DISTFILES= mpqc-${PORTVERSION}.tar.gz mpqc-val-2.1.0.tar.gz +.if !defined(NOPORTDOCS) +DISTFILES+= mpqc-man-${PORTVERSION}.tar.gz mpqc-html-${PORTVERSION}.tar.gz +.endif -MAINTAINER= chat95@mbox.kyoto-inet.or.jp +MAINTAINER= maho@FreeBSD.org LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \ atlas:${PORTSDIR}/math/atlas +.include <bsd.port.pre.mk> + USE_BISON= yes USE_AUTOCONF= yes -CONFIGURE_ARGS= --with-libdirs=-L${PREFIX}/lib \ +CONFIGURE_ARGS= --with-cc=${CC} \ + --with-cxx=${CXX} \ + --with-f77=${F77} \ + --with-libdirs=-L${LOCALBASE}/lib \ --with-blas="-lf77blas -latlas" \ --with-lapack="-lalapack -lcblas" \ --with-coptflags="${CFLAGS}" \ - --with-cxxoptflags="${CFLAGS}" \ + --with-cxxoptflags="${CXXFLAGS}" \ --with-f77optflags="${FFLAGS}" USE_PERL5= yes USE_GMAKE= yes ALL_TARGET= # empty +MPQC_COMMAND= ${PREFIX}/bin/mpqc + +.include "${.CURDIR}/files/manpages" pre-configure: @${ECHO} "You can override and CFLAGS on the command line." @${ECHO} "Following is a recommended one." @${ECHO} "make CFLAGS=\"-malign-double -fexpensive-optimizations -O4 -ffast-math -funroll-loops\"" -.include <bsd.port.mk> +do-install: + @cd ${WRKSRC} ; ${GMAKE} install + @cd ${WRKSRC} ; ${GMAKE} install_devel + @cd ${WRKDIR}/${PORTNAME}-man-${PORTVERSION}/man3/ ; ${TAR} -chf - . | \ + ${TAR} -xf - -C ${PREFIX}/man/man3/ + @${MKDIR} ${PREFIX}/share/mpqc/ref + @cd ${WRKDIR}/ref/ && ${TAR} -chf - . | \ + ${TAR} -xf - -C ${PREFIX}/share/mpqc/ref + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/mpqc + @cd ${WRKDIR}/${PORTNAME}-html-${PORTVERSION} && ${TAR} -chf - . | \ + ${TAR} -xf - -C ${PREFIX}/share/doc/mpqc/ +.endif + +validate: # it takes few days + @cd ${WRKSRC}/src/bin/mpqc/validate ; ${RM} -f ref ; ${LN} -s ${WRKSRC}/../ref . + @cd ${WRKSRC}/src/bin/mpqc/validate ; ${GMAKE} inputs + @cd ${WRKSRC}/src/bin/mpqc/validate ; \ + for i in run/*.in ; \ + do \ + ${ECHO} "Now calculating `basename $$i`"; \ + ${MPQC_COMMAND} $$i > $${i%.in}.out ; \ + done + @cd ${WRKSRC}/src/bin/mpqc/validate ; ${GMAKE} check + +.include <bsd.port.post.mk> |