diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-17 20:04:32 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-17 20:04:32 +0000 |
commit | 5d64a9fe7011ee8f950db3487e12bbe96f9d9354 (patch) | |
tree | 34f0eb81fbe7b5a41ceef26490eebab484c41e19 /biology | |
parent | 1bc575759a75bfbb1fc653d8971b208f257cd249 (diff) | |
download | ports-5d64a9fe7011ee8f950db3487e12bbe96f9d9354.tar.gz ports-5d64a9fe7011ee8f950db3487e12bbe96f9d9354.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/avida/Makefile | 68 | ||||
-rw-r--r-- | biology/avida/distinfo | 4 | ||||
-rw-r--r-- | biology/avida/pkg-plist | 12 |
3 files changed, 54 insertions, 30 deletions
diff --git a/biology/avida/Makefile b/biology/avida/Makefile index 6ac55ddf964b..5646c4725d71 100644 --- a/biology/avida/Makefile +++ b/biology/avida/Makefile @@ -6,33 +6,38 @@ # PORTNAME= avida -PORTVERSION= 2.10.0 +PORTVERSION= 2.12.3 +DISTVERSIONSUFFIX= -src 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 +COMMENT= An auto-adaptive genetic system designed for ALife research -LICENSE= GPLv2 +LICENSE= GPLv3 +OPTIONS_DEFINE= DOCS + +NO_WRKSUBDIR= yes + +USE_NCURSES= yes USE_CMAKE= yes -USE_GCC= 4.2+ +CMAKE_OUTSOURCE=yes MAKE_JOBS_SAFE= yes PORTDOCS= * +PLIST_FILES= ${BIN_FILES:S|^|bin/|} \ + ${BIN_FILES:S|^|lib/${PORTNAME}/|} \ + ${DATA_FILES:S|^|lib/${PORTNAME}/|} +PLIST_DIRS= lib/${PORTNAME} -post-extract: - @${RM} -f ${WRKSRC}/documentation/.[D_]* - -post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/work/avida ${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 +BIN_FILES= avida avida-viewer +DATA_FILES= analyze.cfg avida.cfg default-gx.org \ + default-heads-sex.org default-heads.org default-smt.org \ + default-transsmt.org environment.cfg events.cfg \ + experimental.org instset-experimental.cfg instset-gx.cfg \ + instset-heads-sex.cfg instset-heads.cfg instset-smt.cfg \ + instset-transsmt.cfg .include <bsd.port.pre.mk> @@ -40,4 +45,35 @@ post-install: BROKEN= Does not compile: invokes i386 asm .endif +post-patch: + @${FIND} ${WRKSRC} -name "CMakeLists.txt" | ${XARGS} \ + ${REINPLACE_CMD} -e \ + 's|-O[0-9]|| ; \ + s| pthread| ${PTHREAD_LIBS}|' + @${REINPLACE_CMD} -e '/long long int/s|std::abs|llabs|' \ + ${WRKSRC}/avida-core/source/main/cPopulationInterface.cc + +pre-build: +.for exec in ${BIN_FILES} + @(cd ${WRKSRC} && ${ECHO_CMD} \ + 'cd ${PREFIX}/lib/${PORTNAME} && ./${exec} $$@' > ${exec}.sh) +.endfor + +do-install: + @${MKDIR} ${PREFIX}/lib/${PORTNAME} +.for exec in ${BIN_FILES} + (cd ${WRKSRC} \ + && ${INSTALL_SCRIPT} ${exec}.sh ${PREFIX}/bin/${exec}) + (cd ${BUILD_WRKSRC}/bin \ + && ${INSTALL_PROGRAM} ${exec} ${PREFIX}/lib/${PORTNAME}) +.endfor + (cd ${WRKSRC}/avida-core/support/config \ + && ${INSTALL_DATA} *.cfg ${PREFIX}/lib/${PORTNAME} \ + && ${INSTALL_DATA} *.org ${PREFIX}/lib/${PORTNAME}) +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + @(cd ${WRKSRC}/avida-core/documentation \ + && ${COPYTREE_SHARE} . ${DOCSDIR}) +.endif + .include <bsd.port.post.mk> diff --git a/biology/avida/distinfo b/biology/avida/distinfo index 93b47c4c7165..2cf08de36f21 100644 --- a/biology/avida/distinfo +++ b/biology/avida/distinfo @@ -1,2 +1,2 @@ -SHA256 (avida-2.10.0-src.tar.gz) = 351d87dad2a35eb005b466dc0e7731195b4a824edbbde7818ef633b5803319db -SIZE (avida-2.10.0-src.tar.gz) = 5657331 +SHA256 (avida-2.12.3-src.tar.gz) = 6be2b439048d31f11a2303e1604c0e5c47468352a04361fb5bf8c0332d7ad3bd +SIZE (avida-2.12.3-src.tar.gz) = 7862722 diff --git a/biology/avida/pkg-plist b/biology/avida/pkg-plist deleted file mode 100644 index 3fbded9633f8..000000000000 --- a/biology/avida/pkg-plist +++ /dev/null @@ -1,12 +0,0 @@ -bin/avida -%%DATADIR%%/analyze.cfg -%%DATADIR%%/avida.cfg -%%DATADIR%%/default-heads-sex.org -%%DATADIR%%/default-heads.org -%%DATADIR%%/default-transsmt.org -%%DATADIR%%/environment.cfg -%%DATADIR%%/events.cfg -%%DATADIR%%/instset-heads-sex.cfg -%%DATADIR%%/instset-heads.cfg -%%DATADIR%%/instset-transsmt.cfg -@dirrm %%DATADIR%% |