1 |
commit: e9abb40b98c616f2e0f81554590226d0d63864e5 |
2 |
Author: François Bissey <francois.bissey <AT> canterbury <DOT> ac <DOT> nz> |
3 |
AuthorDate: Tue Aug 28 10:37:36 2012 +0000 |
4 |
Commit: Francois Bissey <f.r.bissey <AT> massey <DOT> ac <DOT> nz> |
5 |
CommitDate: Tue Aug 28 10:37:36 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e9abb40b |
7 |
|
8 |
paraview 3.14.1 initial import to greater masses |
9 |
|
10 |
(Portage version: 2.2.0_alpha122/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-visualization/paraview/ChangeLog | 9 + |
14 |
.../files/paraview-3.14.1-ffmpeg-noinstall.patch | 27 +++ |
15 |
.../files/paraview-3.14.1-xdmf-linking.patch | 16 ++ |
16 |
.../paraview/files/vtk-5.6.0-odbc.patch | 12 + |
17 |
.../paraview/files/vtk-5.6.1-ffmpeg.patch | 42 ++++ |
18 |
.../paraview/files/vtk-5.6.1-libav-0.8.patch | 66 ++++++ |
19 |
.../paraview/files/vtk-boost1.49.patch | 27 +++ |
20 |
sci-visualization/paraview/metadata.xml | 1 + |
21 |
sci-visualization/paraview/paraview-3.14.1.ebuild | 224 ++++++++++++++++++++ |
22 |
9 files changed, 424 insertions(+), 0 deletions(-) |
23 |
|
24 |
diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog |
25 |
index 85732fb..4db958d 100644 |
26 |
--- a/sci-visualization/paraview/ChangeLog |
27 |
+++ b/sci-visualization/paraview/ChangeLog |
28 |
@@ -2,6 +2,15 @@ |
29 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
# $Header: $ |
31 |
|
32 |
+*paraview-3.14.1 (28 Aug 2012) |
33 |
+ |
34 |
+ 28 Aug 2012; François Bissey <francois.bissey@×××××××××××××.nz> |
35 |
+ +paraview-3.14.1.ebuild, +files/paraview-3.14.1-ffmpeg-noinstall.patch, |
36 |
+ +files/paraview-3.14.1-xdmf-linking.patch, +files/vtk-5.6.0-odbc.patch, |
37 |
+ +files/vtk-5.6.1-ffmpeg.patch, +files/vtk-boost1.49.patch, |
38 |
+ +files/vtk-5.6.1-libav-0.8.patch: |
39 |
+ 3.14.1 |
40 |
+ |
41 |
09 Feb 2012; François Bissey <francois.bissey@×××××××××××××.nz> |
42 |
paraview-3.12.0.ebuild, files/paraview-3.12.0-protobuf.patch: |
43 |
clean up protobuf mess, go to EAPI 3 (for python QA) |
44 |
|
45 |
diff --git a/sci-visualization/paraview/files/paraview-3.14.1-ffmpeg-noinstall.patch b/sci-visualization/paraview/files/paraview-3.14.1-ffmpeg-noinstall.patch |
46 |
new file mode 100644 |
47 |
index 0000000..9157252 |
48 |
--- /dev/null |
49 |
+++ b/sci-visualization/paraview/files/paraview-3.14.1-ffmpeg-noinstall.patch |
50 |
@@ -0,0 +1,27 @@ |
51 |
+--- CommandLineExecutables/CMakeLists.txt.orig 2012-08-28 14:29:41.472454000 +1200 |
52 |
++++ CommandLineExecutables/CMakeLists.txt 2012-08-28 14:30:07.959473756 +1200 |
53 |
+@@ -69,15 +69,15 @@ |
54 |
+ |
55 |
+ #------------------------------------------------------------------------ |
56 |
+ # Install ffmpeg, if used. |
57 |
+-IF (VTK_USE_FFMPEG_ENCODER) |
58 |
+- FOREACH(fmpglib avcodec avformat avutil) |
59 |
+- IF (FFMPEG_${fmpglib}_LIBRARY) |
60 |
+- pv_install_library(${FFMPEG_${fmpglib}_LIBRARY} |
61 |
+- ${PV_INSTALL_LIB_DIR} |
62 |
+- BrandedRuntime) |
63 |
+- ENDIF(FFMPEG_${fmpglib}_LIBRARY) |
64 |
+- ENDFOREACH(fmpglib) |
65 |
+-ENDIF (VTK_USE_FFMPEG_ENCODER) |
66 |
++#IF (VTK_USE_FFMPEG_ENCODER) |
67 |
++# FOREACH(fmpglib avcodec avformat avutil) |
68 |
++# IF (FFMPEG_${fmpglib}_LIBRARY) |
69 |
++# pv_install_library(${FFMPEG_${fmpglib}_LIBRARY} |
70 |
++# ${PV_INSTALL_LIB_DIR} |
71 |
++# BrandedRuntime) |
72 |
++# ENDIF(FFMPEG_${fmpglib}_LIBRARY) |
73 |
++# ENDFOREACH(fmpglib) |
74 |
++#ENDIF (VTK_USE_FFMPEG_ENCODER) |
75 |
+ |
76 |
+ IF (NOT PV_INSTALL_NO_RUNTIME) |
77 |
+ INSTALL(TARGETS smTestDriver |
78 |
|
79 |
diff --git a/sci-visualization/paraview/files/paraview-3.14.1-xdmf-linking.patch b/sci-visualization/paraview/files/paraview-3.14.1-xdmf-linking.patch |
80 |
new file mode 100644 |
81 |
index 0000000..1157931 |
82 |
--- /dev/null |
83 |
+++ b/sci-visualization/paraview/files/paraview-3.14.1-xdmf-linking.patch |
84 |
@@ -0,0 +1,16 @@ |
85 |
+Description: rusr/lib/paraview/libvtkXdmf.so contains an unresolvable |
86 |
+ reference to symbol XtDispatchEvent. |
87 |
+Author: Mathieu Malaterre <mathieu.malaterre@×××××.com> |
88 |
+Bug: http://paraview.org/Bug/view.php?id=12576 |
89 |
+Last-Update: 2011-09-07 |
90 |
+ |
91 |
+--- a/Utilities/Xdmf2/vtk/CMakeLists.txt |
92 |
++++ b/Utilities/Xdmf2/vtk/CMakeLists.txt |
93 |
+@@ -105,6 +105,7 @@ |
94 |
+ ELSE(VTK_USE_PARALLEL) |
95 |
+ TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering) |
96 |
+ ENDIF(VTK_USE_PARALLEL) |
97 |
++ TARGET_LINK_LIBRARIES(${X11_Xt_LIB}) |
98 |
+ |
99 |
+ IF (VTK_USE_MPI) |
100 |
+ # Needed for mpich 2 |
101 |
|
102 |
diff --git a/sci-visualization/paraview/files/vtk-5.6.0-odbc.patch b/sci-visualization/paraview/files/vtk-5.6.0-odbc.patch |
103 |
new file mode 100644 |
104 |
index 0000000..be24af1 |
105 |
--- /dev/null |
106 |
+++ b/sci-visualization/paraview/files/vtk-5.6.0-odbc.patch |
107 |
@@ -0,0 +1,12 @@ |
108 |
+diff -Naur CMake/FindODBC.cmake.orig CMake/FindODBC.cmake |
109 |
+--- CMake/FindODBC.cmake.orig 2008-10-08 13:51:36.000000000 -0400 |
110 |
++++ CMake/FindODBC.cmake 2010-01-21 22:11:26.000000000 -0500 |
111 |
+@@ -30,7 +30,7 @@ |
112 |
+ ) |
113 |
+ |
114 |
+ FIND_LIBRARY( ODBC_LIBRARY |
115 |
+- NAMES iodbc unixodbc |
116 |
++ NAMES iodbc unixodbc odbc |
117 |
+ PATHS |
118 |
+ /usr/lib |
119 |
+ /usr/lib/odbc |
120 |
|
121 |
diff --git a/sci-visualization/paraview/files/vtk-5.6.1-ffmpeg.patch b/sci-visualization/paraview/files/vtk-5.6.1-ffmpeg.patch |
122 |
new file mode 100644 |
123 |
index 0000000..34ec528 |
124 |
--- /dev/null |
125 |
+++ b/sci-visualization/paraview/files/vtk-5.6.1-ffmpeg.patch |
126 |
@@ -0,0 +1,42 @@ |
127 |
+ CMake/vtkFFMPEGTestAvAlloc.cxx | 2 +- |
128 |
+ CMake/vtkFFMPEGTestURLFClose.cxx | 2 +- |
129 |
+ IO/vtkFFMPEGWriter.cxx | 2 +- |
130 |
+ 3 files changed, 3 insertions(+), 3 deletions(-) |
131 |
+ |
132 |
+diff --git a/CMake/vtkFFMPEGTestAvAlloc.cxx b/CMake/vtkFFMPEGTestAvAlloc.cxx |
133 |
+index ad691e3..32489d5 100644 |
134 |
+--- a/CMake/vtkFFMPEGTestAvAlloc.cxx |
135 |
++++ b/CMake/vtkFFMPEGTestAvAlloc.cxx |
136 |
+@@ -1,6 +1,6 @@ |
137 |
+ extern "C" { |
138 |
+ #ifdef HAS_OLD_HEADER |
139 |
+-# include <ffmpeg/avformat.h> |
140 |
++# include <libavformat/avformat.h> |
141 |
+ #else |
142 |
+ # include <libavformat/avformat.h> |
143 |
+ #endif |
144 |
+diff --git a/CMake/vtkFFMPEGTestURLFClose.cxx b/CMake/vtkFFMPEGTestURLFClose.cxx |
145 |
+index 0bf4314..1c10a93 100644 |
146 |
+--- a/CMake/vtkFFMPEGTestURLFClose.cxx |
147 |
++++ b/CMake/vtkFFMPEGTestURLFClose.cxx |
148 |
+@@ -1,6 +1,6 @@ |
149 |
+ extern "C" { |
150 |
+ #ifdef HAS_OLD_HEADER |
151 |
+-# include <ffmpeg/avformat.h> |
152 |
++# include <libavformat/avformat.h> |
153 |
+ #else |
154 |
+ # include <libavformat/avformat.h> |
155 |
+ #endif |
156 |
+diff --git a/IO/vtkFFMPEGWriter.cxx b/IO/vtkFFMPEGWriter.cxx |
157 |
+index 52673ef..ffbb78f 100644 |
158 |
+--- a/IO/vtkFFMPEGWriter.cxx |
159 |
++++ b/IO/vtkFFMPEGWriter.cxx |
160 |
+@@ -22,7 +22,7 @@ |
161 |
+ |
162 |
+ extern "C" { |
163 |
+ #ifdef VTK_FFMPEG_HAS_OLD_HEADER |
164 |
+-# include <ffmpeg/avformat.h> |
165 |
++# include <libavformat/avformat.h> |
166 |
+ #else |
167 |
+ # include <libavformat/avformat.h> |
168 |
+ #endif |
169 |
|
170 |
diff --git a/sci-visualization/paraview/files/vtk-5.6.1-libav-0.8.patch b/sci-visualization/paraview/files/vtk-5.6.1-libav-0.8.patch |
171 |
new file mode 100644 |
172 |
index 0000000..523919d |
173 |
--- /dev/null |
174 |
+++ b/sci-visualization/paraview/files/vtk-5.6.1-libav-0.8.patch |
175 |
@@ -0,0 +1,66 @@ |
176 |
+Description: Upstream changes introduced in version 5.6.1-6.1 |
177 |
+ This patch has been created by dpkg-source during the package build. |
178 |
+ Here's the last changelog entry, hopefully it gives details on why |
179 |
+ those changes were made: |
180 |
+ . |
181 |
+ vtk (5.6.1-6.1) unstable; urgency=low |
182 |
+ . |
183 |
+ [ Michael Schutte ] |
184 |
+ * Non-maintainer upload. |
185 |
+ * Remove absolute paths to required libraries from |
186 |
+ /usr/lib/vtk-5.6/VTKLibraryDepends.cmake after building, closes: |
187 |
+ #506992. Due to the multiarch transition, the original behavior |
188 |
+ frequently causes reverse build-deps to FTBFS. This change should |
189 |
+ probably be reverted once all required libraries are multiarched. |
190 |
+ . |
191 |
+ [ Steve M. Robbins ] |
192 |
+ * Override lintian diagnostic about embedded libraries ftgl and sqlite. |
193 |
+ * IO/vtkFFMPEGWriter.cxx: Applied fix from #638246 to build with libav |
194 |
+ 0.7. |
195 |
+ . |
196 |
+ The person named in the Author field signed this changelog entry. |
197 |
+Author: Steve M. Robbins <smr@××××××.org> |
198 |
+Bug-Debian: http://bugs.debian.org/506992 |
199 |
+ |
200 |
+--- |
201 |
+The information above should follow the Patch Tagging Guidelines, please |
202 |
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here |
203 |
+are templates for supplementary fields that you might want to add: |
204 |
+ |
205 |
+Origin: <vendor|upstream|other>, <url of original patch> |
206 |
+Bug: <url in upstream bugtracker> |
207 |
+Bug-Debian: http://bugs.debian.org/<bugnumber> |
208 |
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> |
209 |
+Forwarded: <no|not-needed|url proving that it has been forwarded> |
210 |
+Reviewed-By: <name and email of someone who approved the patch> |
211 |
+Last-Update: <YYYY-MM-DD> |
212 |
+ |
213 |
+--- vtk-5.6.1.orig/IO/vtkFFMPEGWriter.cxx |
214 |
++++ vtk-5.6.1/IO/vtkFFMPEGWriter.cxx |
215 |
+@@ -123,7 +123,7 @@ int vtkFFMPEGWriterInternal::Start() |
216 |
+ } |
217 |
+ |
218 |
+ //choose avi media file format |
219 |
+- this->avOutputFormat = guess_format("avi", NULL, NULL); |
220 |
++ this->avOutputFormat = av_guess_format("avi", NULL, NULL); |
221 |
+ if (!this->avOutputFormat) |
222 |
+ { |
223 |
+ vtkGenericWarningMacro (<< "Could not open the avi media file format."); |
224 |
+@@ -150,7 +150,7 @@ int vtkFFMPEGWriterInternal::Start() |
225 |
+ //Set up the codec. |
226 |
+ AVCodecContext *c = this->avStream->codec; |
227 |
+ c->codec_id = (CodecID)this->avOutputFormat->video_codec; |
228 |
+- c->codec_type = CODEC_TYPE_VIDEO; |
229 |
++ c->codec_type = AVMEDIA_TYPE_VIDEO; |
230 |
+ c->width = this->Dim[0]; |
231 |
+ c->height = this->Dim[1]; |
232 |
+ c->pix_fmt = PIX_FMT_YUVJ420P; |
233 |
+@@ -329,7 +329,7 @@ int vtkFFMPEGWriterInternal::Write(vtkIm |
234 |
+ pkt.stream_index = this->avStream->index; |
235 |
+ if (cc->coded_frame->key_frame) //treat keyframes well |
236 |
+ { |
237 |
+- pkt.flags |= PKT_FLAG_KEY; |
238 |
++ pkt.flags |= AV_PKT_FLAG_KEY; |
239 |
+ } |
240 |
+ pkt.duration = 0; //presentation duration in time_base units or 0 if NA |
241 |
+ pkt.pos = -1; //byte position in stream or -1 if NA |
242 |
|
243 |
diff --git a/sci-visualization/paraview/files/vtk-boost1.49.patch b/sci-visualization/paraview/files/vtk-boost1.49.patch |
244 |
new file mode 100644 |
245 |
index 0000000..b04d391 |
246 |
--- /dev/null |
247 |
+++ b/sci-visualization/paraview/files/vtk-boost1.49.patch |
248 |
@@ -0,0 +1,27 @@ |
249 |
+Description: fix FTBFS with boost 1.49 |
250 |
+Author: Dominique Belhachemi <domibel@××××××.org> |
251 |
+Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/vtk.git;a=commitdiff;h=55084a11b450e53b2e8786e23dd64a6a6b846e6b |
252 |
+Last-Update: 2012-05-07 |
253 |
+ |
254 |
+--- a/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx |
255 |
++++ b/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx |
256 |
+@@ -49,11 +49,17 @@ |
257 |
+ |
258 |
+ #if BOOST_VERSION >= 104800 // Boost 1.48.x |
259 |
+ namespace { |
260 |
+- vtkIdType unwrap_edge_id(vtkEdgeType const &e) { |
261 |
++ vtkIdType unwrap_edge_id(vtkEdgeType const &e) |
262 |
++ { |
263 |
+ return e.Id; |
264 |
+ } |
265 |
+- vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e) { |
266 |
++ vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e) |
267 |
++ { |
268 |
++# if BOOST_VERSION == 104800 |
269 |
+ return e.underlying_desc.Id; |
270 |
++# else |
271 |
++ return e.underlying_descx.Id; |
272 |
++# endif |
273 |
+ } |
274 |
+ } |
275 |
+ #endif |
276 |
|
277 |
diff --git a/sci-visualization/paraview/metadata.xml b/sci-visualization/paraview/metadata.xml |
278 |
index fbac1bb..c123608 100644 |
279 |
--- a/sci-visualization/paraview/metadata.xml |
280 |
+++ b/sci-visualization/paraview/metadata.xml |
281 |
@@ -10,6 +10,7 @@ |
282 |
<flag name='plugins'>Build and install additional plugins</flag> |
283 |
<flag name='gui'>Build paraview's gui not just the server</flag> |
284 |
<flag name='cg'>Add support for nvidia's cg shaders</flag> |
285 |
+ <flag name="boost">Add support for boost</flag> |
286 |
<flag name='streaming'>Enable streaming paraview application</flag> |
287 |
<flag name='adaptive'>Enable the adaptive paraview application</flag> |
288 |
<flag name='mysql'>Build support for MySQL data item in the XDMF format</flag> |
289 |
|
290 |
diff --git a/sci-visualization/paraview/paraview-3.14.1.ebuild b/sci-visualization/paraview/paraview-3.14.1.ebuild |
291 |
new file mode 100644 |
292 |
index 0000000..3afa0f3 |
293 |
--- /dev/null |
294 |
+++ b/sci-visualization/paraview/paraview-3.14.1.ebuild |
295 |
@@ -0,0 +1,224 @@ |
296 |
+# Copyright 1999-2012 Gentoo Foundation |
297 |
+# Distributed under the terms of the GNU General Public License v2 |
298 |
+# $Header: $ |
299 |
+ |
300 |
+EAPI=3 |
301 |
+ |
302 |
+PYTHON_DEPEND="python? 2:2.6" |
303 |
+ |
304 |
+inherit cmake-utils eutils flag-o-matic multilib python qt4-r2 toolchain-funcs versionator |
305 |
+ |
306 |
+MAIN_PV=$(get_major_version) |
307 |
+MAJOR_PV=$(get_version_component_range 1-2) |
308 |
+MY_P="ParaView-${PV}-Source" |
309 |
+ |
310 |
+DESCRIPTION="ParaView is a powerful scientific data visualization application" |
311 |
+HOMEPAGE="http://www.paraview.org" |
312 |
+SRC_URI="http://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.gz" |
313 |
+RESTRICT="mirror" |
314 |
+ |
315 |
+LICENSE="paraview GPL-2" |
316 |
+KEYWORDS="~x86 ~amd64" |
317 |
+SLOT="0" |
318 |
+IUSE="boost cg -coprocessing doc examples +gui mpi mysql nvcontrol +plugins +python webkit ffmpeg theora" |
319 |
+ |
320 |
+RDEPEND=" |
321 |
+ sci-libs/hdf5[mpi=] |
322 |
+ mpi? ( virtual/mpi[cxx,romio] ) |
323 |
+ gui? ( |
324 |
+ x11-libs/qt-gui:4 |
325 |
+ x11-libs/qt-qt3support:4 |
326 |
+ x11-libs/qt-opengl:4 |
327 |
+ || ( >=x11-libs/qt-assistant-4.7.0:4[compat] <x11-libs/qt-assistant-4.7.0:4 ) |
328 |
+ x11-libs/qt-sql:4 |
329 |
+ webkit? ( x11-libs/qt-webkit:4 ) ) |
330 |
+ mysql? ( virtual/mysql ) |
331 |
+ coprocessing? ( plugins? ( |
332 |
+ x11-libs/qt-gui:4 |
333 |
+ dev-python/PyQt4 ) ) |
334 |
+ python? ( |
335 |
+ dev-python/sip |
336 |
+ gui? ( dev-python/PyQt4 ) |
337 |
+ dev-python/numpy ) |
338 |
+ ffmpeg? ( virtual/ffmpeg ) |
339 |
+ theora? ( media-libs/libtheora ) |
340 |
+ dev-libs/libxml2:2 |
341 |
+ media-libs/libpng |
342 |
+ virtual/jpeg |
343 |
+ media-libs/tiff |
344 |
+ dev-libs/expat |
345 |
+ sys-libs/zlib |
346 |
+ media-libs/freetype |
347 |
+ >=app-admin/eselect-opengl-1.0.6-r1 |
348 |
+ virtual/opengl |
349 |
+ sci-libs/netcdf |
350 |
+ x11-libs/libXmu" |
351 |
+DEPEND="${RDEPEND} |
352 |
+ doc? ( app-doc/doxygen ) |
353 |
+ boost? ( >=dev-libs/boost-1.40.0[mpi?] ) |
354 |
+ dev-libs/protobuf |
355 |
+ >=dev-util/cmake-2.6.4" |
356 |
+ |
357 |
+PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} |
358 |
+S=${WORKDIR}/${MY_P} |
359 |
+ |
360 |
+pkg_setup() { |
361 |
+ use python && python_set_active_version 2 |
362 |
+} |
363 |
+ |
364 |
+src_prepare() { |
365 |
+ # gcc header fix |
366 |
+ epatch "${FILESDIR}"/${PN}-3.8.0-xdmf-cstring.patch |
367 |
+ # disable automatic byte compiling that act directly on the live system |
368 |
+ epatch "${FILESDIR}"/${PN}-3.8.0-xdmf-bc.patch |
369 |
+ # Do not install ffmpeg libraries if used |
370 |
+ epatch "${FILESDIR}"/${PN}-3.14.1-ffmpeg-noinstall.patch |
371 |
+ # patch from debian for some underlinking in xdmf |
372 |
+ epatch "${FILESDIR}"/${PN}-3.14.1-xdmf-linking.patch |
373 |
+ |
374 |
+ # lib64 fixes |
375 |
+ sed -i "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \ |
376 |
+ Utilities/Xdmf2/libsrc/CMakeLists.txt || die |
377 |
+ sed -i "s:\/lib\/python:\/$(get_libdir)\/python:g" \ |
378 |
+ Utilities/Xdmf2/CMake/setup_install_paths.py || die |
379 |
+ |
380 |
+ # Install internal vtk binaries inside /usr/${PVLIBDIR} |
381 |
+ sed -e 's:VTK_INSTALL_BIN_DIR \"/${PV_INSTALL_BIN_DIR}\":VTK_INSTALL_BIN_DIR \"/${PV_INSTALL_LIB_DIR}\":' \ |
382 |
+ -i CMake/ParaViewCommon.cmake || die "failed to patch vtk install location" |
383 |
+ |
384 |
+ cd VTK |
385 |
+ epatch "${FILESDIR}"/vtk-5.6.0-cg-path.patch |
386 |
+ epatch "${FILESDIR}"/vtk-5.6.0-odbc.patch |
387 |
+ epatch "${FILESDIR}"/vtk-5.6.1-ffmpeg.patch |
388 |
+ epatch "${FILESDIR}"/vtk-5.6.1-libav-0.8.patch |
389 |
+ # debian patch for recent boost should work with 1.48 too |
390 |
+ epatch "${FILESDIR}"/vtk-boost1.49.patch |
391 |
+} |
392 |
+ |
393 |
+src_configure() { |
394 |
+ mycmakeargs=( |
395 |
+ -DPV_INSTALL_LIB_DIR="${PVLIBDIR}" |
396 |
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr |
397 |
+ -DPV_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" |
398 |
+ -DEXPAT_INCLUDE_DIR="${EPREFIX}"/usr/include |
399 |
+ -DEXPAT_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libexpat.so |
400 |
+ -DOPENGL_gl_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGL.so |
401 |
+ -DOPENGL_glu_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGLU.so |
402 |
+ -DCMAKE_SKIP_RPATH=YES |
403 |
+ -DVTK_USE_RPATH=OFF |
404 |
+ -DBUILD_SHARED_LIBS=ON |
405 |
+ -DVTK_USE_SYSTEM_FREETYPE=ON |
406 |
+ -DVTK_USE_SYSTEM_JPEG=ON |
407 |
+ -DVTK_USE_SYSTEM_PNG=ON |
408 |
+ -DVTK_USE_SYSTEM_TIFF=ON |
409 |
+ -DVTK_USE_SYSTEM_ZLIB=ON |
410 |
+ -DVTK_USE_SYSTEM_EXPAT=ON |
411 |
+ -DPARAVIEW_USE_SYSTEM_HDF5=ON |
412 |
+ -DCMAKE_VERBOSE_MAKEFILE=ON |
413 |
+ -DCMAKE_COLOR_MAKEFILE=TRUE |
414 |
+ -DVTK_USE_SYSTEM_LIBXML2=ON |
415 |
+ -DVTK_USE_OFFSCREEN=TRUE |
416 |
+ -DCMAKE_USE_PTHREADS=ON |
417 |
+ -DBUILD_TESTING=OFF |
418 |
+ -DVTK_USE_FFMPEG_ENCODER=OFF |
419 |
+ -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES=OFF |
420 |
+ -DPROTOC_LOCATION=$(which protoc)) |
421 |
+ |
422 |
+ # use flag triggered options |
423 |
+ mycmakeargs+=( |
424 |
+ $(cmake-utils_use gui PARAVIEW_BUILD_QT_GUI) |
425 |
+ $(cmake-utils_use gui VTK_USE_QVTK) |
426 |
+ $(cmake-utils_use gui VTK_USE_QVTK_QTOPENGL) |
427 |
+ $(cmake-utils_use boost VTK_USE_BOOST) |
428 |
+ $(cmake-utils_use boost VTK_USE_TEXT_ANALYSIS) |
429 |
+ $(cmake-utils_use mpi PARAVIEW_USE_MPI) |
430 |
+ $(cmake-utils_use mpi PARAVIEW_USE_MPI_SSEND) |
431 |
+ $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) |
432 |
+ $(cmake-utils_use python VTK_WRAP_PYTHON_SIP) |
433 |
+ $(cmake-utils_use python XDMF_WRAP_PYTHON) |
434 |
+ $(cmake-utils_use doc BUILD_DOCUMENTATION) |
435 |
+ $(cmake-utils_use examples BUILD_EXAMPLES) |
436 |
+ $(cmake-utils_use cg VTK_USE_CG_SHADERS) |
437 |
+ $(cmake-utils_use nvcontrol VTK_USE_NVCONTROL) |
438 |
+ $(cmake-utils_use mysql XDMF_USE_MYSQL) |
439 |
+ $(cmake-utils_use mysql VTK_USE_MYSQL) |
440 |
+ $(cmake-utils_use coprocessing PARAVIEW_ENABLE_COPROCESSING) |
441 |
+ $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER) |
442 |
+ $(cmake-utils_use theora VTK_USE_THEORA_ENCODER) |
443 |
+ $(cmake-utils_use theora VTK_USE_SYSTEM_OGGTHEORA)) |
444 |
+ |
445 |
+ if ( use gui ); then |
446 |
+ mycmakeargs+=(-DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer |
447 |
+ $(cmake-utils_use webkit VTK_QT_USE_WEBKIT)) |
448 |
+ if use python ; then |
449 |
+ # paraview cannot guess sip directory right probably because a path is not propagated properly |
450 |
+ mycmakeargs+=( |
451 |
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip" |
452 |
+ -DSIP_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)") |
453 |
+ fi |
454 |
+ fi |
455 |
+ |
456 |
+ # the rest of the plugins |
457 |
+ mycmakeargs+=( |
458 |
+ $(cmake-utils_use plugins PARAVIEW_INSTALL_DEVELOPMENT) |
459 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ClientChartView) |
460 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_CosmoFilters) |
461 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_H5PartReader) |
462 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Moments) |
463 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PointSprite) |
464 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Prism) |
465 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SLACTools) |
466 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIReaderWriter) |
467 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SurfaceLIC) |
468 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_EyeDomeLighting) |
469 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ForceTime) |
470 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SierraPlotTools) |
471 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_StreamingView) |
472 |
+ $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_VisTrailPlugin)) |
473 |
+ |
474 |
+ if use python; then |
475 |
+ mycmakeargs+=($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_pvblot)) |
476 |
+ fi |
477 |
+ |
478 |
+ if use coprocessing; then |
479 |
+ mycmakeargs+=($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator)) |
480 |
+ fi |
481 |
+ |
482 |
+ cmake-utils_src_configure |
483 |
+} |
484 |
+ |
485 |
+src_compile() { |
486 |
+ cmake-utils_src_compile |
487 |
+} |
488 |
+ |
489 |
+src_install() { |
490 |
+ cmake-utils_src_install |
491 |
+ |
492 |
+ # set up the environment |
493 |
+ echo "LDPATH=${EPREFIX}/usr/${PVLIBDIR}" >> "${T}"/40${PN} |
494 |
+ echo "PYTHONPATH="${EPREFIX}"/usr/${PVLIBDIR}:/usr/${PVLIBDIR}/site-packages" >> "${T}"/40${PN} |
495 |
+ doenvd "${T}"/40${PN} |
496 |
+ |
497 |
+ # last but not least lets make a desktop entry |
498 |
+ newicon "${S}"/Applications/ParaView/pvIcon.png paraview.png \ |
499 |
+ || die "Failed to create paraview icon." |
500 |
+ make_desktop_entry paraview "Paraview" paraview \ |
501 |
+ || die "Failed to install Paraview desktop entry" |
502 |
+ |
503 |
+} |
504 |
+ |
505 |
+pkg_postinst() { |
506 |
+ # with Qt4.5 there seem to be issues reading data files |
507 |
+ # under certain locales. Setting LC_ALL=C should fix these. |
508 |
+ echo |
509 |
+ elog "If you experience data corruption during parsing of" |
510 |
+ elog "data files with paraview please try setting your" |
511 |
+ elog "locale to LC_ALL=C." |
512 |
+ echo |
513 |
+} |
514 |
+ |
515 |
+pkg_postrm() { |
516 |
+ if use python ; then |
517 |
+ python_mod_cleanup "${EPREFIX}"/usr/$(get_libdir)/"${PN}-${MAJOR_PV}"/site-packages |
518 |
+ fi |
519 |
+} |