summaryrefslogtreecommitdiff
path: root/biology/mopac/Makefile
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-03-09 17:52:57 +0000
committertnn <tnn@pkgsrc.org>2008-03-09 17:52:57 +0000
commit5feb9fa253b3b641f30a1695fa0d1eca8d49a099 (patch)
tree664ba3f9cdca24d9fa7fecb2873310ee08ada160 /biology/mopac/Makefile
parentfef238623fa3b1a9d7ef906f5df1bf4295e2c521 (diff)
downloadpkgsrc-5feb9fa253b3b641f30a1695fa0d1eca8d49a099.tar.gz
Import mopac-7.0 as pkgsrc/biology/mopac.
Mopac is semiempirical molecular energy calculation program for chemistry and physics. From pkgsrc-wip, original from PR pkg/18046 by Osamu OISHI.
Diffstat (limited to 'biology/mopac/Makefile')
-rw-r--r--biology/mopac/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile
new file mode 100644
index 00000000000..d937361fc90
--- /dev/null
+++ b/biology/mopac/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/03/09 17:52:57 tnn Exp $
+#
+
+DISTNAME= mopac7
+PKGNAME= mopac-7.0
+CATEGORIES= biology math
+MASTER_SITES= http://server.ccl.net/cca/software/LINUX/mopac7/
+EXTRACT_SUFX= .tar.Z
+DISTFILES= ${DEFAULT_DISTFILES} mopac7-man.tar.gz
+
+PATCH_SITES= ${MASTER_SITES:=old-version-95.06.21/}
+PATCHFILES= mopac7-linux.diff.gz
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= oishi@ims.ac.jp
+HOMEPAGE= http://server.ccl.net/cca/software/LINUX/mopac7/index.shtml
+COMMENT= Molecular energy calculation program
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/mopac7
+BUILD_TARGET= MOPAC7
+USE_TOOLS+= gmake
+USE_LANGUAGES= fortran
+PKG_FC= f2c-f77
+
+INSTALLATION_DIRS= bin share/mopac7/sample
+
+pre-build:
+ cp ${WRKSRC}/esp.rof ${WRKSRC}/esp.f
+ rm -f ${WRKSRC}/Makefile
+ cp ${FILESDIR}/Makefile ${WRKSRC}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/mopac ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/MOPAC7 ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC} && ${PAX} -wr test_* \
+ ${DESTDIR}${PREFIX}/share/mopac7/sample
+ cd ${WRKDIR} && ${PAX} -wr mopac7-man ${DESTDIR}${PREFIX}/share/mopac7
+
+# "g77" can not be used for external function
+
+.include "../../lang/f2c/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"