aboutsummaryrefslogtreecommitdiffstats
path: root/biology/avida/Makefile
blob: 00228e6d8d4e30446d75f93b8ccb1939d0c27814 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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
COMMENT=    Avida is an auto-adaptive genetic system designed for ALife research

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=         "Does not compile (bad C++ code)"
.endif

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.post.mk>