head	1.35;
access;
symbols
	RELEASE_8_3_0:1.30
	RELEASE_9_0_0:1.30
	RELEASE_7_4_0:1.29
	RELEASE_8_2_0:1.29
	RELEASE_6_EOL:1.29
	RELEASE_8_1_0:1.27
	RELEASE_7_3_0:1.26
	RELEASE_8_0_0:1.26
	RELEASE_7_2_0:1.25
	RELEASE_7_1_0:1.23
	RELEASE_6_4_0:1.23
	RELEASE_5_EOL:1.22
	RELEASE_7_0_0:1.22
	RELEASE_6_3_0:1.22
	PRE_XORG_7:1.22
	RELEASE_4_EOL:1.21
	RELEASE_6_2_0:1.21
	RELEASE_6_1_0:1.18
	RELEASE_5_5_0:1.18
	RELEASE_6_0_0:1.18
	RELEASE_5_4_0:1.16
	RELEASE_4_11_0:1.16
	RELEASE_5_3_0:1.16
	RELEASE_4_10_0:1.9
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.6
	RELEASE_5_1_0:1.5
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1;
locks; strict;
comment	@# @;


1.35
date	2013.03.22.23.30.03;	author svnexp;	state Exp;
branches;
next	1.34;

1.34
date	2012.11.17.05.54.51;	author svnexp;	state Exp;
branches;
next	1.33;

1.33
date	2012.10.30.17.53.39;	author pawel;	state Exp;
branches;
next	1.32;

1.32
date	2012.06.17.20.04.32;	author sylvio;	state Exp;
branches;
next	1.31;

1.31
date	2012.06.03.12.14.37;	author cs;	state Exp;
branches;
next	1.30;

1.30
date	2011.09.15.12.33.21;	author cs;	state Exp;
branches;
next	1.29;

1.29
date	2010.09.17.09.17.05;	author linimon;	state Exp;
branches;
next	1.28;

1.28
date	2010.08.21.00.28.48;	author sahil;	state Exp;
branches;
next	1.27;

1.27
date	2010.04.01.05.16.16;	author linimon;	state Exp;
branches;
next	1.26;

1.26
date	2009.08.22.00.15.01;	author amdmi3;	state Exp;
branches;
next	1.25;

1.25
date	2009.03.24.19.12.57;	author makc;	state Exp;
branches;
next	1.24;

1.24
date	2008.10.23.14.13.37;	author amdmi3;	state Exp;
branches;
next	1.23;

1.23
date	2008.09.03.02.57.44;	author linimon;	state Exp;
branches;
next	1.22;

1.22
date	2007.05.02.07.13.53;	author edwin;	state Exp;
branches;
next	1.21;

1.21
date	2006.08.10.23.02.49;	author edwin;	state Exp;
branches;
next	1.20;

1.20
date	2006.07.08.03.36.36;	author rafan;	state Exp;
branches;
next	1.19;

1.19
date	2006.05.03.23.26.32;	author edwin;	state Exp;
branches;
next	1.18;

1.18
date	2005.04.12.03.24.56;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2005.04.11.08.01.30;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	2004.09.23.07.10.32;	author danfe;	state Exp;
branches;
next	1.15;

1.15
date	2004.09.17.22.47.50;	author kris;	state Exp;
branches;
next	1.14;

1.14
date	2004.05.21.13.24.56;	author thierry;	state Exp;
branches;
next	1.13;

1.13
date	2004.05.21.05.29.38;	author kris;	state Exp;
branches;
next	1.12;

1.12
date	2004.05.11.05.40.32;	author thierry;	state Exp;
branches;
next	1.11;

1.11
date	2004.05.10.19.26.42;	author thierry;	state Exp;
branches;
next	1.10;

1.10
date	2004.05.09.11.04.04;	author markus;	state Exp;
branches;
next	1.9;

1.9
date	2004.04.10.17.26.29;	author trevor;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.07.00.18.27;	author linimon;	state Exp;
branches;
next	1.7;

1.7
date	2004.02.04.05.18.49;	author marcus;	state Exp;
branches;
next	1.6;

1.6
date	2003.06.04.22.43.21;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2003.05.18.09.28.02;	author kris;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.21.11.01.31;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2002.11.03.23.40.02;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.19.02.45.38;	author kris;	state Exp;
branches;
next	1.1;

1.1
date	2002.04.20.15.17.45;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.35
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Jeremy <karlj000@@unbc.ca>
# $FreeBSD: head/biology/avida/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	avida
PORTVERSION=	2.12.4
DISTVERSIONSUFFIX=	-src
CATEGORIES=	biology
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}

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

LICENSE=	GPLv3

OPTIONS_DEFINE=	DOCS

USE_NCURSES=	yes
USES=		cmake:outsource
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}

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>

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
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>
@


1.34
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/biology/avida/Makefile 306688 2012-10-30 17:53:39Z pawel $
d18 1
a18 2
USE_CMAKE=	yes
CMAKE_OUTSOURCE=yes
@


1.33
log
@SVN rev 306688 on 2012-10-30 17:53:39Z by pawel

Update to version 2.12.4

PR:		ports/172218
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.32
log
@- Update to version 2.12.3

PR:		ports/168993
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
@
text
@d1 1
a1 4
# New ports collection makefile for:	avida
# Date created:		17 April 2002
# Whom:			Jeremy <karlj000@@unbc.ca>
#
a2 1
#
d5 1
a5 1
PORTVERSION=	2.12.3
a16 2
NO_WRKSUBDIR=	yes

@


1.31
log
@Set maintainership back to ports@@
@
text
@d9 2
a10 1
PORTVERSION=	2.10.0
a12 1
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
d15 1
a15 1
COMMENT=	Avida is an auto-adaptive genetic system designed for ALife research
d17 1
a17 1
LICENSE=	GPLv2
d19 5
d25 1
a25 1
USE_GCC=	4.2+
d29 12
a40 12

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
d48 31
@


1.30
log
@Change maintainer address to my FreeBSD address

Approved by:	wen@@ (mentor)
@
text
@d14 1
a14 1
MAINTAINER=	cs@@FreeBSD.org
@


1.29
log
@Also broken on sparc64 (and, by implication, ia64).

Hat:		portmgr
@
text
@d14 1
a14 1
MAINTAINER=	c-s@@c-s.li
@


1.28
log
@- Update to 2.10.0
- Add LICENSE
- Mark MAKE_JOBS_SAFE
- Eliminate unnecessary patch
- Note new homepage in pkg-descr
- Pass maintainership to submitter

PR:		ports/149827
Submitted by:	C-S <c-s@@c-s.li>
@
text
@d39 2
a40 2
.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc: invokes i386 asm
@


1.27
log
@Mark various ports as broken or ignore on powerpc.

While here, remove remnants of alpha.
@
text
@d9 1
a9 2
PORTVERSION=	2.8.1
PORTREVISION=	1
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
d17 2
d21 1
a21 2

WRKSRC=		${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
a29 1
	${INSTALL_PROGRAM} ${WRKSRC}/work/avida-viewer ${PREFIX}/bin
@


1.26
log
@- Switch SourceForge ports to the new File Release System: categories starting with B,C
@
text
@d38 7
a44 1
.include <bsd.port.mk>
@


1.25
log
@bump PORTREVISION after cmake update
@
text
@d12 1
a12 1
MASTER_SITES=	SF
@


1.24
log
@- Update to 2.8.1

PR:		128057
Submitted by:	Christian Sturm <athaba at inode dot at>
@
text
@d10 1
@


1.23
log
@Reset sf@@slappy.org due to maintainer-timeouts and no response to email.

Hat:	portmgr
@
text
@d9 1
a9 1
PORTVERSION=	2.4.3
d11 2
a12 3
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}-src-${PORTVERSION}
d17 2
a18 1
BUILD_DEPENDS=	cmake:${PORTSDIR}/devel/cmake
d20 6
a25 20
CMAKE_ARGS=	-DPROJECT_BINARY_DIR=${WRKSRC}/build/work \
		-DAVD_CONSISTENCY_TEST_PRIMITIVE:BOOL=OFF \
		-DAVD_GUI_NCURSES:BOOL=ON \
		-DAVD_PRIMITIVE:BOOL=ON \
		-DAVD_UNIT_TESTS:BOOL=OFF\
		-DCMAKE_BUILD_TYPE:STRING=Release

WRKSRC=		${WRKDIR}/${PORTNAME}

do-build:
	@@(cd ${BUILD_WRKSRC}; \
	${MKDIR} build build/work; \
	cd build; \
	cmake ${CMAKE_ARGS} ..; \
	${MAKE})

do-install:
	@@(cd ${BUILD_WRKSRC}; \
	cd build; \
	${MAKE} install)
d28 4
a31 5
	${MKDIR} ${PREFIX}/share/${PORTNAME}
	(cd ${WRKSRC}/build/work/work; \
	${INSTALL_PROGRAM} AvidaConsole ${PREFIX}/bin; \
	${INSTALL_PROGRAM} task_event_gen ${PREFIX}/bin; \
	${INSTALL_DATA} analyze.cfg environment.cfg events.cfg genesis genesis.4stack inst_set.4stack inst_set.default organism.default ${PREFIX}/share/${PORTNAME} )
d34 1
a34 1
	(${CP} -RP ${WRKSRC}/documentation/ ${DOCSDIR})
@


1.22
log
@[patch] cleanup non-supported FreeBSD versions

PR:		ports/111724
Submitted by:	Edwin Groothuis <edwin@@mavetju.org>
Approved by:	maintainer timeout
@
text
@d15 1
a15 1
MAINTAINER=	sf@@slappy.org
@


1.21
log
@Mark as broken for i386 4.x

PR:		ports/101789
Submitted by:	Scott Flatman <sf@@slappy.org>
@
text
@a28 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		Does not compile on 4.x.
.endif

d52 1
a52 1
.include <bsd.port.post.mk>
@


1.20
log
@- Update to 2.4.3
- Pass maintainersip to submitter

PR:		99901
Submitted by:	Scott Flatman <sf slappy.org>
Approved by:	delphij (mentor, implicit)
@
text
@d29 6
d58 1
a58 1
.include <bsd.port.mk>
@


1.19
log
@Remove USE_REINPLACE from all categories starting with B
@
text
@d9 1
a9 1
PORTVERSION=	2.0b7
d13 1
d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
d18 1
a18 17
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-standard-prefix --datadir=${DATADIR} --enable-viewer
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_PERL5_BUILD=	yes

.if !defined(WITHOUT_QT)
BUILD_DEPENDS+=	qmake:${PORTSDIR}/devel/qmake
USE_QT_VER=		3
CONFIGURE_ARGS+=	--enable-qt-viewer
CONFIGURE_ENV+=	QTDIR="${LOCALBASE}"
MAKE_ENV+=	QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++"		\
		QTDIR="${X11BASE}"
PLIST_SUB=	QT=""
.else
PLIST_SUB=	QT="@@comment "
.endif
d20 20
a39 14
DIR2FIX=	source/main/functional_testsuites/default.md5sum/genesis	\
		source/main/functional_testsuites/default.tail/genesis		\
		source/main/functional_testsuites/tedious.tail/genesis		\
		source/qt-viewer/setup_genesis.cc source/support/genesis	\
		source/support/genesis.4stack source/main/config.cc source/defs.hh

pre-configure:
.for src in ${DIR2FIX}
	@@${REINPLACE_CMD} -e "s|../work/|${DATADIR}/|" ${WRKSRC}/${src}
.endfor
.if defined(NOPORTDOCS)
	@@${REINPLACE_CMD} -e "s|SUBDIRS = source doc|SUBDIRS = source|"		\
		${WRKSRC}/Makefile.in
.endif
a40 1
.if !defined(WITHOUT_QT)
d42 8
a49 1
	${INSTALL_PROGRAM} ${WRKSRC}/work/qt-viewer ${PREFIX}/bin
@


1.18
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@a21 1
USE_REINPLACE=	yes
@


1.17
log
@Assist getting more ports working on AMD64 by obeying the
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
@
text
@d20 1
a20 1
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
@


1.16
log
@The build should be fixed now, so remove BROKEN mark.

Approved by:	portmgr (marcus), fjoe (mentor, implicit)
@
text
@d20 1
a20 1
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.15
log
@BROKEN on 5.x: Does not compile

Approved by:    portmgr (self)
@
text
@a41 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=		"Does not compile on FreeBSD >= 5.x"
.endif

d56 1
a56 1
.include <bsd.port.post.mk>
@


1.14
log
@Add forgotten patches...
@
text
@d42 6
d62 1
a62 1
.include <bsd.port.mk>
@


1.13
log
@BROKEN: Broken pkg-plist
@
text
@a50 2
BROKEN=		Broken pkg-plist

@


1.12
log
@Add a missing BUILD_DEPENDS.

Reported by:	Kris.
@
text
@d51 2
@


1.11
log
@Upgrade to 2.0b7 and unbreak.
@
text
@d25 1
@


1.10
log
@Fix MASTER_SITES
@
text
@d9 1
a9 2
PORTVERSION=	1.6.0
PORTREVISION=	1
d11 2
a12 1
MASTER_SITES=	http://dllab.caltech.edu/avida/files/
a16 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.[[:alnum:]]+$//}
d19 15
a33 1
CONFIGURE_ARGS=	--enable-viewer --enable-standard-prefix --prefix=${PREFIX} --datadir=${PREFIX}/share/${PORTNAME}
d35 14
a48 1
.include <bsd.port.pre.mk>
d50 3
a52 2
.if ${OSVERSION} >= 500113
BROKEN=		"Does not compile (bad C++ code)"
d55 1
a55 20
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>
@


1.9
log
@Tidy up whitespace.
@
text
@d12 1
a12 1
MASTER_SITES=	http://dllab.caltech.edu/avida/versions/
@


1.8
log
@Maintainer reports being unable to look after this port any longer.
Thanks for your efforts in the past.
@
text
@d25 1
a25 1
BROKEN=         "Does not compile (bad C++ code)"
@


1.7
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d14 1
a14 1
MAINTAINER=	karlj000@@unbc.ca
@


1.6
log
@Move inclusion of bsd.port.pre.mk later in the file for conditional BROKEN
tag.  Early inclusion caused problems for some ports, so to be safe I'm
updating all of them.

Pointy hat to:	kris
@
text
@d10 1
@


1.5
log
@BROKEN on 5.1: bad C++
@
text
@d16 5
a25 5

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}
@


1.4
log
@De-pkg-comment.
@
text
@d16 6
d46 1
a46 1
.include <bsd.port.mk>
@


1.3
log
@Make biology/avida building on -current again

PR:		ports/44819
Submitted by:	Oliver Lehmann <lehmann@@ans-netz.de>
Approved by:	Jeremy Karlson <karlj000@@unbc.ca>
@
text
@d14 1
@


1.2
log
@BROKEN: Does not build
@
text
@a14 2
BROKEN=		"Does not build"

@


1.1
log
@add avida 1.6.0
Avida is an auto-adaptive genetic system designed for ALife research

PR:		37268
Submitted by:	Jeremy Karlson <karlj000@@unbc.ca>
@
text
@d15 2
@

