svn commit: r402509 - head/math/vtk6
Stephen Montgomery-Smith
stephen at FreeBSD.org
Sat Nov 28 05:30:20 UTC 2015
Author: stephen
Date: Sat Nov 28 05:30:18 2015
New Revision: 402509
URL: https://svnweb.freebsd.org/changeset/ports/402509
Log:
- Add name mangling so that it will build when science/netcdf is installed.
- Bump portrevision.
Modified:
head/math/vtk6/Makefile
head/math/vtk6/pkg-plist
Modified: head/math/vtk6/Makefile
==============================================================================
--- head/math/vtk6/Makefile Sat Nov 28 04:24:16 2015 (r402508)
+++ head/math/vtk6/Makefile Sat Nov 28 05:30:18 2015 (r402509)
@@ -3,6 +3,7 @@
PORTNAME= vtk
PORTVERSION= 6.2.0
+PORTREVISION= 1
CATEGORIES= math graphics
MASTER_SITES= http://www.vtk.org/files/release/${VTK_SHORT_VER}/
PKGNAMESUFFIX= 6
@@ -81,6 +82,16 @@ CMAKE_ARGS+= -DVTK_INSTALL_LIBRARY_DIR=l
SHARED_CMAKE_ON= -DBUILD_SHARED_LIBS:BOOL=ON
SHARED_CMAKE_OFF= -DBUILD_SHARED_LIBS:BOOL=OFF
+# Mangling so that port will build when science/netcdf is installed.
+post-patch:
+ ${MV} ${WRKSRC}/ThirdParty/netcdf/vtknetcdf/include/netcdf.h \
+ ${WRKSRC}/ThirdParty/netcdf/vtknetcdf/include/xxxnetcdf.h
+ ${FIND} ${WRKSRC}/ThirdParty/netcdf -type f | ${XARGS} ${REINPLACE_CMD} \
+ -E 's/[[:<:]]netcdf\.h[[:>:]]/xxxnetcdf.h/'
+# ${FIND} ${WRKSRC}/ThirdParty/netcdf -type f | ${XARGS} ${REINPLACE_CMD} \
+# -E 's/[[:<:]]libnetcdf[[:>:]]/libxxxnetcdf/'
+# ${FIND} ${WRKSRC}/ThirdParty/netcdf -type f | ${XARGS} ${REINPLACE_CMD} \
+# -E 's/[[:<:]]-lnetcdf[[:>:]]/-lxxxnetcdf/'
.include <bsd.port.options.mk>
Modified: head/math/vtk6/pkg-plist
==============================================================================
--- head/math/vtk6/pkg-plist Sat Nov 28 04:24:16 2015 (r402508)
+++ head/math/vtk6/pkg-plist Sat Nov 28 05:30:18 2015 (r402509)
@@ -4306,7 +4306,7 @@ include/vtk-%%VER2%%/vtkmetaio/metaTypes
include/vtk-%%VER2%%/vtkmetaio/metaUtils.h
include/vtk-%%VER2%%/vtkmetaio/metaVesselTube.h
include/vtk-%%VER2%%/vtknetcdf/include/ncvalues.h
-include/vtk-%%VER2%%/vtknetcdf/include/netcdf.h
+include/vtk-%%VER2%%/vtknetcdf/include/xxxnetcdf.h
include/vtk-%%VER2%%/vtknetcdf/include/netcdf.hh
include/vtk-%%VER2%%/vtknetcdf/include/netcdfcpp.h
include/vtk-%%VER2%%/vtknetcdf/include/vtk_netcdf_config.h
More information about the svn-ports-all
mailing list