2006-08-28 22:33:45 +00:00
|
|
|
# Ports collection makefile for: foldingathome
|
|
|
|
# Date created: 2/8/2006
|
|
|
|
# Whom: Yonatan <onatan@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= foldingathome
|
2007-09-23 05:45:41 +00:00
|
|
|
PORTVERSION= 5.04
|
2006-08-28 22:33:45 +00:00
|
|
|
CATEGORIES= biology
|
|
|
|
MASTER_SITES= http://www.stanford.edu/group/pandegroup/release/
|
|
|
|
PKGNAMEPREFIX= linux-
|
|
|
|
DISTNAME= FAH${PORTVERSION:S/.//}-Linux
|
|
|
|
EXTRACT_SUFX= .exe
|
|
|
|
|
|
|
|
MAINTAINER= onatan@gmail.com
|
|
|
|
COMMENT= Distributed client for Protein Folding
|
|
|
|
|
|
|
|
USE_LINUX= yes
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
REINPLACE_ARGS=
|
|
|
|
PLIST_FILES= share/${PORTNAME}/${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
bin/FoldingAtHome
|
|
|
|
PLIST_DIRS= share/${PORTNAME}
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKSRC}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${BRANDELF} -t Linux ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
${CHMOD} 755 ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/bin
|
|
|
|
${REINPLACE_CMD} -e "s|DATADIR|${DATADIR}|" ${SCRIPTDIR}/FoldingAtHome \
|
|
|
|
| ${REINPLACE_CMD} -e "s|BINNAME|${DISTNAME}${EXTRACT_SUFX}|" \
|
|
|
|
> ${PREFIX}/bin/FoldingAtHome
|
|
|
|
${CHMOD} 755 ${PREFIX}/bin/FoldingAtHome
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${CP} ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX} ${DATADIR}/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|