Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 12:08:29 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341721 - head/biology/migrate
Message-ID:  <201401291208.s0TC8T2A028828@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jan 29 12:08:29 2014
New Revision: 341721
URL: http://svnweb.freebsd.org/changeset/ports/341721
QAT: https://qat.redports.org/buildarchive/r341721/

Log:
  - Stagify; cleanup Makefile and reorder the knobs a bit
  - Drop the case for long unsupported alpha architecture

Modified:
  head/biology/migrate/Makefile

Modified: head/biology/migrate/Makefile
==============================================================================
--- head/biology/migrate/Makefile	Wed Jan 29 12:08:15 2014	(r341720)
+++ head/biology/migrate/Makefile	Wed Jan 29 12:08:29 2014	(r341721)
@@ -10,24 +10,19 @@ 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
+MAKE_ARGS=	PRETTYCFLAGS="${CFLAGS} -DNOJPEG -DNOZLIB -DNOPNG -Iharu \
+		-DPRETTY -lstdc++"
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
 
-NOT_FOR_ARCHS=	alpha
-ONLY_FOR_ARCHS_REASON=	Does not compile
+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)
@@ -45,20 +40,18 @@ post-patch:
 	@${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
+	${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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401291208.s0TC8T2A028828>