2013-05-26 07:49:47 +00:00
|
|
|
# Created by: Johann Visagie <wjv@FreeBSD.org>
|
2001-08-06 13:07:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= migrate
|
2013-05-26 07:49:47 +00:00
|
|
|
PORTVERSION= 3.5.1
|
2001-08-06 13:07:46 +00:00
|
|
|
CATEGORIES= biology
|
2013-05-26 07:49:47 +00:00
|
|
|
MASTER_SITES= http://popgen.sc.fsu.edu/currentversions/
|
2001-08-06 13:07:46 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
|
2011-03-14 00:35:45 +00:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2013-05-26 07:49:47 +00:00
|
|
|
COMMENT= Program to estimate population sizes and migration rates
|
2001-08-06 13:07:46 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2009-01-14 16:00:34 +00:00
|
|
|
CONFIGURE_ENV= ac_cv_prog_GMAKE="${MAKE}"
|
2014-01-29 12:08:29 +00:00
|
|
|
MAKE_ARGS= PRETTYCFLAGS="${CFLAGS} -DNOJPEG -DNOZLIB -DNOPNG -Iharu \
|
|
|
|
-DPRETTY -lstdc++"
|
2001-08-06 13:07:46 +00:00
|
|
|
|
2014-01-29 12:08:29 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
2007-09-03 09:24:30 +00:00
|
|
|
|
2014-01-29 12:08:29 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-n \
|
|
|
|
man/man1/${PORTNAME}.1.gz man/man1/${PORTNAME}-n.1.gz
|
|
|
|
PORTDOCS= HISTORY README README_PARALLEL_GENERAL ${PORTNAME}.html
|
|
|
|
PORTEXAMPLES= *
|
2007-09-03 09:24:30 +00:00
|
|
|
|
2014-01-29 12:08:29 +00:00
|
|
|
# XXX should be converted to OptionsNG
|
2007-09-03 09:24:30 +00:00
|
|
|
.if defined(WITH_THREAD_PRETTY)
|
|
|
|
ALL_TARGET= thread-pretty
|
|
|
|
.elif defined(WITH_PRETTY)
|
|
|
|
ALL_TARGET= pretty
|
|
|
|
.elif defined(WITH_THREAD)
|
|
|
|
ALL_TARGET= thread
|
|
|
|
.else
|
|
|
|
ALL_TARGET= all
|
|
|
|
.endif
|
2004-06-30 06:55:56 +00:00
|
|
|
|
2005-02-19 06:38:25 +00:00
|
|
|
post-patch:
|
2009-01-14 16:00:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|="-O "|="$$CFLAGS"|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2010-02-02 22:42:47 +00:00
|
|
|
@${REINPLACE_CMD} -e '/PRETTY$$/d' ${WRKSRC}/definitions.h
|
|
|
|
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/haru/makefile.gcc
|
2005-02-19 06:38:25 +00:00
|
|
|
|
2004-06-30 06:55:56 +00:00
|
|
|
do-install:
|
2014-01-29 12:08:29 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-n ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${LN} -sf ${PORTNAME}-n ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
|
|
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
${LN} -sf ${PORTNAME}.1 \
|
|
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}-n.1
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/graphics
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../graphics/* ${STAGEDIR}${DOCSDIR}/graphics
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../example/[A-Za-z]* \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
2004-02-23 03:59:05 +00:00
|
|
|
|
2013-05-26 07:49:47 +00:00
|
|
|
.include <bsd.port.mk>
|