aboutsummaryrefslogtreecommitdiffstats
path: root/biology/avida/Makefile
blob: 637e8a3af5c56612ee454a3ef7c7e6af3adbe85f (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
# New ports collection makefile for:    avida
# Date created:     17 April 2002
# Whom:         Jeremy <karlj000@unbc.ca>
#
# $FreeBSD$
#

PORTNAME=   avida
PORTVERSION=    2.8.1
PORTREVISION=   1
CATEGORIES= biology
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Avida is an auto-adaptive genetic system designed for ALife research

USE_CMAKE=  yes
USE_GCC=    4.2+

WRKSRC=     ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}

PORTDOCS=   *

post-extract:
    @${RM} -f ${WRKSRC}/documentation/.[D_]*

post-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/work/avida ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/work/avida-viewer ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/work/*.cfg ${WRKSRC}/work/*.org ${DATADIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

.include <bsd.port.mk>