Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42629 Details for
Bug 25335
ebuild for VTK (visualization toolkit)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
vtk-4.2.6-r5.ebuild
vtk-4.2.6-r5.ebuild (text/plain), 5.99 KB, created by
Tom Hosiawa
on 2004-10-26 07:16:55 UTC
(
hide
)
Description:
vtk-4.2.6-r5.ebuild
Filename:
MIME Type:
Creator:
Tom Hosiawa
Created:
2004-10-26 07:16:55 UTC
Size:
5.99 KB
patch
obsolete
># Copy:right 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># TODO: ># o Warning: CMake is forcing CMAKE_CXX_COMPILER to "/usr/lib/distcc/bin/g++" to ># match that imported from VTK. This is required because C++ projects must use ># the same compiler. If this message appears for more than one imported ># project, you have conflicting C++ compilers and will have to re-build one of ># those projects. ># I get that type of warning when I use FEATURES="distcc" to emerge vtk ># Mini changelog: ># o fixed symlinks in /usr/lib/python2.3/site-packages/vtk_python ># o PATH, and VTK_DATA_ROOT problems not apparrent anymore ># o java wrapping works now ># o added local use flags: example, expat, jpeg, mpi, png, tiff, zlib ># o fixed some style changes according to ebuild guide ># o FIXME: need to fix Examples/CMakeLists.txt to build other examples > >inherit flag-o-matic distutils > >DESCRIPTION="visualization toolkit" >HOMEPAGE="http://www.vtk.org" >LICENSE="VTK" > >SLOT="0" >KEYWORDS="~x86" > >IUSE="doc data example expat hybrid java jpeg parallel patented png python tcltk tiff zlib" > >RDEPEND="python? ( >=dev-lang/python-2.0 ) > tcltk? ( >=dev-lang/tcl-8.2.3 > >=dev-lang/tk-8.2.3 ) > java? ( virtual/jdk ) > jpeg? ( media-libs/jpeg ) > tiff? ( media-libs/tiff ) > png? ( media-libs/libpng ) > zlib? ( sys-libs/zlib ) > expat? ( dev-libs/expat )" >DEPEND=">=dev-util/cmake-1.8 > virtual/x11 > virtual/opengl > ${RDEPEND}" > >SHORT_PV=`echo ${PV} | sed -e "s/\(^[0-9]*\.[0-9]*\).*/\1/"` >SRC_URI="ftp://public.kitware.com/pub/vtk/vtk${SHORT_PV}/moved_to_sourceforge/VTK-${PV}.tar.gz > doc? ( ftp://public.kitware.com/pub/vtk/vtk${SHORT_PV}/moved_to_sourceforge/VTKDocHtml-${SHORT_PV}.tar.gz ) > data? ( ftp://public.kitware.com/pub/vtk/vtk${SHORT_PV}/moved_to_sourceforge/VTKData-${SHORT_PV}.tar.gz )" > >S=${WORKDIR}/VTK > > >src_compile() { > # gcc versions 3.2.x seem to have sse-related bugs that are triggered > # by VTK when compiling for pentium3/4 > if [ `get-flag -march` == "-march=pentium4" ] && has_version=sys-libs/glibc-3.2*; then > filter-mfpmath sse > filter-flags "-msse -msse2" > fi > > # build list of config variable define's to pass to cmake > CMAKE_VARIABLES="-DCMAKE_INSTALL_PREFIX:PATH=/usr" > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_SHARED_LIBS:BOOL=ON" > use parallel && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_PARALLEL:BOOL=ON" > use tcltk && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_WRAP_TCL:BOOL=ON" > use python && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_WRAP_PYTHON:BOOL=ON" > use jpeg && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_JPEG:BOOL=ON" > use png && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_PNG:BOOL=ON" > use tiff && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_TIFF:BOOL=ON" > use zlib && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON" > use expat && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON" > # java wrapping > if use java; then > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_WRAP_JAVA:BOOL=ON" > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DJAVA_AWT_LIBRARY:PATH=`java-config -O`/jre/lib/i386/libjawt.so" > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DJAVA_AWT_INCLUDE_PATH:PATH=`java-config -O`/include" > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DJAVA_INCLUDE_PATH:PATH=`java-config -O`/include" > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DJAVA_INCLUDE_PATH2:PATH=`java-config -O`/include/linux" > fi > # local use flags > use patented && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_PATENTED:BOOL=ON" > use hybrid && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_HYBRID:BOOL=ON" > use example && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=ON" > # testing requires dart > CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_TESTING:BOOL=OFF" > use data && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_DATA_ROOT:PATH=/usr/share/${PN}/data" > > cmake ${CMAKE_VARIABLES} . || die "cmake configuration failed" > emake || die "emake failed" >} > >src_install() { > make install DESTDIR=${D} || die "make install failed" > # fix config file > dosed -i -e "s:${D}:/:g" /usr/lib/${PN}/VTKConfig.cmake > > LDPATH="/usr/lib/${PN}" > > # install python modules > if use python; then > distutils_python_version > LDPATH="${LDPATH}:/usr/lib/python${PYVER}/site-packages/${PN}_python" > cd ${S}/Wrapping/Python > docinto vtk_python > distutils_src_install > > # make symlinks to vtk python modules > FILES="${D}/usr/lib/vtk/libvtk*Python*.so" > for file in ${FILES} > do > dosym ${file} /usr/lib/python${PYVER}/site-packages/${PN}_python > done > fi > > # install jar > if use java; then > dodir /usr/share/${PN} > cp ${S}/usr/bin/vtk.jar /usr/share/${PN} > chmod 644 /usr/share/${PN}/vtk.jar > fi > > > # install documentation > use doc && dohtml -r ${WORKDIR}/html/ > > # install examples > if use example; then > dodir /usr/share/${PN} > cp -a ${S}/Examples ${D}/usr/share/${PN}/examples > > # fix example's permissions > # should executable files be allow in here? > find ${D}/usr/share/${PN}/examples -type d -exec chmod 0755 {} \; > find ${D}/usr/share/${PN}/examples -type f -exec chmod 0644 {} \; > fi > > # install data > if use data; then > # VTKData uses a hyphen instead of a dot > SHORT_PV_HYPHEN=`echo ${SHORT_PV} | sed -e "s/\./-/"` > dodir /usr/share/${PN} > cp -a ${WORKDIR}/VTKData-release-${SHORT_PV_HYPHEN} ${D}/usr/share/${PN}/data > > # fix data's permissions > find ${D}/usr/share/${PN}/data -type d -exec chmod 0755 {} \; > find ${D}/usr/share/${PN}/data -type f -exec chmod 0644 {} \; > fi > > # environment > echo "LDPATH=${LDPATH}" > ${T}/40${PN} > use data && echo "VTK_DATA_ROOT=/usr/share/${PN}/data" >> ${T}/40${PN} > use tcltk && echo "TCLLIBPATH=/usr/lib/${PN}/tcl" >> ${T}/40${PN} > if use java; then > echo "CLASSPATH=/usr/share/${PN}/${PN}.jar" >> ${T}/40${PN} > echo "LD_LIBRARY_PATH=/usr/lib/${PN}" >> ${T}/40${PN} > fi > doenvd ${T}/40${PN} >} > >pkg_postinst() { > if use patented ; then > ewarn "Using patented classes in commercial application requires a licence." > ewarn "For more information read" > ewarn "http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp" > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 25335
:
15053
|
18940
|
26166
|
26170
|
26459
|
29518
|
34161
|
38216
|
38226
|
40814
|
42629
|
43536
|
43555
|
43560
|
45104
|
52215
|
52520
|
52522
|
52524
|
52525
|
52527
|
64079
|
64392