mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
25c396da36
PR: 197039 Submitted by: antont@inbox.lv
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# Created by: Johann Visagie <wjv@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= migrate
|
|
PORTVERSION= 3.6.6
|
|
CATEGORIES= biology
|
|
MASTER_SITES= http://popgen.sc.fsu.edu/currentversions/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Program to estimate population sizes and migration rates
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= ac_cv_prog_GMAKE="${MAKE}"
|
|
MAKE_ARGS= PRETTYCFLAGS="${CFLAGS} -DNOJPEG -DNOZLIB -DNOPNG -Iharu \
|
|
-DPRETTY -lstdc++"
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
PLIST_SUB+= PORTNAME=${PORTNAME}
|
|
PORTDOCS= HISTORY README README_PARALLEL_GENERAL ${PORTNAME}.html
|
|
PORTEXAMPLES= *
|
|
|
|
# XXX should be converted to OptionsNG
|
|
.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
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|="-O "|="$$CFLAGS"|g ; \
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '/PRETTY$$/d' ${WRKSRC}/definitions.h
|
|
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/haru/makefile.gcc
|
|
|
|
do-install:
|
|
${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}
|
|
|
|
.include <bsd.port.mk>
|