diff options
author | 2008-10-25 10:32:34 +0000 | |
---|---|---|
committer | 2008-10-25 10:32:34 +0000 | |
commit | a6f6fc4aaab9a98b99decfa0b8f09f5ad55c0d5d (patch) | |
tree | b1d4e6b3e5becb47285f15b797d27d13b6dd80a6 /sci-misc/salome-geom/salome-geom-3.2.6.ebuild | |
parent | sci-mathematics/mdp-2.4.ebuild : A Python data processing framework. Bumped t... (diff) | |
download | sci-a6f6fc4aaab9a98b99decfa0b8f09f5ad55c0d5d.tar.gz sci-a6f6fc4aaab9a98b99decfa0b8f09f5ad55c0d5d.tar.bz2 sci-a6f6fc4aaab9a98b99decfa0b8f09f5ad55c0d5d.zip |
Added support to VTK 5.2
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1320 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-misc/salome-geom/salome-geom-3.2.6.ebuild')
-rw-r--r-- | sci-misc/salome-geom/salome-geom-3.2.6.ebuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sci-misc/salome-geom/salome-geom-3.2.6.ebuild b/sci-misc/salome-geom/salome-geom-3.2.6.ebuild index 1c78fa6ce..34f9d4745 100644 --- a/sci-misc/salome-geom/salome-geom-3.2.6.ebuild +++ b/sci-misc/salome-geom/salome-geom-3.2.6.ebuild @@ -30,7 +30,6 @@ export OPENPBS="/usr" src_unpack() { python_version distutils_python_version - ewarn "Python 2.4 is highly recommended for Salome..." if ! built_with_use sci-libs/vtk python ; then die "You must rebuild sci-libs/vtk with python USE flag" @@ -39,6 +38,19 @@ src_unpack() { unpack ${A} cd "${MY_S}" epatch "${FILESDIR}"/${P}.patch + + # If vtk-5.O is used, include directory is named vtk-5.0 and not vtk + if has_version ">=sci-libs/vtk-5.0" && has_version "<sci-libs/vtk-5.2" ; then + einfo "vtk version 5 detected" + append-flags -I/usr/include/vtk-5.0 + fi + # If vtk-5.2 is used, include directory is named vtk-5.2 and not vtk + if has_version ">=sci-libs/vtk-5.2" ; then + einfo "vtk version 5 detected" + append-flags -I/usr/include/vtk-5.2 + epatch "${FILESDIR}"/${P}-vtk-5.2.patch + fi + } @@ -48,14 +60,6 @@ src_compile() { rm -r -f autom4te.cache ./build_configure - # If vtk-5.O is used, include directory is named vtk-5.0 and not vtk - if has_version ">=sci-libs/vtk-5.0" ; then - einfo "vtk version 5 detected" - append-flags -I/usr/include/vtk-5.0 - else - einfo "vtk version 4 or prior detected" - fi - # CXXFLAGS are slightly modified to allow the compilation of # salome-geom with OpenCascade and gcc-4.1.x if version_is_at_least "4.1" $(gcc-version) ; then |