vtk-py stable port information

Info2: <<
Package: vtk-py%type_pkg[python]
Version: 5.0.0
Revision: 1002
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4
Type: python (2.3 2.4)
BuildDependsOnly: False
Source: http://www.vtk.org/files/release/5.0/vtk-%v.tar.gz
Source-MD5: 98a9cd026fcea70291af9a42a44ebba9
SourceDirectory: VTK
License: BSD
GCC: 4.0
Depends: x11, x11-shlibs, tcltk, tcltk-shlibs, expat1-shlibs, libpng3-shlibs, libtiff-shlibs, libjpeg-shlibs, python%type_pkg[python]
BuildDepends: cmake (>= 1.8.2-1), x11-dev, tcltk-dev, expat1, libpng3, libtiff, libjpeg
Conflicts: vtk (<= 4.2.5-2), vtk-py23, vtk-py24
Replaces: vtk (<=4.2.5-2), vtk-py23, vtk-py24
Recommends: vtkdata
PatchScript: <<
perl -pi.bak -e 's|/usr/local/lib|%p/lib/vtk|g' Wrapping/Python/vtk/tk/vtkLoadPythonTkWidgets.py
perl -pi.bak -e 's|/usr/local|%p|g' Wrapping/Tcl/vtkbase/vtkbase.tcl
if [ %m = "powerpc" ]; then perl -pi.bak -e 's|(\-no\-cpp\-precomp)|\-O3 \-mcpu=G3 \-mtune=G4 \-funroll\-loops \-Wno\-long\-double $1|g' CMakeLists.txt; fi
if [ %m = "i386" ]; then perl -pi.bak -e 's|(\-no\-cpp\-precomp)|\-O3 \-funroll\-loops \-Wno\-long\-double $1|g' CMakeLists.txt; fi
<<
CompileScript: <<
#!/bin/sh -ex
%p/bin/cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DVTK_INSTALL_LIB_DIR:STRING="/lib/vtk" \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-L%p/lib -install_name %p/lib/vtk/\`basename \`" \
-DCMAKE_INSTALL_PREFIX:PATH=%p \
-DVTK_USE_CARBON:BOOL=OFF \
-DVTK_USE_COCOA:BOOL=OFF \
-DVTK_USE_HYBRID:BOOL=ON \
-DVTK_USE_X:BOOL=ON \
-DCMAKE_X_LIBS:STRING="-lSM;-lICE;-lX11;-lXext" \
-DVTK_WRAP_TCL:BOOL=ON \
-DTCL_INCLUDE_PATH:PATH=%p/include \
-DTCL_LIBRARY:FILEPATH=%p/lib/libtcl.dylib \
-DTK_INCLUDE_PATH:PATH=%p/include \
-DTK_INTERNAL_PATH:PATH=%p/include/vtk/tkInternals/tk84OSX \
-DVTK_WRAP_JAVA:BOOL=ON \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DPYTHON_EXECUTABLE:FILEPATH=%p/bin/python%type_raw[python] \
-DPYTHON_INCLUDE_PATH:PATH=%p/include/python%type_raw[python] \
-DPYTHON_LIBRARY:FILEPATH=%p/lib/python%type_raw[python]/config/libpython%type_raw[python].dylib \
-DPYTHON_DEBUG_LIBRARY:FILEPATH=%p/lib/python%type_raw[python]/config/libpython%type_raw[python].dylib \
-DOPENGL_gl_LIBRARY:STRING="-L/usr/X11R6/lib -lGL" \
-DOPENGL_glu_LIBRARY:STRING="-L/usr/X11R6/lib -lGLU" \
-DOPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DEXPAT_INCLUDE_DIR:PATH=%p/include \
-DEXPAT_LIBRARY:FILEPATH=%p/lib/libexpat.dylib \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_PNG:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
-DVTK_DATA_ROOT:PATH=%p/share/VTKData \
-DVTK_USE_PARALLEL:BOOL=ON \
-DVTK_USE_PATENTED:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
.
make
<<
InstallScript: <<
#!/bin/sh -ex
make install DESTDIR=%d
pushd Wrapping/Python
%p/bin/python%type_raw[python] setup.py install --root=%d
popd
/usr/bin/install -d %i/share/doc/%n
/bin/cp -R Examples %i/share/doc/%n/
/usr/bin/find -d %i/share/doc/%n/Examples -name CVS -exec rm -rf \{\} \;
/usr/bin/install -d %i/etc/profile.d
cat >%i/etc/profile.d/vtk.sh < export TCLLIBPATH="%p/lib/vtk/vtk-5.0/ \$TCLLIBPATH"
EOF
cat >%i/etc/profile.d/vtk.csh < if ( ! \$?TCLLIBPATH ) then
setenv TCLLIBPATH "%p/lib/vtk/vtk-5.0/"
else
setenv TCLLIBPATH "%p/lib/vtk/vtk-5.0/ \$TCLLIBPATH"
endif
EOF
chmod 755 %i/etc/profile.d/vtk.*
<<
DocFiles: Copyright.txt
Description: The Visualization ToolKit
DescDetail: <<
The Visualization ToolKit (VTK) is an open source, freely available software
system for 3D computer graphics, image processing, and visualization used by
thousands of researchers and developers around the world. VTK consists of a
C++ class library, and several interpreted interface layers including
Tcl/Tk, Java, and Python.

VTK supports a wide variety of visualization algorithms including scalar,
vector, tensor, texture, and volumetric methods; and advanced modeling
techniques such as implicit modelling, polygon reduction, mesh smoothing,
cutting, contouring, and Delaunay triangulation. In addition, dozens of
imaging algorithms have been directly integrated to allow the user to mix 2D
imaging / 3D graphics algorithms and data. The design and implementation of
the library has been strongly influenced by object-oriented principles. VTK
has been installed and tested on nearly every Unix-based platform, PCs
(Windows 98/ME/NT/2000/XP), and Mac OSX Jaguar or later.
<<
DescUsage: <<
This version uses X11 and Fink's Tcl/Tk.
Examples are provided in the share/doc/vtk-py/Examples folder.
To run them, use "vtk Tutorial/Step1/Tcl/Cone.tcl", for example.
For some of them, you need the vtkdata package.
For documentation see the vtk web site.
<<
DescPackaging: <<
Has "BuildDependsOnly: false", because the header files in
%p/include/vtk are needed for the functioning of the toolkit.
<<
DescPort: <<
The dylibs are created with compat version 0.0.0, because I don't know
how to teach the cmake build system about compatibility versions.
It is bad enough already to get them a decent install_name.
Since they have no version numbers, there is no shlibs splitoff.

The vtk (>= 4.2.5-3) package installs into %p/{bin,include,lib}/vtk-4.2, so it
should be able to coexist with this version.
<<
Maintainer: Martin Costabel
Homepage: http://www.vtk.org/
<<

vtk-py _unstable_ port information

Info2: <<
Package: vtk-py%type_pkg[python]
Version: 5.0.4
Revision: 5
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 25) 10.4, (%type_pkg[python] = 25) 10.5
Type: python (2.3 2.4 2.5)
BuildDependsOnly: False
Source: http://www.vtk.org/files/release/5.0/vtk-%v.tar.gz
Source-MD5: 1e353886bbd6559633e31436d88a1f03
SourceDirectory: VTK
License: BSD
GCC: 4.0
Depends: x11, x11-shlibs, tcltk, tcltk-shlibs, expat1-shlibs, libpng3-shlibs, libtiff-shlibs, libjpeg-shlibs, python%type_pkg[python]
BuildDepends: cmake (>= 2.4.2-1), x11-dev, tcltk-dev, expat1, libpng3, libtiff, libjpeg, fink (>= 0.24.12)
# gclasspath installs a jawt_md.h straight into %p/include, thus shadowing the one in JavaVM.framework/Headers
# which is meant to be included by vtkJavaAwt.h _ thus causing a build failure.
BuildConflicts: gclasspath
Conflicts: vtk (<= 4.2.5-2), vtk-py23, vtk-py24, vtk-py25, vtk52, vtk52-carbon, vtk52-cocoa
Replaces: vtk (<=4.2.5-2), vtk-py23, vtk-py24, vtk-py25, vtk52, vtk52-carbon, vtk52-cocoa
Recommends: vtkdata
PatchFile: vtk-5.0-install.patch
PatchFile-MD5: fdf3a05035f4327ea0c12c217a85f75f
PatchScript: <<
patch -p0 < %{PatchFile}
perl -pi.bak -e 's|/usr/local/lib|%p/lib/vtk|g' Wrapping/Python/vtk/tk/vtkLoadPythonTkWidgets.py
perl -pi.bak -e 's|/usr/local|%p|g' Wrapping/Tcl/vtkbase/vtkbase.tcl
if [ %m = "powerpc" ]; then perl -pi -e 's|(\-no\-cpp\-precomp)|\-Os \-mcpu=G3 \-mtune=G4 \-funroll\-loops |g' CMakeLists.txt; fi
if [ %m = "i386" ]; then perl -pi -e 's|(\-no\-cpp\-precomp)|\-Os \-funroll\-loops |g' CMakeLists.txt; fi
<<
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
#!/bin/sh -ex
mkdir ../VTKBuild
cd ../VTKBuild
%p/bin/cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DVTK_INSTALL_LIB_DIR:STRING="/lib/vtk" \
-DCMAKE_INSTALL_PREFIX:PATH=%p \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_INSTALL_NAME_DIR:STRING=%p/lib/vtk \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-DVTK_USE_RPATH=ON \
-DVTK_USE_CARBON:BOOL=OFF \
-DVTK_USE_COCOA:BOOL=OFF \
-DVTK_USE_HYBRID:BOOL=ON \
-DVTK_USE_X:BOOL=ON \
-DCMAKE_X_LIBS:STRING="-lSM;-lICE;-lX11;-lXext" \
-DVTK_WRAP_TCL:BOOL=ON \
-DTCL_INCLUDE_PATH:PATH=%p/include \
-DTCL_LIBRARY:FILEPATH=%p/lib/libtcl.dylib \
-DTK_LIBRARY:FILEPATH=%p/lib/libtk.dylib \
-DTK_INCLUDE_PATH:PATH=%p/include \
-DVTK_WRAP_JAVA:BOOL=ON \
-DJAVA_HAVE_FRAMEWORK:BOOL=ON \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DPYTHON_EXECUTABLE:FILEPATH=%p/bin/python%type_raw[python] \
-DPYTHON_INCLUDE_PATH:PATH=%p/include/python%type_raw[python] \
-DPYTHON_LIBRARY:FILEPATH=%p/lib/python%type_raw[python]/config/libpython%type_raw[python].dylib \
-DPYTHON_DEBUG_LIBRARY:FILEPATH=%p/lib/python%type_raw[python]/config/libpython%type_raw[python].dylib \
-DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=%p --root=%d" \
-DOPENGL_gl_LIBRARY:STRING="-L/usr/X11R6/lib -lGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib" \
-DOPENGL_glu_LIBRARY:STRING="-L/usr/X11R6/lib -lGLU" \
-DOPENGL_INCLUDE_DIR:PATH="/usr/X11R6/include" \
-DOPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DEXPAT_INCLUDE_DIR:PATH=%p/include \
-DEXPAT_LIBRARY:FILEPATH=%p/lib/libexpat.dylib \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_PNG:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
-DVTK_DATA_ROOT:PATH=%p/share/VTKData \
-DVTK_USE_PARALLEL:BOOL=ON \
-DVTK_USE_PATENTED:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:BOOL=ON \
../VTK
# put Fink headers before X11
perl -pi -e 's|(\-I/usr/X11R6/include) (\-I%p/include)|\2 \1|g' `find . -name flags.make`
make
<<
InstallScript: <<
#!/bin/sh -ex
cd ../VTKBuild
make install DESTDIR=%d
/usr/bin/install -d %i/share/doc/%n
/bin/cp -R ../VTK/Examples %i/share/doc/%n/
/usr/bin/find -d %i/share/doc/%n/Examples -name CVS -exec rm -rf \{\} \;
/usr/bin/install -d %i/etc/profile.d
cat >%i/etc/profile.d/vtk.sh < export TCLLIBPATH="%p/lib/vtk/vtk-5.0/ \$TCLLIBPATH"
EOF
cat >%i/etc/profile.d/vtk.csh < if ( ! \$?TCLLIBPATH ) then
setenv TCLLIBPATH "%p/lib/vtk/vtk-5.0/"
else
setenv TCLLIBPATH "%p/lib/vtk/vtk-5.0/ \$TCLLIBPATH"
endif
EOF
chmod 755 %i/etc/profile.d/vtk.*
<<
DocFiles: Copyright.txt
Description: The Visualization ToolKit
DescDetail: <<
The Visualization ToolKit (VTK) is an open source, freely available software
system for 3D computer graphics, image processing, and visualization used by
thousands of researchers and developers around the world. VTK consists of a
C++ class library, and several interpreted interface layers including
Tcl/Tk, Java, and Python.

VTK supports a wide variety of visualization algorithms including scalar,
vector, tensor, texture, and volumetric methods; and advanced modeling
techniques such as implicit modelling, polygon reduction, mesh smoothing,
cutting, contouring, and Delaunay triangulation. In addition, dozens of
imaging algorithms have been directly integrated to allow the user to mix 2D
imaging / 3D graphics algorithms and data. The design and implementation of
the library has been strongly influenced by object-oriented principles. VTK
has been installed and tested on nearly every Unix-based platform, PCs
(Windows 98/ME/NT/2000/XP), and Mac OSX Jaguar or later.
<<
DescUsage: <<
This version uses X11 and Fink's Tcl/Tk.
Examples are provided in the share/doc/vtk-py/Examples folder.
To run them, use "vtk Tutorial/Step1/Tcl/Cone.tcl", for example.
For some of them, you need the vtkdata package.
For documentation see the vtk web site.
<<
DescPackaging: <<
Has "BuildDependsOnly: false", because the header files in
%p/include/vtk are needed for the functioning of the toolkit.
No shlibs splitoff yet.
<<
DescPort: <<
The dylibs are still created with compat version 0.0.0,
because cmake doesn't know about compatibility versions.
It is bad enough already to get them a decent install_name.

Cmake knows now about versioned file names for dylibs, so
that a future repacked version will be able to adhere to
Fink's shlibs policy.

The vtk (>= 4.2.5-3) package installs into %p/{bin,include,lib}/vtk-4.2, so it
should be able to coexist with this version.
<<
Maintainer: Martin Costabel
Homepage: http://www.vtk.org/
<<