Ticket #20002: vtk-devel_Portfile.diff

File vtk-devel_Portfile.diff, 2.7 KB (added by jjstickel@…, 15 years ago)
  • graphics/vtk-devel/Portfile

    old new  
    5151build.type      gnu
    5252build.dir       ${workpath}/${distname}-build
    5353
     54use_parallel_build yes
     55
    5456# Using this dummy stage to inspect MacPorts variables (using 'port -d fetch vtk-devel')
    5557#fetch { system "echo ${configure.args} " }
    5658
     
    119121        -DVTK_REQUIRED_OBJCXX_FLAGS="-fobjc-gc"
    120122}
    121123
     124# nothing done here, but the darwin_8 platform needs to be initialized
     125# for use inside the post-destroot phase of the data variant
     126platform darwin 8 {
     127}
    122128
    123129# -----------------------------------------------------------------------------
    124130# VARIANTS
     
    154160        -DVTK_DATA_ROOT:PATH=${vtkDataPath}
    155161    post-destroot {
    156162        xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDataPath}
    157         system "tar --strip-components 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
     163        if {[variant_isset darwin_8]} {
     164            system "tar --strip-path 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
     165        } else {
     166            system "tar --strip-components 1 -C ${destroot}/${vtkDataPath} -zxvf ${distpath}/${vtkDataFile}"
     167        }
    158168    }
    159169}
    160170
     
    166176                            sha1 1a8f8ff20b18bc7ac707846a8ba056b04c827392 \
    167177                            rmd160 c657f9ce0850eca1bb0a0d7537f0bcf631132f30
    168178    post-destroot {
    169         set vtkDocPathLink ${prefix}/share/doc/${distname}
    170179        xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDocPath}
    171         xinstall -d -o root -g admin -m 0755 ${destroot}/${vtkDocPathLink}
     180        xinstall -d -o root -g admin -m 0755 ${destroot}/${prefix}/share/doc/
    172181        # Add the doxygen documentation
    173182        system "tar -C ${destroot}/${vtkDocPath} -zxf ${distpath}/${vtkDocFile}"
    174183        # Add basic documentation
     
    178187        # Create a symlink to the $prefix path (not the destroot path); use the
    179188        # system to do this because the $prefix path doesn't exist yet and the
    180189        # tcl ln command fails, whereas this system command will allow it.
    181         system "ln -Fhs ${vtkDocPath} ${destroot}/${vtkDocPathLink}"
     190        system "ln -s ${vtkDocPath} ${destroot}/${prefix}/share/doc/${distname}"
    182191    }
    183192    # A doxygen dependency would add a lot of complexity to vtk, so
    184193    # just use a download instead of building the docs. Otherwise:
    185     #depends_build-append \
    186         port:doxygen
    187     #configure.args-append \
    188         -DBUILD_DOCUMENTATION:BOOL=ON
     194    #depends_build-append   port:doxygen
     195    #configure.args-append  -DBUILD_DOCUMENTATION:BOOL=ON
    189196}
    190197
    191198