View | Details | Raw Unified | Return to bug 168993 | Differences between
and this patch

Collapse All | Expand All

(-)biology/avida/Makefile (-18 / +54 lines)
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
CATEGORIES=	biology
10
CATEGORIES=	biology
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
12
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
12
DISTVERSIONSUFFIX=	-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
43
.include <bsd.port.post.mk>
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
79
.include <bsd.port.mk>
(-)biology/avida/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (avida-2.10.0-src.tar.gz) = 351d87dad2a35eb005b466dc0e7731195b4a824edbbde7818ef633b5803319db
1
SHA256 (avida-2.12.3-src.tar.gz) = 6be2b439048d31f11a2303e1604c0e5c47468352a04361fb5bf8c0332d7ad3bd
2
SIZE (avida-2.10.0-src.tar.gz) = 5657331
2
SIZE (avida-2.12.3-src.tar.gz) = 7862722
(-)biology/avida/pkg-plist (-12 lines)
Lines 1-12 Link Here
1
bin/avida
2
%%DATADIR%%/analyze.cfg
3
%%DATADIR%%/avida.cfg
4
%%DATADIR%%/default-heads-sex.org
5
%%DATADIR%%/default-heads.org
6
%%DATADIR%%/default-transsmt.org
7
%%DATADIR%%/environment.cfg
8
%%DATADIR%%/events.cfg
9
%%DATADIR%%/instset-heads-sex.cfg
10
%%DATADIR%%/instset-heads.cfg
11
%%DATADIR%%/instset-transsmt.cfg
12
@dirrm %%DATADIR%%

Return to bug 168993