summaryrefslogtreecommitdiff
path: root/biology/distribfold
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-10-19 18:19:50 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-10-19 18:19:50 +0000
commitee316777126d60b0bb60a9ecd1010b1a610fe1af (patch)
treecb4adfddfa3e1e803e56a47ff2215090272fc584 /biology/distribfold
parentFix build on -CURRENT. (diff)
o Update to snapshot 20021015
o Fix an issue with the startup scripts
Notes
Notes: svn path=/head/; revision=68357
Diffstat (limited to 'biology/distribfold')
-rw-r--r--biology/distribfold/Makefile19
-rw-r--r--biology/distribfold/distinfo2
2 files changed, 17 insertions, 4 deletions
diff --git a/biology/distribfold/Makefile b/biology/distribfold/Makefile
index a8b93ba7e881..bc1b051ff021 100644
--- a/biology/distribfold/Makefile
+++ b/biology/distribfold/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= distribfold
-PORTVERSION= 0.1
+PORTVERSION= 0.1.${RELEASE_DATE}
CATEGORIES= misc net
MASTER_SITES= ftp://ftp.mshri.on.ca/pub/distribfold/download/
DISTNAME= distribfold-current-FreeBSD
@@ -32,8 +32,10 @@ DNETFOLD_GROUP=dnetfold
# default number of processors
WITH_NCPU?= 1
+RELEASE_DATE= 20021015
+
post-patch:
- @${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}|' \
+ @${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}/cpu0|' \
${WRKSRC}/foldit
pre-install:
@@ -69,7 +71,7 @@ do-install:
# display package message
@${CAT} ${PKGMESSAGE}
-post-install: cook-install-plist
+post-install: cook-install-plist fix-startup-scripts
.include <bsd.port.pre.mk>
@@ -113,4 +115,15 @@ cook-install-plist: generate-plist
.endfor
.endif
+fix-startup-scripts:
+.if ${WITH_NCPU} > 1
+# for every cpu directory
+ @ncpu=`${CAT} ${WRKDIR}/ncpu` ; \
+ for dir in `${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \
+ ${REINPLACE_CMD} -e "s|cpu0|cpu$${dir}|" \
+ ${DESTINATION_DIR}/cpu$${dir}/foldit ; \
+ ${RM} -f ${DESTINATION_DIR}/cpu$${dir}/foldit.bak ; \
+ done
+.endif
+
.include <bsd.port.post.mk>
diff --git a/biology/distribfold/distinfo b/biology/distribfold/distinfo
index caca45379ff2..f34731753edd 100644
--- a/biology/distribfold/distinfo
+++ b/biology/distribfold/distinfo
@@ -1 +1 @@
-MD5 (distribfold-current-FreeBSD.tar.gz) = cd04da97523b2246c551198e564da3b1
+MD5 (distribfold-current-FreeBSD.tar.gz) = f68e1d77bb7e6bd3c218128b1f8b7f45