freebsd-ports/biology/tinker/Makefile
Gerald Pfeifer 04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00

67 lines
1.9 KiB
Makefile

# Created by: Glenn Johnson
# $FreeBSD$
PORTNAME= tinker
PORTVERSION= 7.1.3
PORTREVISION= 2
CATEGORIES= biology
MASTER_SITES= http://dasher.wustl.edu/tinker/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= General purpose molecular modelling package
LICENSE= tinker
LICENSE_NAME= TINKER license agreement
LICENSE_FILE= ${WRKSRC}/doc/license.txt
LICENSE_PERMS= auto-accept
RESTRICTED= author requests no distribution except from his FTP site
OPTIONS_DEFINE= OPTIMIZED_FFLAGS DOCS EXAMPLES
OPTIMIZED_FFLAGS_DESC= compilation optimizations
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/source
INSTALL_WRKSRC= ${WRKSRC}/source
USES= fortran
MAKE_ENV= HAVE_G2C=yes
MAKEFILE= ${WRKSRC}/make/Makefile
ALL_TARGET= all
INSTALL_TARGET= rename
EXTRACT_AFTER_ARGS=--exclude fftw --exclude windows --exclude macosx
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_FFLAGS}
FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
.if (${ARCH} == "i386")
FFLAGS+= -mfancy-math-387 -malign-double
.endif # i386
.endif
pre-build:
@${RM} ${BUILD_WRKSRC}/*.c
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}/bench
(cd ${WRKSRC}/bench && ${INSTALL_DATA} \
0README *.log *.key *.run *.xyz results* \
${STAGEDIR}${DATADIR}/bench)
${MKDIR} ${STAGEDIR}${DATADIR}/params
(cd ${WRKSRC}/params && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/params)
${MKDIR} ${STAGEDIR}${DATADIR}/test
(cd ${WRKSRC}/test && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/test)
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} 0README *.pdf *.txt ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/example && ${INSTALL_DATA} \
0README *.make *.dyn *.int *.frac *.key *.seq *.pdb *.xyz \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>