mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# Created by: Johann Visagie <wjv@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= migrate
|
|
PORTVERSION= 3.5.1
|
|
CATEGORIES= biology
|
|
MASTER_SITES= http://popgen.sc.fsu.edu/currentversions/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= Program to estimate population sizes and migration rates
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= ac_cv_prog_GMAKE="${MAKE}"
|
|
MAKE_ARGS= PRETTYCFLAGS="${CFLAGS} -DNOJPEG -DNOZLIB -DNOPNG -Iharu -DPRETTY -lstdc++"
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
MLINKS= ${PORTNAME}.1 ${PORTNAME}-n.1
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-n
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
NOT_FOR_ARCHS= alpha
|
|
ONLY_FOR_ARCHS_REASON= Does not compile
|
|
|
|
.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
|
|
|
|
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 ${PREFIX}/bin
|
|
${LN} -sf ${PORTNAME}-n ${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in HISTORY README README_PARALLEL_GENERAL ${PORTNAME}.html
|
|
${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/graphics
|
|
${INSTALL_DATA} ${WRKSRC}/../graphics/* ${DOCSDIR}/graphics
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/../example/[A-Za-z]* ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|