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 51 51 build.type gnu 52 52 build.dir ${workpath}/${distname}-build 53 53 54 use_parallel_build yes 55 54 56 # Using this dummy stage to inspect MacPorts variables (using 'port -d fetch vtk-devel') 55 57 #fetch { system "echo ${configure.args} " } 56 58 … … 119 121 -DVTK_REQUIRED_OBJCXX_FLAGS="-fobjc-gc" 120 122 } 121 123 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 126 platform darwin 8 { 127 } 122 128 123 129 # ----------------------------------------------------------------------------- 124 130 # VARIANTS … … 154 160 -DVTK_DATA_ROOT:PATH=${vtkDataPath} 155 161 post-destroot { 156 162 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 } 158 168 } 159 169 } 160 170 … … 166 176 sha1 1a8f8ff20b18bc7ac707846a8ba056b04c827392 \ 167 177 rmd160 c657f9ce0850eca1bb0a0d7537f0bcf631132f30 168 178 post-destroot { 169 set vtkDocPathLink ${prefix}/share/doc/${distname}170 179 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/ 172 181 # Add the doxygen documentation 173 182 system "tar -C ${destroot}/${vtkDocPath} -zxf ${distpath}/${vtkDocFile}" 174 183 # Add basic documentation … … 178 187 # Create a symlink to the $prefix path (not the destroot path); use the 179 188 # system to do this because the $prefix path doesn't exist yet and the 180 189 # 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}" 182 191 } 183 192 # A doxygen dependency would add a lot of complexity to vtk, so 184 193 # 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 189 196 } 190 197 191 198