diff options
author | Markus Dittrich <markusle@gentoo.org> | 2006-11-21 02:18:09 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2006-11-21 02:18:09 +0000 |
commit | 4bf4d913bff6eaff5ddf1c9aa6f0d32fcabd446c (patch) | |
tree | 67df72e870b8922b7168ec4e4c09d17a8cec903b /sci-visualization | |
parent | copy use mask from default-linux profile (diff) | |
download | gentoo-2-4bf4d913bff6eaff5ddf1c9aa6f0d32fcabd446c.tar.gz gentoo-2-4bf4d913bff6eaff5ddf1c9aa6f0d32fcabd446c.tar.bz2 gentoo-2-4bf4d913bff6eaff5ddf1c9aa6f0d32fcabd446c.zip |
Added ffmpeg and threads USE flags. Also, added paraview libdir to LDFLAGS.
(Portage version: 2.1.2_rc1-r7)
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/paraview/ChangeLog | 6 | ||||
-rw-r--r-- | sci-visualization/paraview/paraview-2.4.4.ebuild | 25 |
2 files changed, 27 insertions, 4 deletions
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog index af22b5602f39..29026deef672 100644 --- a/sci-visualization/paraview/ChangeLog +++ b/sci-visualization/paraview/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-visualization/paraview # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.1 2006/10/18 17:45:29 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.2 2006/11/21 02:18:09 markusle Exp $ + + 20 Nov 2006; Markus Dittrich <markusle@gentoo.org> paraview-2.4.4.ebuild: + Added ffmpeg and threads USE flags. Also, added paraview libdir + to LDPATH. *paraview-2.4.4 (18 Oct 2006) diff --git a/sci-visualization/paraview/paraview-2.4.4.ebuild b/sci-visualization/paraview/paraview-2.4.4.ebuild index 69ddc7d6bc19..2d18f24935a7 100644 --- a/sci-visualization/paraview/paraview-2.4.4.ebuild +++ b/sci-visualization/paraview/paraview-2.4.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-2.4.4.ebuild,v 1.1 2006/10/18 17:45:29 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-2.4.4.ebuild,v 1.2 2006/11/21 02:18:09 markusle Exp $ inherit distutils eutils flag-o-matic toolchain-funcs versionator python @@ -11,11 +11,12 @@ SRC_URI="http://www.${PN}.org/files/v2.4/${P}.tar.gz" LICENSE="BSD" KEYWORDS="~x86" SLOT="0" -IUSE="mpi python hdf5 doc examples" +IUSE="mpi python hdf5 doc examples ffmpeg threads" RDEPEND="hdf5? ( sci-libs/hdf5 ) doc? ( app-doc/doxygen ) mpi? ( sys-cluster/mpich ) python? ( >=dev-lang/python-2.0 ) + ffmpeg? ( media-video/ffmpeg ) media-libs/libpng media-libs/jpeg media-libs/tiff @@ -30,7 +31,7 @@ RDEPEND="hdf5? ( sci-libs/hdf5 ) DEPEND="${RDEPEND} >=dev-util/cmake-2.4.3" - +PVLIBDIR="$(get_libdir)/${PN}-$(get_version_component_range 1-2)" BUILDDIR="${WORKDIR}/build" src_unpack() { @@ -44,6 +45,8 @@ src_unpack() { src_compile() { cd "${BUILDDIR}" local CMAKE_VARIABLES="" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPV_INSTALL_LIB_DIR:PATH=/${PVLIBDIR}" + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_SKIP_RPATH:BOOL=YES" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_INSTALL_PREFIX:PATH=/usr" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_SHARED_LIBS:BOOL=ON" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON" @@ -68,6 +71,12 @@ src_compile() { CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPYTHON_LIBRARY:PATH=/usr/$(get_libdir)/libpython${PYVER}.so" fi + if use ffmpeg; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF" + fi + use doc && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_DOCUMENTATION:BOOL=ON" if use examples; then @@ -76,6 +85,12 @@ src_compile() { CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=OFF" fi + if use threads; then + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=ON" + else + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=OFF" + fi + cmake ${CMAKE_VARIABLES} ${S} \ || die "cmake configuration failed" @@ -86,4 +101,8 @@ src_compile() { src_install() { cd ${BUILDDIR} make DESTDIR=${D} install || die "make install failed" + + # set up the environment + echo "LDPATH=/usr/${PVLIBDIR}" >> ${T}/40${PN} + doenvd ${T}/40${PN} } |