Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= avida |
8 |
PORTNAME= avida |
9 |
PORTVERSION= 2.10.0 |
9 |
PORTVERSION= 2.12.3 |
|
|
10 |
DISTVERSIONSUFFIX= -src |
10 |
CATEGORIES= biology |
11 |
CATEGORIES= biology |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-src |
|
|
13 |
|
13 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Avida is an auto-adaptive genetic system designed for ALife research |
15 |
COMMENT= An auto-adaptive genetic system designed for ALife research |
16 |
|
16 |
|
17 |
LICENSE= GPLv2 |
17 |
LICENSE= GPLv3 |
18 |
|
18 |
|
|
|
19 |
OPTIONS_DEFINE= DOCS |
20 |
|
21 |
NO_WRKSUBDIR= yes |
22 |
|
23 |
USE_NCURSES= yes |
19 |
USE_CMAKE= yes |
24 |
USE_CMAKE= yes |
20 |
USE_GCC= 4.2+ |
25 |
CMAKE_OUTSOURCE=yes |
21 |
MAKE_JOBS_SAFE= yes |
26 |
MAKE_JOBS_SAFE= yes |
22 |
|
27 |
|
23 |
PORTDOCS= * |
28 |
PORTDOCS= * |
24 |
|
29 |
PLIST_FILES= ${BIN_FILES:S|^|bin/|} \ |
25 |
post-extract: |
30 |
${BIN_FILES:S|^|lib/${PORTNAME}/|} \ |
26 |
@${RM} -f ${WRKSRC}/documentation/.[D_]* |
31 |
${DATA_FILES:S|^|lib/${PORTNAME}/|} |
27 |
|
32 |
PLIST_DIRS= lib/${PORTNAME} |
28 |
post-install: |
33 |
|
29 |
${INSTALL_PROGRAM} ${WRKSRC}/work/avida ${PREFIX}/bin |
34 |
BIN_FILES= avida avida-viewer |
30 |
${MKDIR} ${DATADIR} |
35 |
DATA_FILES= analyze.cfg avida.cfg default-gx.org \ |
31 |
${INSTALL_DATA} ${WRKSRC}/work/*.cfg ${WRKSRC}/work/*.org ${DATADIR} |
36 |
default-heads-sex.org default-heads.org default-smt.org \ |
32 |
.if !defined(NOPORTDOCS) |
37 |
default-transsmt.org environment.cfg events.cfg \ |
33 |
${MKDIR} ${DOCSDIR} |
38 |
experimental.org instset-experimental.cfg instset-gx.cfg \ |
34 |
cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${DOCSDIR} |
39 |
instset-heads-sex.cfg instset-heads.cfg instset-smt.cfg \ |
35 |
.endif |
40 |
instset-transsmt.cfg |
36 |
|
41 |
|
37 |
.include <bsd.port.pre.mk> |
42 |
.include <bsd.port.pre.mk> |
38 |
|
43 |
|
Lines 40-43
Link Here
|
40 |
BROKEN= Does not compile: invokes i386 asm |
45 |
BROKEN= Does not compile: invokes i386 asm |
41 |
.endif |
46 |
.endif |
42 |
|
47 |
|
|
|
48 |
post-patch: |
49 |
@${FIND} ${WRKSRC} -name "CMakeLists.txt" | ${XARGS} \ |
50 |
${REINPLACE_CMD} -e \ |
51 |
's|-O[0-9]|| ; \ |
52 |
s| pthread| ${PTHREAD_LIBS}|' |
53 |
@${REINPLACE_CMD} -e '/long long int/s|std::abs|llabs|' \ |
54 |
${WRKSRC}/avida-core/source/main/cPopulationInterface.cc |
55 |
|
56 |
pre-build: |
57 |
.for exec in ${BIN_FILES} |
58 |
@(cd ${WRKSRC} && ${ECHO_CMD} \ |
59 |
'cd ${PREFIX}/lib/${PORTNAME} && ./${exec} $$@' > ${exec}.sh) |
60 |
.endfor |
61 |
|
62 |
do-install: |
63 |
@${MKDIR} ${PREFIX}/lib/${PORTNAME} |
64 |
.for exec in ${BIN_FILES} |
65 |
(cd ${WRKSRC} \ |
66 |
&& ${INSTALL_SCRIPT} ${exec}.sh ${PREFIX}/bin/${exec}) |
67 |
(cd ${BUILD_WRKSRC}/bin \ |
68 |
&& ${INSTALL_PROGRAM} ${exec} ${PREFIX}/lib/${PORTNAME}) |
69 |
.endfor |
70 |
(cd ${WRKSRC}/avida-core/support/config \ |
71 |
&& ${INSTALL_DATA} *.cfg ${PREFIX}/lib/${PORTNAME} \ |
72 |
&& ${INSTALL_DATA} *.org ${PREFIX}/lib/${PORTNAME}) |
73 |
.if ${PORT_OPTIONS:MDOCS} |
74 |
@${MKDIR} ${DOCSDIR} |
75 |
@(cd ${WRKSRC}/avida-core/documentation \ |
76 |
&& ${COPYTREE_SHARE} . ${DOCSDIR}) |
77 |
.endif |
78 |
|
43 |
.include <bsd.port.post.mk> |
79 |
.include <bsd.port.post.mk> |