328b757bf2
libtool14 (13/15). PR: 67768 Submitted by: ade Approved by: 4-exp bento runs (thanks, kris!)
89 lines
2.5 KiB
Makefile
89 lines
2.5 KiB
Makefile
# New ports collection makefile for: mpqc
|
|
# Date created: 27 April 2001
|
|
# Whom: batman <batman@udel.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mpqc
|
|
PORTVERSION= 2.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= science parallel
|
|
MASTER_SITES= http://aros.ca.sandia.gov/~cljanss/mpqc/distrib/
|
|
DISTFILES= mpqc-${PORTVERSION}.tar.gz mpqc-val-2.2.0.tar.gz
|
|
.if !defined(NOPORTDOCS)
|
|
DISTFILES+= mpqc-man-${PORTVERSION}.tar.gz mpqc-html-${PORTVERSION}.tar.gz
|
|
.endif
|
|
|
|
MAINTAINER= maho@FreeBSD.org
|
|
COMMENT= The massively parallel quantum computing library and program
|
|
|
|
LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas
|
|
|
|
USE_BISON= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOCONF_VER=259
|
|
|
|
CONFIGURE_ARGS= --with-cc=${CC} \
|
|
--with-cxx=${CXX} \
|
|
--with-f77=${FC} \
|
|
--with-libdirs=-L${LOCALBASE}/lib \
|
|
--with-blas="-lf77blas -latlas" \
|
|
--with-lapack="-lalapack -lcblas" \
|
|
--with-coptflags="${CFLAGS}" \
|
|
--with-cxxoptflags="${CXXFLAGS}" \
|
|
--with-f77optflags="${FFLAGS}"
|
|
USE_PERL5= yes
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= # empty
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
|
MPQC_COMMAND= ${PREFIX}/bin/mpqc
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${FILESDIR}/manpages"
|
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
|
CFLAGS+= -O2 -ffast-math
|
|
CXXFLAGS+= -O2 -ffast-math
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
CFLAGS+= -mfancy-math-387
|
|
CXXFLAGS+= -mfancy-math-387
|
|
.endif # i386
|
|
.endif
|
|
|
|
pre-configure:
|
|
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} ; ${GMAKE} install
|
|
@cd ${WRKSRC} ; ${GMAKE} install_devel
|
|
@cd ${WRKDIR}/${PORTNAME}-man-${PORTVERSION}/man3/ ; \
|
|
${INSTALL_MAN} * ${PREFIX}/man/man3
|
|
@${MKDIR} ${PREFIX}/share/mpqc/ref
|
|
@cd ${WRKDIR}/ref/ ; ${TAR} -chf - . | \
|
|
${TAR} -xf - -C ${PREFIX}/share/mpqc/ref
|
|
@${FIND} ${PREFIX}/share/mpqc/ref | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
@${FIND} ${PREFIX}/share/mpqc/ref -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKDIR}/${PORTNAME}-html-${PORTVERSION} && ${TAR} -chf - . | \
|
|
${TAR} -xf - -C ${DOCSDIR}
|
|
@${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
@${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
.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>
|