diff options
author | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-12-01 00:00:43 +0000 |
---|---|---|
committer | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-12-01 00:00:43 +0000 |
commit | 2b222ce70ca5b2e52bbae33a07a577f32c9a12b5 (patch) | |
tree | 0762d28ea40b794fecacaa8fa8d19b9afa9689f3 /biology/tinker/Makefile | |
parent | 9c5386b239ade6b8468ddd1c77a4454d54be727c (diff) | |
download | ports-2b222ce70ca5b2e52bbae33a07a577f32c9a12b5.tar.gz ports-2b222ce70ca5b2e52bbae33a07a577f32c9a12b5.zip |
Notes
Diffstat (limited to 'biology/tinker/Makefile')
-rw-r--r-- | biology/tinker/Makefile | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/biology/tinker/Makefile b/biology/tinker/Makefile index 7035071bbaf1..3e3fb3a2899e 100644 --- a/biology/tinker/Makefile +++ b/biology/tinker/Makefile @@ -1,76 +1,74 @@ -# New ports collection makefile for: tinker -# Date Created: 26 August 1998 -# Whom: Glenn Johnson -# +# Created by: Glenn Johnson # $FreeBSD$ -# PORTNAME= tinker -PORTVERSION= 5.1.09 +PORTVERSION= 6.1.01 CATEGORIES= biology MASTER_SITES= http://dasher.wustl.edu/tinker/downloads/ MAINTAINER= ports@FreeBSD.org COMMENT= A general purpose molecular modelling package -MAKE_ENV+= HAVE_G2C=yes INSTALL_PROGRAM="${INSTALL_PROGRAM}" +RESTRICTED= author requests no distribution except from his FTP site + +OPTIONS_DEFINE= OPTIMIZED_FFLAGS DATA DOCS EXAMPLES +OPTIONS_DEFAULT=DATA +OPTIMIZED_FFLAGS_DESC= compilation optimizations -WRKSRC= ${WRKDIR}/tinker/source +WRKSRC= ${WRKDIR}/${PORTNAME} +BUILD_WRKSRC= ${WRKSRC}/source +INSTALL_WRKSRC= ${WRKSRC}/source -MAKEFILE= ${WRKDIR}/tinker/make/Makefile +USE_FORTRAN= yes +MAKE_ENV= HAVE_G2C=yes +MAKEFILE= ${WRKSRC}/make/Makefile ALL_TARGET= all listing INSTALL_TARGET= rename -RESTRICTED= author requests no distribution except from his FTP site +MAKE_JOBS_SAFE= yes -DOCS= 0README *.pdf *.txt announce/release* -SAMPLES= 0README *.make *.dyn *.int *.frac *.key *.seq *.pdb *.run *.xyz +SUB_FILES= pkg-message + +DOCS= 0README *.pdf *.txt +SAMPLES= 0README *.make *.dyn *.int *.frac *.key *.seq *.pdb *.xyz BENCHES= 0README *.dyn0 *.log *.key *.run *.xyz results* .include <bsd.port.pre.mk> -USE_FORTRAN= yes - -.if defined(WITH_OPTIMIZED_FLAGS) +.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-everything:: -.if !defined(WITH_OPTIMIZED_FLAGS) - @${ECHO_MSG} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes." +.if empty(PORT_OPTIONS:MDATA) +NOPORTDATA= yes .endif post-extract: - ${CHMOD} -R u+w ${WRKDIR}/tinker - -post-patch: - @${REINPLACE_CMD} -e 's|%%FFLAGS%%|${FFLAGS}|g' ${WRKSRC}/../make/Makefile + @${CHMOD} -R u+w ${WRKSRC} post-install: + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/tinker.txt ${DATADIR} @${MKDIR} ${DATADIR}/params - @${INSTALL_DATA} ${WRKDIR}/tinker/source/tinker.txt \ - ${DATADIR} - @${INSTALL_DATA} ${WRKDIR}/tinker/params/* \ - ${DATADIR}/params -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/params/* ${DATADIR}/params +.if ${PORT_OPTIONS:MDATA} @${MKDIR} ${DATADIR}/bench + ${INSTALL_DATA} ${BENCHES:S|^|${WRKSRC}/bench/|} ${DATADIR}/bench @${MKDIR} ${DATADIR}/test - @${INSTALL_DATA} ${DOCS:S|^|${WRKDIR}/tinker/doc/|} ${DOCSDIR} - @${INSTALL_DATA} ${SAMPLES:S|^|${WRKDIR}/tinker/example/|} ${EXAMPLESDIR} - @${INSTALL_DATA} ${BENCHES:S|^|${WRKDIR}/tinker/bench/|} ${DATADIR}/bench - @${INSTALL_DATA} ${WRKDIR}/tinker/test/* ${DATADIR}/test + ${INSTALL_DATA} ${WRKSRC}/test/* ${DATADIR}/test +.endif +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${SAMPLES:S|^|${WRKSRC}/example/|} ${EXAMPLESDIR} .endif - @${ECHO_MSG} "" - @${ECHO_MSG} " **********************************************************" - @${ECHO_MSG} " The author requests that you return a license form " - @${ECHO_MSG} " to him if you find Tinker to be useful. " - @${ECHO_MSG} " " - @${ECHO_MSG} " See ${DOCSDIR} for license forms. " - @${ECHO_MSG} " **********************************************************" - @${ECHO_MSG} "" + @${ECHO_CMD} + @${CAT} ${PKGMESSAGE} + @${ECHO_CMD} .include <bsd.port.post.mk> |