aboutsummaryrefslogtreecommitdiffstats
path: root/biology/mopac/Makefile
blob: 71187b3240cd9203e1a4aa83725841704b52a862 (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
# New ports collection makefile for:    mopac
# Date created:             1997-04-23
# Whom:                 Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   mopac
PORTVERSION=    7.${MOPAC_SUBVERSION}
PORTEPOCH=  1
CATEGORIES= biology
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     mopac7
DISTNAME=   mopac7-${MOPAC_SUBVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Semi-empirical (MNDO, etc.) molecular orbital calculation

BUILD_DEPENDS=  f2c:${PORTSDIR}/lang/f2c
LIB_DEPENDS=    f2c:${PORTSDIR}/lang/f2c

MOPAC_SUBVERSION=   1.10
WRKSRC=     ${WRKDIR}/mopac7-${MOPAC_SUBVERSION}
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV+=  CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/run_mopac7  ${PREFIX}/bin/mopac7
.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}
    @${MKDIR} ${EXAMPLESDIR}/test
    ${INSTALL_DATA} ${WRKSRC}/tests/*dat ${EXAMPLESDIR}/test
    ${INSTALL_DATA} ${WRKSRC}/tests/*OUT ${EXAMPLESDIR}/test
.endif

.include <bsd.port.mk>