freebsd-ports/biology/migrate/Makefile
Alexey Dokuchaev d526bc887e - Stagify; cleanup Makefile and reorder the knobs a bit
- Drop the case for long unsupported alpha architecture
2014-01-29 12:08:29 +00:00

57 lines
1.8 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
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_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= *
# 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
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>