# New ports collection makefile for: migrate # Date created: 6 August 2001 # Whom: Johann Visagie # # $FreeBSD$ # PORTNAME= migrate PORTVERSION= 3.1.6 CATEGORIES= biology MASTER_SITES= http://people.sc.fsu.edu/~beerli/popgen/currentversion/ \ http://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= wen@FreeBSD.org COMMENT= A 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" MAN1= ${PORTNAME}.1 MLINKS= ${PORTNAME}.1 ${PORTNAME}-n.1 PORTDOCS= * PORTEXAMPLES= * PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-n .include 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 !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for i in HISTORY HOWTO-PARALLEL README ${PORTNAME}.html ${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR} .endfor @${MKDIR} ${DOCSDIR}/graphics ${INSTALL_DATA} ${WRKSRC}/../graphics/* ${DOCSDIR}/graphics .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/../example/[A-Za-z]* ${EXAMPLESDIR} .endif .include