aboutsummaryrefslogtreecommitdiff
path: root/lang/opencoarrays
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2018-02-21 09:49:05 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2018-02-21 09:49:05 +0000
commite4c25594ffeb70007021a611bcd7f1aeaed0ce5f (patch)
tree86126f234d31dde00816df9ae202009dd5863468 /lang/opencoarrays
parent332274d2d79d7867fea76d32fa01a577077fffec (diff)
downloadports-e4c25594ffeb70007021a611bcd7f1aeaed0ce5f.tar.gz
ports-e4c25594ffeb70007021a611bcd7f1aeaed0ce5f.zip
Fix pkg-plist. The library version depends on the GCC version.
Reported by: jhale
Notes
Notes: svn path=/head/; revision=462483
Diffstat (limited to 'lang/opencoarrays')
-rw-r--r--lang/opencoarrays/Makefile10
-rw-r--r--lang/opencoarrays/pkg-plist2
2 files changed, 9 insertions, 3 deletions
diff --git a/lang/opencoarrays/Makefile b/lang/opencoarrays/Makefile
index 47221a559fd3..47b2147bd2e9 100644
--- a/lang/opencoarrays/Makefile
+++ b/lang/opencoarrays/Makefile
@@ -42,8 +42,14 @@ OPENMPI2_CONFIGURE_ENV= MPI_HOME=${LOCALBASE}/mpi/openmpi2
.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:
diff --git a/lang/opencoarrays/pkg-plist b/lang/opencoarrays/pkg-plist
index e26cd3dbf594..e6e373ff6fcf 100644
--- a/lang/opencoarrays/pkg-plist
+++ b/lang/opencoarrays/pkg-plist
@@ -10,6 +10,6 @@ lib/cmake/opencoarrays/OpenCoarraysTargets-%%CMAKE_BUILD_TYPE%%.cmake
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