svn commit: r336907 - in branches/2014Q1/science/InsightToolkit: . files

Baptiste Daroussin bapt at FreeBSD.org
Thu Dec 19 13:53:32 UTC 2013


Author: bapt
Date: Thu Dec 19 13:53:30 2013
New Revision: 336907
URL: http://svnweb.freebsd.org/changeset/ports/336907

Log:
  MFH: r336885
  
  - Support staging
  - Fix build on 10.x

Added:
  branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray.h
     - copied unchanged from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray.h
  branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h
     - copied unchanged from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h
  branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h
     - copied unchanged from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h
  branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx
     - copied unchanged from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx
  branches/2014Q1/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h
     - copied unchanged from r336885, head/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h
Modified:
  branches/2014Q1/science/InsightToolkit/Makefile
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/science/InsightToolkit/Makefile
==============================================================================
--- branches/2014Q1/science/InsightToolkit/Makefile	Thu Dec 19 13:51:36 2013	(r336906)
+++ branches/2014Q1/science/InsightToolkit/Makefile	Thu Dec 19 13:53:30 2013	(r336907)
@@ -10,35 +10,24 @@ MASTER_SITES=	SF/itk/itk/2.8
 MAINTAINER=	amdmi3 at FreeBSD.org
 COMMENT=	Insight Toolkit
 
-OPTIONS_DEFINE=	EXAMPLES TESTING
-EXAMPLES_DESC=	Build examples (very time consuming)
-TESTING_DESC=	Build testing programs (very time consuming)
-
-USE_LDCONFIG=	${PREFIX}/lib/InsightToolkit
 NO_PACKAGE=	License does not allow redistribution of binaries
 
 USES=		cmake
 CMAKE_ARGS+=	-DBUILD_SHARED_LIBS:BOOL=ON
+USE_LDCONFIG=	${PREFIX}/lib/InsightToolkit
 
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	EXAMPLES TESTING
+EXAMPLES_DESC=	Build examples (very time consuming)
+TESTING_DESC=	Build testing programs (very time consuming)
 
-.if ! ${PORT_OPTIONS:MEXAMPLES}
-CMAKE_ARGS+=	"-DBUILD_EXAMPLES:BOOL=OFF"
-.endif
-
-.if ! ${PORT_OPTIONS:MTESTING}
-CMAKE_ARGS+=	"-DBUILD_TESTING:BOOL=OFF"
-.endif
+EXAMPLES_CMAKE_OFF=	-DBUILD_EXAMPLES:BOOL=OFF
+TESTING_CMAKE_OFF=	-DBUILD_TESTING:BOOL=OFF
 
 post-install:
-	@for lib in ${PREFIX}/lib/InsightToolkit/*.so ; do \
+	@cd ${STAGEDIR}${PREFIX}/lib/InsightToolkit && for lib in *.so; do \
 		${LN} -s $$lib.2.8.0 $$lib.2 ; \
 	done
-	@${ECHO_CMD}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_CMD}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Copied: branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray.h (from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray.h	Thu Dec 19 13:53:30 2013	(r336907, copy of r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray.h)
@@ -0,0 +1,11 @@
+--- Code/Common/itkArray.h.orig	2006-03-16 14:43:26.000000000 +0300
++++ Code/Common/itkArray.h	2013-12-18 22:35:26.050168890 +0400
+@@ -78,7 +78,7 @@
+ 
+ 
+   /** Set the all the elements of the array to the specified value */
+-  void Fill (TValueType const& v) { fill(v); }
++  void Fill (TValueType const& v) { this->fill(v); }
+ 
+   /** Copy opertor */
+   const Self & operator=( const Self &rhs );

Copied: branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h (from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h	Thu Dec 19 13:53:30 2013	(r336907, copy of r336885, head/science/InsightToolkit/files/patch-Code-Common-itkArray2D.h)
@@ -0,0 +1,11 @@
+--- Code/Common/itkArray2D.h.orig	2003-12-15 17:13:19.000000000 +0300
++++ Code/Common/itkArray2D.h	2013-12-18 22:35:49.297942916 +0400
+@@ -60,7 +60,7 @@
+   const Self & operator=( const Self & array );
+   const Self & operator=( const VnlMatrixType & matrix );
+ 
+-  void Fill (TValueType const& v) { fill(v); }
++  void Fill (TValueType const& v) { this->fill(v); }
+   
+   /** Destructively set the size to that given.  Will lose data.  */
+   void SetSize(unsigned int m, unsigned int n);

Copied: branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h (from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h	Thu Dec 19 13:53:30 2013	(r336907, copy of r336885, head/science/InsightToolkit/files/patch-Code-Common-itkKLMSegmentationBorder.h)
@@ -0,0 +1,33 @@
+--- Code/Common/itkKLMSegmentationBorder.h.orig	2006-02-07 01:01:56.000000000 +0300
++++ Code/Common/itkKLMSegmentationBorder.h	2013-12-17 17:28:09.961367612 +0400
+@@ -80,11 +80,11 @@
+ 
+   bool operator> (const KLMDynamicBorderArray<TBorder>* rhs) const
+     {
+-    if( m_Pointer->GetLambda() == rhs.m_Pointer->GetLambda() )
++    if( m_Pointer->GetLambda() == rhs->m_Pointer->GetLambda() )
+       {
+       if( m_Pointer->GetLambda() < 0 )
+         {
+-        return ( m_Pointer > rhs.m_Pointer );
++        return ( m_Pointer > rhs->m_Pointer );
+         }
+       else
+         {
+@@ -99,13 +99,13 @@
+           m_Pointer->GetRegion2()->GetRegionBorderSize() );
+ 
+         unsigned int v2 = vnl_math_max(
+-          rhs.m_Pointer->GetRegion1()->GetRegionBorderSize(),
+-          rhs.m_Pointer->GetRegion2()->GetRegionBorderSize() );
++          rhs->m_Pointer->GetRegion1()->GetRegionBorderSize(),
++          rhs->m_Pointer->GetRegion2()->GetRegionBorderSize() );
+ 
+         return ( v1 > v2 );
+         }
+       }
+-    return(m_Pointer->GetLambda() > rhs.m_Pointer->GetLambda() );
++    return(m_Pointer->GetLambda() > rhs->m_Pointer->GetLambda() );
+     }
+ 
+   TBorder *m_Pointer;

Copied: branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx (from r336885, head/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx	Thu Dec 19 13:53:30 2013	(r336907, copy of r336885, head/science/InsightToolkit/files/patch-Code-Common-itkParametricPath.txx)
@@ -0,0 +1,20 @@
+--- Code/Common/itkParametricPath.txx.orig	2004-12-04 16:22:44.000000000 +0300
++++ Code/Common/itkParametricPath.txx	2013-12-18 22:34:31.538947309 +0400
+@@ -43,7 +43,7 @@
+   ContinuousIndexType continuousIndex;
+   IndexType           index;
+   
+-  continuousIndex = Evaluate( input );
++  continuousIndex = this->Evaluate( input );
+   
+   // Round each coordinate to the nearest integer value
+   for( unsigned int i=0; i<VDimension; i++ )
+@@ -136,7 +136,7 @@
+     inputStepSize = this->EndOfInput() - input;
+     }
+   
+-  return ( Evaluate(input + inputStepSize) - Evaluate(input) ) / inputStepSize;
++  return ( this->Evaluate(input + inputStepSize) - this->Evaluate(input) ) / inputStepSize;
+ }
+ 
+ template<unsigned int VDimension>

Copied: branches/2014Q1/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h (from r336885, head/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h	Thu Dec 19 13:53:30 2013	(r336907, copy of r336885, head/science/InsightToolkit/files/patch-Utilities-vxl-core-vnl-vnl__matrix__fixed__ref.h)
@@ -0,0 +1,11 @@
+--- Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h.orig	2006-03-22 01:25:06.000000000 +0300
++++ Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h	2013-12-17 17:21:57.529194289 +0400
+@@ -653,7 +653,7 @@
+   //: Return true if *this == rhs
+   bool operator_eq (vnl_matrix_fixed_ref_const<T,num_rows,num_cols> const & rhs) const
+   {
+-    return equal( this->data_block(), rhs.data_block() );
++    return this->equal( this->data_block(), rhs.data_block() );
+   }
+ 
+   //: Equality operator


More information about the svn-ports-branches mailing list