Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2015 19:21:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386473 - head/math/blacs
Message-ID:  <201505151921.t4FJLa0G030850@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri May 15 19:21:36 2015
New Revision: 386473
URL: https://svnweb.freebsd.org/changeset/ports/386473

Log:
  - Simplify and fix library installation, correctly strip libraries
  - Mark broken on 8.x (section .tbss mismatches non-TLS reference in /usr/local/lib//libmpich.a)

Modified:
  head/math/blacs/Makefile

Modified: head/math/blacs/Makefile
==============================================================================
--- head/math/blacs/Makefile	Fri May 15 19:12:58 2015	(r386472)
+++ head/math/blacs/Makefile	Fri May 15 19:21:36 2015	(r386473)
@@ -3,7 +3,7 @@
 
 PORTNAME=	blacs
 PORTVERSION=	1.7
-PORTREVISION=	24
+PORTREVISION=	25
 CATEGORIES=	math
 MASTER_SITES=	NETLIB/blacs
 DISTNAME=	BLACS
@@ -21,6 +21,10 @@ USE_LDCONFIG=	yes
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 900000
+BROKEN=		does not build on 8.x
+.endif
+
 .if ! ${PORT_OPTIONS:MDOCS}
 DISTFILES+=	blacs_install.ps f77blacsqref.ps lawn94.ps \
 		cblacsqref.ps  mpi_prop.ps mpiblacs_issues.ps
@@ -99,13 +103,10 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/LIB/blacsF77init_MPI-FreeBSD-${DEBUG_LEVEL}.a ${STAGEDIR}${PREFIX}/lib/libblacsf77.a
 	${INSTALL_DATA} ${WRKSRC}/LIB/blacs_MPI-FreeBSD-${DEBUG_LEVEL}.a ${STAGEDIR}${PREFIX}/lib/libblacs.a
 
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacsc.so.${SVERSION}   ${STAGEDIR}${PREFIX}/lib/libblacsc.so.${SVERSION}
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacsf77.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/libblacsf77.so.${SVERSION}
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacs.so.${SVERSION}    ${STAGEDIR}${PREFIX}/lib/libblacs.so.${SVERSION}
-
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacsc.so   ${STAGEDIR}${PREFIX}/lib/libblacsc.so
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacsf77.so ${STAGEDIR}${PREFIX}/lib/libblacsf77.so
-	${INSTALL_DATA} ${WRKDIR}/tmp_shared/libblacs.so    ${STAGEDIR}${PREFIX}/lib/libblacs.so
+.for lib in libblacsc libblacsf77 libblacs
+	${INSTALL_LIB} ${WRKDIR}/tmp_shared/${lib}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/${lib}.so.${SVERSION}
+	${LN} -s ${lib}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/${lib}.so
+.endfor
 
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/BLACS/TESTING
 	( cd ${WRKSRC_SHARED}/TESTING/EXE ; \



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