2013-06-19 20:38:46 +02:00
|
|
|
# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
1999-08-25 06:58:03 +02:00
|
|
|
# $FreeBSD$
|
1999-05-06 10:23:21 +02:00
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= mopac
|
2006-07-03 06:41:35 +02:00
|
|
|
PORTVERSION= 7.${MOPAC_SUBVERSION}
|
2014-03-23 19:10:41 +01:00
|
|
|
PORTREVISION= 3
|
2006-07-03 06:41:35 +02:00
|
|
|
PORTEPOCH= 1
|
1999-05-06 10:23:21 +02:00
|
|
|
CATEGORIES= biology
|
2009-12-22 12:25:15 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}7/${PORTNAME}7/${PORTNAME}7-1.00
|
|
|
|
DISTNAME= ${PORTNAME}7-${MOPAC_SUBVERSION}
|
1999-05-06 10:23:21 +02:00
|
|
|
|
2006-04-05 08:13:46 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= Semi-empirical (MNDO, etc.) molecular orbital calculation
|
1999-05-06 10:23:21 +02:00
|
|
|
|
2013-12-11 15:43:51 +01:00
|
|
|
LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c
|
1999-05-24 04:20:21 +02:00
|
|
|
|
2014-03-13 08:41:34 +01:00
|
|
|
USES= gmake
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= aclocal automake autoconf libtool
|
2009-12-22 12:25:15 +01:00
|
|
|
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
|
|
|
|
AUTOMAKE_ARGS= --add-missing --copy
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-12-22 12:25:15 +01:00
|
|
|
|
|
|
|
MOPAC_SUBVERSION= 1.11
|
1999-05-07 07:12:20 +02:00
|
|
|
|
2013-06-19 20:38:46 +02:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
|
2006-07-10 07:32:58 +02:00
|
|
|
post-patch:
|
2009-12-22 12:25:15 +01:00
|
|
|
@${REINPLACE_CMD} -e '/pkgconfig/s|$$(libdir)|$$(prefix)/libdata|g' \
|
|
|
|
${WRKSRC}/Makefile.am
|
|
|
|
@${REINPLACE_CMD} -e '/usage/s|run_||g' \
|
2013-04-29 19:30:09 +02:00
|
|
|
-e 's|./src/mopac7|${PREFIX}/libexec/mopac7|g' \
|
2009-12-22 12:25:15 +01:00
|
|
|
${WRKSRC}/run_${PORTNAME}7
|
2006-07-10 07:32:58 +02:00
|
|
|
|
1999-05-06 10:23:21 +02:00
|
|
|
post-install:
|
2014-03-23 19:10:41 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run_${PORTNAME}7 \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}7
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}7 \
|
|
|
|
${STAGEDIR}${PREFIX}/libexec/${PORTNAME}7
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/test
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tests/*.dat ${STAGEDIR}${EXAMPLESDIR}/test
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmopac7.so.0
|
1999-05-06 10:23:21 +02:00
|
|
|
|
2006-07-03 06:41:35 +02:00
|
|
|
.include <bsd.port.mk>
|