mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
9dba1af857
Submitted by: kris via pointyhat and pav.
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# New ports collection makefile for: Psi88
|
|
# Date created: 1998-11-11
|
|
# Whom: Ryo MIYAMOTO
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= psi88
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= biology
|
|
MASTER_SITES= http://www.ccl.net/cca/software/SOURCES/FORTRAN/psi88/
|
|
DISTNAME= ${PORTNAME}
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Plotting wavefunctions (molecular orbitals) in 3D
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
WANT_FORTRAN= yes #dummy
|
|
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
|
|
FC= gfortran42
|
|
F77= gfortran42
|
|
|
|
pre-patch:
|
|
${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g' -e 's+%%FFLAGS%%+${FFLAGS}+g' -e 's+%%LOCALBASE%%+${LOCALBASE}+g' -e 's+%%PREFIX%%+${PREFIX}+g' ${WRKSRC}/src/Makefile
|
|
|
|
pre-build:
|
|
${CP} ${FILESDIR}/Makefile.top ${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${LN} -s ${PREFIX}/bin/PSI2PS ${PREFIX}/bin/PSI2
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/preplot ${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi1 ${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi2 ${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsicon ${PREFIX}/bin/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/psi88
|
|
${MKDIR} ${PREFIX}/share/doc/psi88/examples
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/psi88
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/psi88.doc ${PREFIX}/share/doc/psi88
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/* ${PREFIX}/share/doc/psi88/examples
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|