aboutsummaryrefslogtreecommitdiffstats
path: root/biology/tinker/Makefile
blob: b00a496cad83b11095dd109195b8305a96e7ee7e (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# New ports collection makefile for:   tinker
# Date Created:                26 August 1998
# Whom:                        Glenn Johnson
#
# $FreeBSD$
#

PORTNAME=   tinker
PORTVERSION=    3.7
CATEGORIES= biology
MASTER_SITES=   ftp://dasher.wustl.edu/pub/
DISTNAME=   ${PORTNAME}

MAINTAINER= gjohnson@nola.srrc.usda.gov

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400005
LIB_DEPENDS=    U77:${PORTSDIR}/devel/libU77

# If you wish to use g77 from EGCS, do the following:
# a) comment out the LIB_DEPENDS line above and uncomment the following line

# BUILD_DEPENDS= g77:${PORTSDIR}/lang/egcs

# b) set env variable 'FC' to 'g77' before running `make'; or 'make FC=g77'

.else
MAKE_ENV+=  HAVE_G2C=yes INSTALL_PROGRAM="${INSTALL_PROGRAM}"
.endif

WRKSRC=     ${WRKDIR}/tinker/source

MAKEFILE=   ${WRKDIR}/tinker/make/Makefile
ALL_TARGET= all listing
INSTALL_TARGET= rename

RESTRICTED= author requests no distribution except from his FTP site

post-install:
    ${MKDIR} ${PREFIX}/share/tinker
    ${MKDIR} ${PREFIX}/share/tinker/params
    ${INSTALL_DATA} ${WRKDIR}/tinker/source/tinker.txt \
${PREFIX}/share/tinker
    ${INSTALL_DATA} ${WRKDIR}/tinker/params/* \
${PREFIX}/share/tinker/params
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/tinker/doc
    ${MKDIR} ${PREFIX}/share/tinker/example
    ${MKDIR} ${PREFIX}/share/tinker/bench
    ${MKDIR} ${PREFIX}/share/tinker/test
    ${INSTALL_DATA} ${WRKDIR}/tinker/doc/README \
${PREFIX}/share/tinker/doc
    ${INSTALL_DATA} ${WRKDIR}/tinker/doc/*.pdf \
${PREFIX}/share/tinker/doc
    ${INSTALL_DATA} ${WRKDIR}/tinker/doc/*.ps \
${PREFIX}/share/tinker/doc
    ${INSTALL_DATA} ${WRKDIR}/tinker/doc/*.Z \
${PREFIX}/share/tinker/doc
    ${INSTALL_DATA} ${WRKDIR}/tinker/doc/*.txt \
${PREFIX}/share/tinker/doc
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/README \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/anion.dyn0 \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/*.in* \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/*.key \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/*.log \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/*.xyz \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/argon.1st \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/crambin.pdb \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/cyclohex.boat \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/cyclohex.chair \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/example/formamide.cell \
${PREFIX}/share/tinker/example
    ${INSTALL_SCRIPT} ${WRKDIR}/tinker/example/clean.make \
${PREFIX}/share/tinker/example
    ${INSTALL_SCRIPT} ${WRKDIR}/tinker/example/*.run \
${PREFIX}/share/tinker/example
    ${INSTALL_DATA} ${WRKDIR}/tinker/bench/*.input \
${PREFIX}/share/tinker/bench
    ${INSTALL_DATA} ${WRKDIR}/tinker/bench/*.key \
${PREFIX}/share/tinker/bench
    ${INSTALL_DATA} ${WRKDIR}/tinker/bench/*.xyz \
${PREFIX}/share/tinker/bench
    ${INSTALL_DATA} ${WRKDIR}/tinker/bench/water.dyn0 \
${PREFIX}/share/tinker/bench
    ${INSTALL_DATA} ${WRKDIR}/tinker/bench/results* \
${PREFIX}/share/tinker/bench
    ${INSTALL_SCRIPT} ${WRKDIR}/tinker/bench/*.run \
${PREFIX}/share/tinker/bench
    ${INSTALL_DATA} ${WRKDIR}/tinker/test/* ${PREFIX}/share/tinker/test
.endif
    @${ECHO} ""
    @${ECHO} "   **********************************************************"
    @${ECHO} "       The author requests that you return a license form    "
    @${ECHO} "       to him if you find Tinker to be useful.               "
    @${ECHO} "                                                             "
    @${ECHO} "       See ${PREFIX}/share/tinker/doc for license forms.     "
    @${ECHO} "   **********************************************************"
    @${ECHO} ""

.include <bsd.port.post.mk>