Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 09:49:05 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462483 - head/lang/opencoarrays
Message-ID:  <201802210949.w1L9n5lT054400@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Wed Feb 21 09:49:05 2018
New Revision: 462483
URL: https://svnweb.freebsd.org/changeset/ports/462483

Log:
  Fix pkg-plist.  The library version depends on the GCC version.
  
  Reported by:	jhale

Modified:
  head/lang/opencoarrays/Makefile
  head/lang/opencoarrays/pkg-plist

Modified: head/lang/opencoarrays/Makefile
==============================================================================
--- head/lang/opencoarrays/Makefile	Wed Feb 21 09:16:46 2018	(r462482)
+++ head/lang/opencoarrays/Makefile	Wed Feb 21 09:49:05 2018	(r462483)
@@ -42,8 +42,14 @@ OPENMPI2_CONFIGURE_ENV=	MPI_HOME=${LOCALBASE}/mpi/open
 
 .include <bsd.port.options.mk>
 
-.if ${GCC_DEFAULT:R} < 5
-IGNORE=		requires GCC 5 or higher.  Add DEFAULT_VERSIONS+=gcc=5 to /etc/make.conf
+.if ${GCC_DEFAULT} >= 7
+PLIST_SUB+=	SOVERSION=2
+.elif ${GCC_DEFAULT} == 6
+PLIST_SUB+=	SOVERSION=1
+.elif ${GCC_DEFAULT} == 5
+PLIST_SUB+=	SOVERSION=0
+.else
+IGNORE=		requires GCC 5 or higher
 .endif
 
 post-patch:

Modified: head/lang/opencoarrays/pkg-plist
==============================================================================
--- head/lang/opencoarrays/pkg-plist	Wed Feb 21 09:16:46 2018	(r462482)
+++ head/lang/opencoarrays/pkg-plist	Wed Feb 21 09:49:05 2018	(r462483)
@@ -10,6 +10,6 @@ lib/cmake/opencoarrays/OpenCoarraysTargets-%%CMAKE_BUI
 lib/cmake/opencoarrays/OpenCoarraysTargets.cmake
 lib/libcaf_mpi.a
 lib/libcaf_mpi.so
-lib/libcaf_mpi.so.2
+lib/libcaf_mpi.so.%%SOVERSION%%
 man/man1/caf.1.gz
 man/man1/cafrun.1.gz



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