2002-09-16 09:26:20 +00:00
|
|
|
# New ports collection makefile for: mmtk
|
|
|
|
# Date created: 29 August 2002
|
|
|
|
# Whom: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mmtk
|
|
|
|
PORTVERSION= 2.2
|
|
|
|
CATEGORIES= science python
|
|
|
|
MASTER_SITES= http://starship.python.net/crew/hinsen/MMTK/
|
|
|
|
DISTNAME= MMTK-${PORTVERSION}
|
|
|
|
|
2003-12-21 00:23:25 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= An Open Source program library for molecular simulation applications
|
2002-09-16 09:26:20 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Scientific:${PORTSDIR}/math/py-scientific
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Scientific:${PORTSDIR}/math/py-scientific
|
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
MAJOR!= ${UNAME} -r | ${SED} -e 's/\..*//'
|
|
|
|
|
|
|
|
PLIST_SUB+= MAJOR=${MAJOR}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} "s#'Include'#'Include','${PREFIX}/include'#" ${WRKSRC}/setup.py
|
|
|
|
@${REINPLACE_CMD} "s#malloc.h#stdlib.h#g" ${WRKSRC}/Include/MMTK/readdcd.h
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${TAR} -C ${WRKSRC} -chf - Doc | \
|
|
|
|
${TAR} -xf - -C ${DOCSDIR}
|
|
|
|
@${TAR} -C ${WRKSRC} -chf - Examples | \
|
|
|
|
${TAR} -xf - -C ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|