[59035] trunk/dports/graphics/vtk-devel/Portfile

dweber at macports.org dweber at macports.org
Thu Oct 8 12:30:35 PDT 2009


Revision: 59035
          http://trac.macports.org/changeset/59035
Author:   dweber at macports.org
Date:     2009-10-08 12:30:32 -0700 (Thu, 08 Oct 2009)
Log Message:
-----------
Added generic symlinks for lib, include, and share paths to a version specific installation; updated to revision 1 (lots of new compilations for upgrades, oh well)

Revision Links:
--------------
    http://trac.macports.org/changeset/1

Modified Paths:
--------------
    trunk/dports/graphics/vtk-devel/Portfile

Modified: trunk/dports/graphics/vtk-devel/Portfile
===================================================================
--- trunk/dports/graphics/vtk-devel/Portfile	2009-10-08 19:19:10 UTC (rev 59034)
+++ trunk/dports/graphics/vtk-devel/Portfile	2009-10-08 19:30:32 UTC (rev 59035)
@@ -5,7 +5,7 @@
 
 name            vtk-devel
 version         5.4.2
-revision        0
+revision        1
 set branch      [join [lrange [split ${version} .] 0 1] .]
 
 categories      graphics math science devel
@@ -47,11 +47,13 @@
 
 # Global variables (used in variants)
 set vtkDataFile     vtkdata-${version}.tar.gz
-set vtkDataPath     ${prefix}/share/${distname}/data
 set vtkDocFile      vtkDocHtml-${version}.tar.gz
-set vtkDocPath      ${prefix}/share/${distname}/doc
-set vtkExamplePath  ${prefix}/share/${distname}/examples
-set vtkTestingPath  ${prefix}/share/${distname}/testing
+set vtkSharePath    ${prefix}/share/${distname}
+set vtkDataPath     ${vtkSharePath}/data
+set vtkDocPath      ${vtkSharePath}/doc
+set vtkExamplePath  ${vtkSharePath}/examples
+set vtkTestingPath  ${vtkSharePath}/testing
+set vtkIncPath      ${prefix}/include/${distname}
 set vtkLibPath      ${prefix}/lib/${distname}
 set vtkBuildBinPath ${build.dir}/bin
 
@@ -126,6 +128,10 @@
 
 # General post-destroot, see also variant specific sections below
 post-destroot {
+    # Create symlinks for generic lib, include, and share paths to this version
+    ln -sf ${distname} ${destroot}${prefix}/lib/vtk
+    ln -sf ${distname} ${destroot}${prefix}/include/vtk
+    ln -sf ${distname} ${destroot}${prefix}/share/vtk
     # create version specific binaries and symlinks
     if [file exists ${destroot}${prefix}/bin/vtkEncodeString] {
         move ${destroot}${prefix}/bin/vtkEncodeString ${destroot}${prefix}/bin/vtk-${branch}-EncodeString
@@ -195,7 +201,7 @@
     description "provide all database variants" {}
 
 
-# --- Build variants
+# --- Build variants, alternatives to RelWithDebInfo
 
 variant debug conflicts release description "debug build" {
     configure.args-delete \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091008/b45aaee2/attachment.html>


More information about the macports-changes mailing list