2000-06-07 17:10:12 +00:00
|
|
|
# New ports collection makefile for: DeFT
|
|
|
|
# Date created: 1999-01-11
|
|
|
|
# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
1999-05-19 13:37:08 +00:00
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1999-05-19 13:37:08 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= deft
|
|
|
|
PORTVERSION= 2.2
|
2002-03-29 08:15:13 +00:00
|
|
|
PORTREVISION= 2
|
1999-05-19 13:37:08 +00:00
|
|
|
CATEGORIES= biology
|
2002-03-29 08:15:13 +00:00
|
|
|
MASTER_SITES= http://www.dq.ufscar.br/download/chem/dft/
|
2000-04-08 22:04:57 +00:00
|
|
|
DISTNAME= DeFT_${PORTVERSION}
|
1999-05-19 13:37:08 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= Density functional molecular orbital calculation
|
1999-05-19 13:37:08 +00:00
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/source
|
2002-11-04 05:46:38 +00:00
|
|
|
USE_REINPLACE= yes
|
1999-05-19 13:37:08 +00:00
|
|
|
|
2000-06-07 17:10:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-05-19 13:37:08 +00:00
|
|
|
|
2004-09-18 16:35:47 +00:00
|
|
|
.if ${OSVERSION} >= 502126
|
|
|
|
BROKEN= "Does not install on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2000-06-07 17:10:12 +00:00
|
|
|
.if ${OSVERSION} >= 400005
|
|
|
|
# Using g77 is troublesome, then it is better to use f2c/cc.
|
2000-06-11 19:51:59 +00:00
|
|
|
BUILD_DEPENDS= ftn77:${PORTSDIR}/lang/f77
|
1999-05-19 13:37:08 +00:00
|
|
|
.endif
|
2002-03-29 08:15:13 +00:00
|
|
|
.if defined(USEMPICH) && ${USEMPICH} == yes
|
|
|
|
BUILD_DEPENDS+= mpif77:${PORTSDIR}/net/mpich
|
|
|
|
FFLAGS+= -I/usr/local/mpich/include
|
|
|
|
FC= /usr/local/mpich/bin/mpif77
|
|
|
|
LFLAGS+= -L/usr/local/mpich/lib -lmpich
|
|
|
|
.endif
|
1999-05-19 13:37:08 +00:00
|
|
|
|
2000-10-10 00:43:26 +00:00
|
|
|
post-patch:
|
2002-11-04 05:46:38 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"\
|
2000-10-10 00:43:26 +00:00
|
|
|
${WRKDIR}/${DISTNAME}/examples/DeFT
|
2002-03-29 08:15:13 +00:00
|
|
|
.if !defined(USEMPICH)
|
|
|
|
@echo "******************************"
|
|
|
|
@echo "If you want to use MPI library, set 'USEMPICH=yes'."
|
|
|
|
@echo "******************************"
|
|
|
|
.endif
|
2000-10-10 00:43:26 +00:00
|
|
|
|
2000-06-07 17:10:12 +00:00
|
|
|
post-configure:
|
|
|
|
${CP} ${FILESDIR}/Makefile.deft ${WRKSRC}/Makefile
|
2002-03-29 08:15:13 +00:00
|
|
|
.if defined(USEMPICH) && ${USEMPICH} == yes
|
|
|
|
${MV} ${WRKSRC}/mpi.f ${WRKSRC}/mpi.f.notuse
|
|
|
|
.endif
|
2000-06-07 17:10:12 +00:00
|
|
|
|
1999-05-19 13:37:08 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/DeFT.exec ${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/examples/DeFT ${PREFIX}/bin/
|
2000-06-07 17:10:12 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/DeFT
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/bases ${PREFIX}/share/DeFT/
|
1999-05-19 13:37:08 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-07-04 08:12:21 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/DeFT
|
2000-06-07 17:10:12 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/DeFT
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README_Liability \
|
|
|
|
${PREFIX}/share/doc/DeFT/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/input.* \
|
|
|
|
${PREFIX}/share/doc/DeFT/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/install.* \
|
|
|
|
${PREFIX}/share/doc/DeFT/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/README \
|
|
|
|
${PREFIX}/share/examples/DeFT
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/*.dft \
|
|
|
|
${PREFIX}/share/examples/DeFT
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/*.out \
|
|
|
|
${PREFIX}/share/examples/DeFT
|
1999-05-19 13:37:08 +00:00
|
|
|
.endif
|
|
|
|
|
2000-06-07 17:10:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|