2000-06-07 16:20:59 +00:00
|
|
|
# New ports collection makefile for: mopac
|
|
|
|
# Date created: 1997-04-23
|
|
|
|
# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
1999-05-06 08:23:21 +00:00
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1999-05-06 08:23:21 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= mopac
|
|
|
|
PORTVERSION= 7.02
|
1999-05-06 08:23:21 +00:00
|
|
|
CATEGORIES= biology
|
1999-05-08 08:06:43 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/mopac7_sources/
|
2000-04-16 10:44:52 +00:00
|
|
|
DISTNAME= mopac7
|
1999-05-06 08:23:21 +00:00
|
|
|
DISTFILES= mopac7.tar.Z mopac7-man.tar.Z
|
|
|
|
|
2000-06-07 16:20:59 +00:00
|
|
|
PATCH_SITES= ftp://ftp.ccl.net/pub/chemistry/software/LINUX/mopac7/old-version-95.06.21/
|
1999-05-06 08:23:21 +00:00
|
|
|
PATCHFILES= mopac7-linux.diff.Z
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
1999-05-24 02:20:21 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-06-07 16:20:59 +00:00
|
|
|
|
1999-05-24 02:20:21 +00:00
|
|
|
.if ${OSVERSION} >= 400005
|
2000-06-07 16:20:59 +00:00
|
|
|
BUILD_DEPENDS= fc:${PORTSDIR}/lang/f77
|
|
|
|
MAKE_ARGS+= FC=fc
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= FC=f77
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
FFLAGS+= -malign-double
|
1999-05-24 02:20:21 +00:00
|
|
|
.endif
|
|
|
|
|
1999-05-06 08:23:21 +00:00
|
|
|
post-patch:
|
|
|
|
${CP} ${WRKDIR}/${DISTNAME}/esp.rof ${WRKDIR}/${DISTNAME}/esp.f
|
|
|
|
|
1999-05-07 05:12:20 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/MOPAC7 ${PREFIX}/bin
|
2000-06-07 16:20:59 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/rmopac ${PREFIX}/bin
|
1999-05-07 05:12:20 +00:00
|
|
|
|
1999-05-06 08:23:21 +00:00
|
|
|
post-install:
|
2000-06-07 16:20:59 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mopac
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/mopac
|
|
|
|
${MKDIR} ${PREFIX}/share/mopac/test
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/h2o.dat ${PREFIX}/share/examples/mopac
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mopac7/test.csh ${PREFIX}/share/mopac/test
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mopac7/test_* ${PREFIX}/share/mopac/test
|
1999-05-07 05:12:20 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.tex ${PREFIX}/share/doc/mopac
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.dvi ${PREFIX}/share/doc/mopac
|
2000-06-07 16:20:59 +00:00
|
|
|
.endif
|
1999-05-06 08:23:21 +00:00
|
|
|
|
1999-05-24 02:20:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|