summaryrefslogtreecommitdiff
path: root/biology/avida/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-20 15:17:46 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-20 15:17:46 +0000
commit9e3da593d2b8eb711044789d0248d901ce4777a0 (patch)
treec87a1b9cb53bd13391f4e0f80f265b332cf6b17c /biology/avida/Makefile
parentUpgrade to 6.0 Beta 2. I've only tested it cursorily, but it seems about (diff)
add avida 1.6.0
Avida is an auto-adaptive genetic system designed for ALife research PR: 37268 Submitted by: Jeremy Karlson <karlj000@unbc.ca>
Notes
Notes: svn path=/head/; revision=57919
Diffstat (limited to 'biology/avida/Makefile')
-rw-r--r--biology/avida/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/biology/avida/Makefile b/biology/avida/Makefile
new file mode 100644
index 000000000000..d02462e1fd4f
--- /dev/null
+++ b/biology/avida/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: avida
+# Date created: 17 April 2002
+# Whom: Jeremy <karlj000@unbc.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= avida
+PORTVERSION= 1.6.0
+CATEGORIES= biology
+MASTER_SITES= http://dllab.caltech.edu/avida/versions/
+
+MAINTAINER= karlj000@unbc.ca
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.[[:alnum:]]+$//}
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-viewer --enable-standard-prefix --prefix=${PREFIX} --datadir=${PREFIX}/share/${PORTNAME}
+
+post-patch:
+ # Change source/defs.hh prefix and port name.
+ @ ${MV} ${WRKSRC}/source/defs.hh ${WRKSRC}/source/defs.hh.presed
+ @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/source/defs.hh.presed \
+ | ${SED} -e 's#%%PORTNAME%%#${PORTNAME}#g' \
+ > ${WRKSRC}/source/defs.hh
+
+ # Change source/support/genesis prefix and port name.
+ @ ${MV} ${WRKSRC}/source/support/genesis ${WRKSRC}/source/support/genesis.presed
+ @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/source/support/genesis.presed \
+ | ${SED} -e 's#%%PORTNAME%%#${PORTNAME}#g' \
+ > ${WRKSRC}/source/support/genesis
+
+ # Change source/support/genesis.heads prefix and port name.
+ @ ${MV} ${WRKSRC}/source/support/genesis.heads ${WRKSRC}/source/support/genesis.heads.presed
+ @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/source/support/genesis.heads.presed \
+ | ${SED} -e 's#%%PORTNAME%%#${PORTNAME}#g' \
+ > ${WRKSRC}/source/support/genesis.heads
+
+.include <bsd.port.mk>