[58668] trunk/dports/graphics/vtk5/Portfile
mnick at macports.org
mnick at macports.org
Fri Oct 2 09:37:06 PDT 2009
Revision: 58668
http://trac.macports.org/changeset/58668
Author: mnick at macports.org
Date: 2009-10-02 09:37:02 -0700 (Fri, 02 Oct 2009)
Log Message:
-----------
add python2{5|6} variants, make old python variant fall back to python25
Modified Paths:
--------------
trunk/dports/graphics/vtk5/Portfile
Modified: trunk/dports/graphics/vtk5/Portfile
===================================================================
--- trunk/dports/graphics/vtk5/Portfile 2009-10-02 15:53:55 UTC (rev 58667)
+++ trunk/dports/graphics/vtk5/Portfile 2009-10-02 16:37:02 UTC (rev 58668)
@@ -79,10 +79,12 @@
build.env-append DYLD_LIBRARY_PATH=${worksrcpath}/bin
-default_variants +python
if {![variant_isset carbon]} {
default_variants-append +x11 +tcltk
}
+if {![variant_isset python26]} {
+ default_variants-append python25
+}
variant x11 conflicts carbon description {use X11} {
depends_lib-append port:mesa port:Xft2 port:xorg-libXScrnSaver port:xorg-libXt
@@ -114,7 +116,8 @@
-DVTK_USE_CARBON:BOOL=ON
}
-variant python description {builds python wrappers} {
+variant python requires python25 description {Compatibility variant, requires +python25} {}
+variant python25 description {builds python2.5 wrappers} conflicts python26 {
depends_build-append port:python25
configure.args-delete \
-DVTK_WRAP_PYTHON:BOOL=OFF
@@ -127,14 +130,32 @@
-DVTK_INSTALL_NO_PYTHON:BOOL=ON
}
+variant python26 description {builds python2.6 wrappers} conflicts python25 {
+ depends_build-append port:python26
+ configure.args-delete \
+ -DVTK_WRAP_PYTHON:BOOL=OFF
+ configure.args-append \
+ -DPYTHON_DEBUG_LIBRARY:FILEPATH=${prefix}/lib/libpython2.6.dylib \
+ -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.6 \
+ -DPYTHON_INCLUDE_PATH:FILEPATH=${frameworks_dir}/Python.framework/Versions/2.6/include/python2.6 \
+ -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.6.dylib \
+ -DVTK_WRAP_PYTHON:BOOL=ON \
+ -DVTK_INSTALL_NO_PYTHON:BOOL=ON
+}
+
+
set vtkdest ${destroot}${prefix}/share/doc/${name}
post-destroot {
- if {[variant_isset python]} {
+ if {[variant_isset python25]} {
file mkdir ${destroot}${prefix}/lib/python2.5/site-packages
system "cd ${worksrcpath}/Wrapping/Python; ${prefix}/bin/python2.5 setup.py install --prefix=${prefix} --root=${destroot}"
}
+ if {[variant_isset python26]} {
+ system "cd ${worksrcpath}/Wrapping/Python; ${prefix}/bin/python2.6 setup.py install --prefix=${frameworks_dir}/Python.framework/Versions/2.6/ --root=${destroot}"
+ }
+
xinstall -d -m 0755 ${vtkdest}
file copy ${worksrcpath}/README.html ${vtkdest}
file copy ${worksrcpath}/Copyright.txt ${vtkdest}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091002/94c7a14c/attachment.html>
More information about the macports-changes
mailing list