biology/ngs-sdk: Restore static libs installed with symlinks as shared libs are usually installed

Symlinks like this libxx.a->libxx.a.N.N.N first looked broken but it turned out that this is intentional.
This commit is contained in:
Yuri Victorovich 2021-04-12 10:45:17 -07:00
parent 08a8314c88
commit fc2fe6e33a
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= ngs
DISTVERSION= 2.11.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= biology
PKGNAMESUFFIX= -sdk
@ -36,8 +36,8 @@ do-install: # install target from the project breaks: https://github.com/ncbi/ng
${RM} -r ${STAGEDIR}${PREFIX}/include/ngs/win
# install libraries
cd ${WRKSRC}/build/ngs-sdk/FreeBSD/clang/amd64/rel/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib
# remove static libs built instead of shared libs, see https://github.com/ncbi/ngs/issues/33
cd ${STAGEDIR}${PREFIX}/lib && ${RM} libngs-c++.a* libngs-adapt-c++.a*
# The above command installs broken-looking static libs with symlinks.
# This is intentional, see comments https://github.com/ncbi/ncbi-vdb/issues/36#issuecomment-817990790 This may change in future versions.
# strip
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libngs-sdk.so.2.11.0

View file

@ -88,7 +88,13 @@ include/ngs/unix/fat86/atomic32.h
include/ngs/unix/i386/atomic32.h
include/ngs/unix/x86_64/atomic32.h
lib/libngs-adapt-c++-static.a
lib/libngs-adapt-c++.a
lib/libngs-adapt-c++.a.2
lib/libngs-adapt-c++.a.2.11.0
lib/libngs-c++-static.a
lib/libngs-c++.a
lib/libngs-c++.a.2
lib/libngs-c++.a.2.11.0
lib/libngs-sdk.so
lib/libngs-sdk.so.2
lib/libngs-sdk.so.2.11.0