aboutsummaryrefslogtreecommitdiffstats
path: root/biology/ortep3/Makefile
blob: 971f22cf7737841479343f4e923e5f43398cfc97 (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
# New ports collection makefile for:    ORTEP-III
# Date created:     1999-05-08
# Whom:         Ryo MIYAMOTO
#
# $FreeBSD$
#

PORTNAME=   ortep3
PORTVERSION=    1.0.3
PORTREVISION=   2
CATEGORIES= biology
MASTER_SITES=   ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/ortep/ \
        ftp://ftp.ornl.gov/pub/ortep/src/
DISTFILES=  ortep.tar.Z ortep.f
EXTRACT_ONLY=   ortep.tar.Z

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

.if defined(WITH_PGPLOT)
LIB_DEPENDS=    pgplot.5:${PORTSDIR}/graphics/pgplot
.endif

WRKSRC=     ${WRKDIR}/ortep/src

MAKE_ARGS=  FFLAGS="${FFLAGS}" LFLAGS="${LFLAGS}"

.if defined(WITH_PGPLOT)
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-aa
LFLAGS=     -L${LOCALBASE}/lib -lpgplot -L${X11BASE}/lib -lX11
.endif

post-extract:
    ${MV} ${WRKSRC}/ortep.f ${WRKSRC}/ortep.f-1.0
    ${CP} ${DISTDIR}/ortep.f ${WRKSRC}/ortep.f

pre-build:
    ${CP} ${FILESDIR}/Makefile.ortep3 ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ortep3 ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/doc/ortep3
    ${INSTALL_DATA} ${WRKSRC}/../README.1st \
        ${PREFIX}/share/doc/ortep3
    @${MKDIR} ${PREFIX}/share/doc/ortep3/examples
    ${INSTALL_DATA} ${WRKSRC}/../examples/* \
        ${PREFIX}/share/doc/ortep3/examples
    @${MKDIR} ${PREFIX}/share/doc/ortep3/man
    ${INSTALL_DATA} ${WRKSRC}/../man/* \
        ${PREFIX}/share/doc/ortep3/man
    @${MKDIR} ${PREFIX}/share/doc/ortep3/src
    ${INSTALL_DATA} ${WRKSRC}/000readme.txt \
        ${PREFIX}/share/doc/ortep3/src

.include <bsd.port.mk>