diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2010-10-20 10:28:46 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2010-10-20 10:28:46 +0000 |
commit | 4543e0762aacb1f4c6534e1fd5f1827de826e8a9 (patch) | |
tree | a26d5e8d9f5d4b04ce151507b5495a3ae9aefd01 /math/vtk5 | |
parent | 781ed3edc65da367420380096bd52201bfcf902d (diff) | |
download | ports-4543e0762aacb1f4c6534e1fd5f1827de826e8a9.tar.gz ports-4543e0762aacb1f4c6534e1fd5f1827de826e8a9.zip |
- Fix the installation of versioned shared libraries
Reported by: Stas Timokhin <devel@stasyan.com>
Notes
Notes:
svn path=/head/; revision=263338
Diffstat (limited to 'math/vtk5')
-rw-r--r-- | math/vtk5/Makefile | 15 | ||||
-rw-r--r-- | math/vtk5/pkg-plist | 10 |
2 files changed, 21 insertions, 4 deletions
diff --git a/math/vtk5/Makefile b/math/vtk5/Makefile index 72aea86f3503..56c4f706b08f 100644 --- a/math/vtk5/Makefile +++ b/math/vtk5/Makefile @@ -219,17 +219,24 @@ pre-install: ${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR} .endif +LIBS_TOFIX= vtkNetCDF_cxx Cosmo VPIC +LIBDIR= ${PREFIX}/lib/vtk-${PORTVERSION:R}/ + post-install: # Ports system wants us to conform to lib.so.x format, but VTK5 # only installs lib.so.x.y and lib.so.x.y.z. .if defined(WITH_SHARED) - @for lib in ${PREFIX}/lib/vtk-${PORTVERSION:R}/libvtk*.so; do \ + @for lib in ${LIBS_TOFIX}; do \ + ${CP} ${LIBDIR}/lib$$lib.so ${LIBDIR}/lib$$lib.so.${PORTVERSION}; \ + done + @for lib in ${LIBDIR}/*.so; do \ ${RM} -f $$lib; \ - ${LN} -sf $$lib.${PORTVERSION} $$lib; \ - ${LN} -sf $$lib.${PORTVERSION} $$lib.${PORTVERSION:R:R}; \ + ${LN} -sf $$lib.${PORTVERSION} $$lib.${PORTVERSION:R}; \ + ${LN} -sf $$lib.${PORTVERSION:R} $$lib.${PORTVERSION:R:R}; \ + ${LN} -sf $$lib.${PORTVERSION:R:R} $$lib; \ done .if defined(WITH_QT) - @for lib in ${PREFIX}/lib/vtk-${PORTVERSION:R}/libQVTK*.so; do \ + @for lib in ${LIBDIR}/libQVTK*.so; do \ ${RM} -f $$lib; \ ${LN} -sf $$lib.${PORTVERSION} $$lib; \ ${LN} -sf $$lib.${PORTVERSION} $$lib.${PORTVERSION:R:R}; \ diff --git a/math/vtk5/pkg-plist b/math/vtk5/pkg-plist index f157848007de..02cb615bc818 100644 --- a/math/vtk5/pkg-plist +++ b/math/vtk5/pkg-plist @@ -2602,15 +2602,25 @@ lib/vtk-%%VER2%%/doxygen/pic.gif lib/vtk-%%VER2%%/doxygen/vtk-logo.gif lib/vtk-%%VER2%%/hints %%SHARED%%lib/vtk-%%VER2%%/libvtkNetCDF_cxx.so +%%SHARED%%lib/vtk-%%VER2%%/libvtkNetCDF_cxx.so.%%VER1%% +%%SHARED%%lib/vtk-%%VER2%%/libvtkNetCDF_cxx.so.%%VER2%% %%SHARED%%lib/vtk-%%VER2%%/libvtkNetCDF_cxx.so.%%VER3%% %%SHARED%%lib/vtk-%%VER2%%/libCosmo.so +%%SHARED%%lib/vtk-%%VER2%%/libCosmo.so.%%VER1%% +%%SHARED%%lib/vtk-%%VER2%%/libCosmo.so.%%VER2%% +%%SHARED%%lib/vtk-%%VER2%%/libCosmo.so.%%VER3%% %%SHARED%%lib/vtk-%%VER2%%/libMapReduceMPI.so %%SHARED%%lib/vtk-%%VER2%%/libMapReduceMPI.so.%%VER1%% %%SHARED%%lib/vtk-%%VER2%%/libMapReduceMPI.so.%%VER2%% +%%SHARED%%lib/vtk-%%VER2%%/libMapReduceMPI.so.%%VER3%% %%SHARED%%lib/vtk-%%VER2%%/libVPIC.so +%%SHARED%%lib/vtk-%%VER2%%/libVPIC.so.%%VER1%% +%%SHARED%%lib/vtk-%%VER2%%/libVPIC.so.%%VER2%% +%%SHARED%%lib/vtk-%%VER2%%/libVPIC.so.%%VER3%% %%SHARED%%lib/vtk-%%VER2%%/libmpistubs.so %%SHARED%%lib/vtk-%%VER2%%/libmpistubs.so.%%VER1%% %%SHARED%%lib/vtk-%%VER2%%/libmpistubs.so.%%VER2%% +%%SHARED%%lib/vtk-%%VER2%%/libmpistubs.so.%%VER3%% %%SHARED%%lib/vtk-%%VER2%%/libvtkCharts.so %%SHARED%%lib/vtk-%%VER2%%/libvtkCharts.so.%%VER1%% %%SHARED%%lib/vtk-%%VER2%%/libvtkCharts.so.%%VER2%% |