diff options
Diffstat (limited to 'biology/mopac/Makefile')
-rw-r--r-- | biology/mopac/Makefile | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile index b17fa95f626d..ebab5793fa9c 100644 --- a/biology/mopac/Makefile +++ b/biology/mopac/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: mopac -# Date created: 1997-04-23 -# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp> +# New ports collection makefile for: mopac +# Date created: 1997-04-23 +# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp> # # $FreeBSD$ # @@ -12,7 +12,7 @@ MASTER_SITES= ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/mopac7_so DISTNAME= mopac7 DISTFILES= mopac7.tar.Z mopac7-man.tar.Z -PATCH_SITES= ftp://ftp.ccl.net/pub/chemistry/software/LINUX/mopac7/old-version-95.06.21/ +PATCH_SITES= ftp://ftp.ccl.net/pub/chemistry/software/LINUX/mopac7/old-version-95.06.21/ PATCHFILES= mopac7-linux.diff.Z PATCH_DIST_STRIP= -p1 @@ -21,27 +21,34 @@ MAINTAINER= rmiya@cc.hirosaki-u.ac.jp USE_GMAKE= yes .include <bsd.port.pre.mk> + .if ${OSVERSION} >= 400005 -MAKE_ENV+= HAVE_G2C=yes +BUILD_DEPENDS= fc:${PORTSDIR}/lang/f77 +MAKE_ARGS+= FC=fc +.else +MAKE_ARGS+= FC=f77 +.endif +.if ${MACHINE_ARCH} == "i386" +FFLAGS+= -malign-double .endif post-patch: ${CP} ${WRKDIR}/${DISTNAME}/esp.rof ${WRKDIR}/${DISTNAME}/esp.f -pre-install: - ${CP} ${FILESDIR}/rmopac ${WRKDIR}/${DISTNAME}/rmopac - ${RM} -rf ${PREFIX}/share/doc/mopac - ${MKDIR} ${PREFIX}/share/doc/mopac - do-install: - strip ${WRKDIR}/${DISTNAME}/MOPAC7 ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/MOPAC7 ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/rmopac ${PREFIX}/bin + ${INSTALL_SCRIPT} ${FILESDIR}/rmopac ${PREFIX}/bin post-install: - ${INSTALL_DATA} ${FILESDIR}/h2o.dat ${PREFIX}/share/doc/mopac - ${INSTALL_DATA} ${WRKDIR}/mopac7/test_* ${PREFIX}/share/doc/mopac +.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 ${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.tex ${PREFIX}/share/doc/mopac ${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.dvi ${PREFIX}/share/doc/mopac +.endif .include <bsd.port.post.mk> |