aboutsummaryrefslogtreecommitdiffstats
path: root/biology/mopac/Makefile
blob: 0365ac65bd6b180a77750a6f743fb6e13749b640 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:  mopac
# Version required:  7
# Date created:  1997-04-23
# Whom:  Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
#
# $Id: Makefile,v 1.3 1999/05/08 08:06:43 taoka Exp $
#

DISTNAME=   mopac7
PKGNAME=    mopac-7.02
CATEGORIES= biology
MASTER_SITES=   ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/mopac7_sources/
DISTFILES=  mopac7.tar.Z  mopac7-man.tar.Z

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

MAINTAINER= rmiya@cc.hirosaki-u.ac.jp

USE_GMAKE=  yes

.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400005
MAKE_ENV+=  HAVE_G2C=yes
.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

post-install:
    ${INSTALL_DATA} ${FILESDIR}/h2o.dat  ${PREFIX}/share/doc/mopac
    ${INSTALL_DATA} ${WRKDIR}/mopac7/test_* ${PREFIX}/share/doc/mopac
    ${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.tex ${PREFIX}/share/doc/mopac
    ${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.dvi ${PREFIX}/share/doc/mopac

.include <bsd.port.post.mk>