Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/meshlab/, media-gfx/meshlab/files/2016.12/
Date: Sat, 25 Nov 2017 10:26:19
Message-Id: 1511605553.50087cd3c5c379d2948644e13c9bd48554270f69.amynka@gentoo
1 commit: 50087cd3c5c379d2948644e13c9bd48554270f69
2 Author: Sobhan Mohammadpour <www.sobhan.mohammadpour <AT> gmail <DOT> com>
3 AuthorDate: Sat Nov 25 08:32:10 2017 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 25 10:25:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50087cd3
7
8 media-gfx/meshlab: version bump to 2016.12
9
10 - Bump to 2016.12
11 - Patches readded external: muParser, bzip ( Amynka )
12 - Add ~x86 keyword ( Amynka )
13 Closes: #6291
14 Closes: https://bugs.gentoo.org/607228
15
16 media-gfx/meshlab/Manifest | 2 +
17 .../files/2016.12/0001-compile-server.patch | 22 +++
18 .../files/2016.12/0001-depend-on-system-glew.patch | 72 +++++++++
19 .../files/2016.12/0001-disable-edit-quality.patch | 25 ++++
20 .../files/2016.12/0001-disable-filter-layer.patch | 25 ++++
21 .../files/2016.12/0001-disable-filter-ssynth.patch | 25 ++++
22 .../2016.12/0001-remove-not-sane-plugins.patch | 25 ++++
23 .../0001-set-shader-and-texture-paths.patch | 164 +++++++++++++++++++++
24 .../0001-update-1.3.3-pluginmanager.patch.patch | 29 ++++
25 .../files/2016.12/0001-use-external-bzip.patch | 51 +++++++
26 .../files/2016.12/0001-use-external-glew.patch | 95 ++++++++++++
27 .../files/2016.12/0001-use-external-jhead.patch | 56 +++++++
28 .../files/2016.12/0001-use-external-lib3ds.patch | 48 ++++++
29 .../files/2016.12/0001-use-external-muParser.patch | 37 +++++
30 .../files/2016.12/0001-use-external-openctm.patch | 43 ++++++
31 .../files/2016.12/remove-edit_mutualcorrs.patch | 10 ++
32 .../meshlab/files/2016.12/remove-io_TXT.patch | 10 ++
33 media-gfx/meshlab/meshlab-2016.12.ebuild | 101 +++++++++++++
34 18 files changed, 840 insertions(+)
35
36 diff --git a/media-gfx/meshlab/Manifest b/media-gfx/meshlab/Manifest
37 index 8bed7d39099..621bcabd578 100644
38 --- a/media-gfx/meshlab/Manifest
39 +++ b/media-gfx/meshlab/Manifest
40 @@ -1,2 +1,4 @@
41 DIST MeshLabSrc_AllInc_v132.tgz 12874196 SHA256 d57f0a99a55421aac54a66e2475d48f00f7b1752f9587cd69cf9b5b9c1a519b1 SHA512 40ef1f887d18e2146d6001d9c290bb76f6fc27caf13a1256a4061d5e2c43fd8dfdc843ace2cb83c6370648c2c5be3a22e2d5b31698df46e0695890d6a20651ac WHIRLPOOL aa6da94a8d5b9d28c9b787fe307774b7223e57278ed45c3bf1a823da9f5a9b59fd058a466f3f4dea3c4c57e3934b0aed88b1446f20e746349881c1bc965fec36
42 DIST MeshLabSrc_AllInc_v133.tgz 13390531 SHA256 c9829cd1f58713f1f82d546af1ee69291b52a0f94585f803174fb9e55654980f SHA512 ec155292be10ebe17a7d41b26d51cce88e1f00b692b8adb29462a2c3cb15444c6f27067a3396e4427cd694c82424910ba80f32f536b5f5d46d6765b2461cef43 WHIRLPOOL f1f938e7eb8d648f2a8ac4399420d947efe403f19cc163b4a4e28f8cf620ae5aa22d17503e3b5ca7920996e78dfbb41dbd89447d61bd95e4a2f69420f2196d5d
43 +DIST meshlab-2016.12.tar.gz 94194402 BLAKE2B 53dda75b51198d529d35ae64e1b9d8ec240ec6031835e6cde2ff1ad21403086112a6f4b9acf5c6f53328787078b3e1a90cc177f5e009834b310cdf6b168c59b0 SHA512 68bf863fc390725a949578b545bc749bbe2c07ca75d1461772c7777fd6a4b095f11b64b5b0e8b729f83fea1bb9e3ca4b41123cdea3799a8eee0de587eb7bf1d8
44 +DIST vcglib-1.0.1.tar.gz 9063634 BLAKE2B 91fba7ebf1ac18d0dfb33d3e26656e546b7c35ae753777730c44ebdf327413dfe94dd5e84907eb7e1644d70bfdf7d00ae8ecd0a81587d790a31354f7db09d626 SHA512 55d1854054744abae2d41e7b5041df89253bae108df5fc1cfe777013de7192dce04bc474475cb11a1d0343ebcab1ea61b381d9d9c36c452528043e85e75bc211
45
46 diff --git a/media-gfx/meshlab/files/2016.12/0001-compile-server.patch b/media-gfx/meshlab/files/2016.12/0001-compile-server.patch
47 new file mode 100644
48 index 00000000000..6e2e31af9bd
49 --- /dev/null
50 +++ b/media-gfx/meshlab/files/2016.12/0001-compile-server.patch
51 @@ -0,0 +1,22 @@
52 +From 188c3465b9cc5be7c72b21e012a89b9d07e6e2c4 Mon Sep 17 00:00:00 2001
53 +From: Sobhan Mohammadpour <mohammadpour.sobhan@×××××.com>
54 +Date: Mon, 20 Nov 2017 14:40:02 +0330
55 +Subject: [PATCH] compile server
56 +
57 +---
58 + meshlab_mini.pro | 2 +-
59 + 1 file changed, 1 insertion(+), 1 deletion(-)
60 +
61 +diff --git a/meshlab_mini.pro b/meshlab_mini.pro
62 +index abe0259..b18771e 100644
63 +--- a/meshlab_mini.pro
64 ++++ b/meshlab_mini.pro
65 +@@ -34,4 +34,4 @@ SUBDIRS = common \
66 + # meshlabplugins/filter_unsharp \
67 + # meshlabplugins/io_collada \
68 + # meshlabplugins/io_x3d \
69 +-# meshlabserver
70 ++ meshlabserver
71 +--
72 +2.15.0
73 +
74
75 diff --git a/media-gfx/meshlab/files/2016.12/0001-depend-on-system-glew.patch b/media-gfx/meshlab/files/2016.12/0001-depend-on-system-glew.patch
76 new file mode 100644
77 index 00000000000..d8c5bb1f5aa
78 --- /dev/null
79 +++ b/media-gfx/meshlab/files/2016.12/0001-depend-on-system-glew.patch
80 @@ -0,0 +1,72 @@
81 +From 58a86b4c48ef89faa5d4d16c502d5350fb1c5df3 Mon Sep 17 00:00:00 2001
82 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
83 +Date: Thu, 23 Nov 2017 00:57:42 +0330
84 +Subject: [PATCH] depend-on-system-glew
85 +
86 +---
87 + common/common.pro | 7 +------
88 + meshlab/meshlab.pro | 2 --
89 + 2 files changed, 1 insertion(+), 8 deletions(-)
90 +
91 +diff --git a/common/common.pro b/common/common.pro
92 +index 51cdcb5..85849dc 100644
93 +--- a/common/common.pro
94 ++++ b/common/common.pro
95 +@@ -1,7 +1,6 @@
96 + include (../general.pri)
97 + EXIF_DIR = ../external/jhead-2.95
98 +
99 +-GLEWCODE = $$GLEWDIR/src/glew.c
100 +
101 + win32-msvc2005:DESTDIR = ../distrib
102 + win32-msvc2008:DESTDIR = ../distrib
103 +@@ -53,9 +52,7 @@ ln -s ../../../meshlab/src/distrib/shaders ../distrib/shaders ;\
104 + echo "linked shader dir"; \
105 + fi;\
106 + "
107 +-INCLUDEPATH *= ../.. \
108 +- $$VCGDIR \
109 +- $$GLEWDIR/include
110 ++
111 + TEMPLATE = lib
112 + linux-g++:CONFIG += dll
113 + linux-g++:DESTDIR = ../distrib
114 +@@ -80,7 +77,6 @@ QT += script
115 + TARGET = common
116 + DEPENDPATH += .
117 + INCLUDEPATH += . $$EXIF_DIR
118 +-DEFINES += GLEW_STATIC
119 + win32-msvc2005:DEFINES += _CRT_SECURE_NO_WARNINGS
120 + win32-msvc2008:DEFINES += _CRT_SECURE_NO_WARNINGS
121 + win32-msvc2010:DEFINES += _CRT_SECURE_NO_WARNINGS
122 +@@ -117,7 +113,6 @@ SOURCES += filterparameter.cpp \
123 + mlapplication.cpp \
124 + scriptsyntax.cpp \
125 + searcher.cpp \
126 +- $$GLEWCODE \
127 + meshlabdocumentxml.cpp \
128 + meshlabdocumentbundler.cpp \
129 + ml_shared_data_context.cpp
130 +diff --git a/meshlab/meshlab.pro b/meshlab/meshlab.pro
131 +index 0e50581..37d44ba 100644
132 +--- a/meshlab/meshlab.pro
133 ++++ b/meshlab/meshlab.pro
134 +@@ -9,7 +9,6 @@ INCLUDEPATH *= . \
135 + .. \
136 + ../.. \
137 + $$VCGDIR \
138 +- $$GLEWDIR/include \
139 + $$EXIF_DIR
140 + DEPENDPATH += $$VCGDIR \
141 + $$VCGDIR/vcg \
142 +@@ -64,7 +63,6 @@ SOURCES = main.cpp \
143 + $$VCGDIR/wrap/gui/trackball.cpp \
144 + $$VCGDIR/wrap/gui/trackmode.cpp \
145 + $$VCGDIR/wrap/gui/coordinateframe.cpp \
146 +- #$$GLEWDIR/src/glew.c \
147 + glarea_setting.cpp \
148 + filterthread.cpp
149 +
150 +--
151 +2.15.0
152 +
153
154 diff --git a/media-gfx/meshlab/files/2016.12/0001-disable-edit-quality.patch b/media-gfx/meshlab/files/2016.12/0001-disable-edit-quality.patch
155 new file mode 100644
156 index 00000000000..ed58bc0cb97
157 --- /dev/null
158 +++ b/media-gfx/meshlab/files/2016.12/0001-disable-edit-quality.patch
159 @@ -0,0 +1,25 @@
160 +From 59588b3198e0ca6cd97265a65ea87b40897d3bd9 Mon Sep 17 00:00:00 2001
161 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
162 +Date: Thu, 23 Nov 2017 00:41:15 +0330
163 +Subject: [PATCH] disable-edit-quality
164 +
165 +---
166 + meshlab_full.pro | 2 +-
167 + 1 file changed, 1 insertion(+), 1 deletion(-)
168 +
169 +diff --git a/meshlab_full.pro b/meshlab_full.pro
170 +index 143e226..9939225 100644
171 +--- a/meshlab_full.pro
172 ++++ b/meshlab_full.pro
173 +@@ -69,7 +69,7 @@ SUBDIRS = common \
174 + meshlabplugins/edit_pickpoints \
175 + meshlabplugins/edit_point\
176 + plugins_experimental/edit_referencing \
177 +- meshlabplugins/edit_quality \
178 ++# meshlabplugins/edit_quality \
179 + meshlabplugins/edit_select \
180 + # Sample Plugins
181 + sampleplugins/sampleedit \
182 +--
183 +2.15.0
184 +
185
186 diff --git a/media-gfx/meshlab/files/2016.12/0001-disable-filter-layer.patch b/media-gfx/meshlab/files/2016.12/0001-disable-filter-layer.patch
187 new file mode 100644
188 index 00000000000..407d7775f9f
189 --- /dev/null
190 +++ b/media-gfx/meshlab/files/2016.12/0001-disable-filter-layer.patch
191 @@ -0,0 +1,25 @@
192 +From 90862a887b923984e17343447c30251f2d6fc541 Mon Sep 17 00:00:00 2001
193 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
194 +Date: Thu, 23 Nov 2017 12:37:14 +0330
195 +Subject: [PATCH] disable filter layer
196 +
197 +---
198 + meshlab_full.pro | 2 +-
199 + 1 file changed, 1 insertion(+), 1 deletion(-)
200 +
201 +diff --git a/meshlab_full.pro b/meshlab_full.pro
202 +index 9939225..1691d31 100644
203 +--- a/meshlab_full.pro
204 ++++ b/meshlab_full.pro
205 +@@ -34,7 +34,7 @@ SUBDIRS = common \
206 + sampleplugins/filter_geodesic \
207 + meshlabplugins/filter_img_patch_param \
208 + meshlabplugins/filter_isoparametrization \
209 +- meshlabplugins/filter_layer \
210 ++# meshlabplugins/filter_layer \
211 + meshlabplugins/filter_measure \
212 + meshlabplugins/filter_meshing \
213 + plugins_experimental/filter_mutualglobal \
214 +--
215 +2.15.0
216 +
217
218 diff --git a/media-gfx/meshlab/files/2016.12/0001-disable-filter-ssynth.patch b/media-gfx/meshlab/files/2016.12/0001-disable-filter-ssynth.patch
219 new file mode 100644
220 index 00000000000..c5f84998a62
221 --- /dev/null
222 +++ b/media-gfx/meshlab/files/2016.12/0001-disable-filter-ssynth.patch
223 @@ -0,0 +1,25 @@
224 +From 22f946dece8e56683a197204ac05292045a3dda1 Mon Sep 17 00:00:00 2001
225 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
226 +Date: Wed, 22 Nov 2017 23:20:57 +0330
227 +Subject: [PATCH] disable-filter-ssynth
228 +
229 +---
230 + meshlab_full.pro | 2 +-
231 + 1 file changed, 1 insertion(+), 1 deletion(-)
232 +
233 +diff --git a/meshlab_full.pro b/meshlab_full.pro
234 +index 4a256a1..143e226 100644
235 +--- a/meshlab_full.pro
236 ++++ b/meshlab_full.pro
237 +@@ -49,7 +49,7 @@ SUBDIRS = common \
238 + meshlabplugins/filter_sdfgpu \
239 + meshlabplugins/filter_select \
240 + plugins_experimental/filter_sketchfab \
241 +- meshlabplugins/filter_ssynth \
242 ++# meshlabplugins/filter_ssynth \
243 + meshlabplugins/filter_texture \
244 + meshlabplugins/filter_trioptimize \
245 + meshlabplugins/filter_unsharp \
246 +--
247 +2.15.0
248 +
249
250 diff --git a/media-gfx/meshlab/files/2016.12/0001-remove-not-sane-plugins.patch b/media-gfx/meshlab/files/2016.12/0001-remove-not-sane-plugins.patch
251 new file mode 100644
252 index 00000000000..320912c40ed
253 --- /dev/null
254 +++ b/media-gfx/meshlab/files/2016.12/0001-remove-not-sane-plugins.patch
255 @@ -0,0 +1,25 @@
256 +From 0358aad037efc55701622884bf0ed1249a08387f Mon Sep 17 00:00:00 2001
257 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
258 +Date: Thu, 23 Nov 2017 02:23:03 +0330
259 +Subject: [PATCH] remove not sane plugins
260 +
261 +---
262 + meshlab_full.pro | 2 +-
263 + 1 file changed, 1 insertion(+), 1 deletion(-)
264 +
265 +diff --git a/meshlab_full.pro b/meshlab_full.pro
266 +index 9939225..b8a6bce 100644
267 +--- a/meshlab_full.pro
268 ++++ b/meshlab_full.pro
269 +@@ -27,7 +27,7 @@ SUBDIRS = common \
270 + meshlabplugins/filter_color_projection \
271 + meshlabplugins/filter_create \
272 + sampleplugins/filter_createiso \
273 +- meshlabplugins/filter_csg \
274 ++# meshlabplugins/filter_csg \
275 + meshlabplugins/filter_dirt \
276 + meshlabplugins/filter_fractal \
277 + meshlabplugins/filter_func \
278 +--
279 +2.15.0
280 +
281
282 diff --git a/media-gfx/meshlab/files/2016.12/0001-set-shader-and-texture-paths.patch b/media-gfx/meshlab/files/2016.12/0001-set-shader-and-texture-paths.patch
283 new file mode 100644
284 index 00000000000..a1a4f3f860a
285 --- /dev/null
286 +++ b/media-gfx/meshlab/files/2016.12/0001-set-shader-and-texture-paths.patch
287 @@ -0,0 +1,164 @@
288 +From 4780d519177021364427b44567fd9a67879435aa Mon Sep 17 00:00:00 2001
289 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
290 +Date: Fri, 24 Nov 2017 18:20:11 +0330
291 +Subject: [PATCH] set shader and texture paths
292 +
293 +---
294 + meshlabplugins/render_gdp/meshrender.cpp | 6 +++++-
295 + meshlabplugins/render_gdp/shaderDialog.cpp | 6 +++++-
296 + plugins_experimental/render_splatpyramid/dialog.cpp | 7 +++++--
297 + plugins_experimental/render_splatpyramid/splat_pyramid.cc | 6 +++++-
298 + plugins_unsupported/render_rm/glstateholder.cpp | 12 ++++++++++--
299 + plugins_unsupported/render_rm/rmmeshrender.cpp | 6 +++++-
300 + plugins_unsupported/render_rm/rmshaderdialog.cpp | 10 +++++++++-
301 + 7 files changed, 44 insertions(+), 9 deletions(-)
302 +
303 +diff --git a/meshlabplugins/render_gdp/meshrender.cpp b/meshlabplugins/render_gdp/meshrender.cpp
304 +index 5841ce6..28e66b3 100644
305 +--- a/meshlabplugins/render_gdp/meshrender.cpp
306 ++++ b/meshlabplugins/render_gdp/meshrender.cpp
307 +@@ -38,7 +38,11 @@ void MeshShaderRenderPlugin::initActionList() {
308 + qaNone->setCheckable(false);
309 + actionList << qaNone;*/
310 +
311 +- QDir shadersDir = QDir(qApp->applicationDirPath());
312 ++#if defined(Q_OS_LINUX)
313 ++ QDir shadersDir("/usr/share/meshlab");
314 ++#else
315 ++ QDir shadersDir = QDir(qApp->applicationDirPath());
316 ++#endif
317 + #if defined(Q_OS_WIN)
318 + if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins")
319 + shadersDir.cdUp();
320 +diff --git a/meshlabplugins/render_gdp/shaderDialog.cpp b/meshlabplugins/render_gdp/shaderDialog.cpp
321 +index 1315757..168c0f8 100644
322 +--- a/meshlabplugins/render_gdp/shaderDialog.cpp
323 ++++ b/meshlabplugins/render_gdp/shaderDialog.cpp
324 +@@ -317,7 +317,11 @@ void ShaderDialog::changeTexturePath(int i) {
325 + void ShaderDialog::browseTexturePath(int i) {
326 + QFileDialog fd(0,"Choose new texture");
327 +
328 +- QDir shadersDir = QDir(qApp->applicationDirPath());
329 ++#if defined(Q_OS_LINUX)
330 ++ QDir shadersDir("/usr/share/meshlab");
331 ++#else
332 ++ QDir shadersDir = QDir(qApp->applicationDirPath());
333 ++#endif
334 + #if defined(Q_OS_WIN)
335 + if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
336 + shadersDir.cdUp();
337 +diff --git a/plugins_experimental/render_splatpyramid/dialog.cpp b/plugins_experimental/render_splatpyramid/dialog.cpp
338 +index 589ba48..11cf3fe 100644
339 +--- a/plugins_experimental/render_splatpyramid/dialog.cpp
340 ++++ b/plugins_experimental/render_splatpyramid/dialog.cpp
341 +@@ -122,8 +122,11 @@ void Dialog::changeTexturePath(int i) {
342 +
343 + void Dialog::browseTexturePath(int i) {
344 + QFileDialog fd(0,"Choose new texture");
345 +-
346 +- QDir shadersDir = QDir(qApp->applicationDirPath());
347 ++#if defined(Q_OS_LINUX)
348 ++ QDir shadersDir("/usr/share/meshlab");
349 ++#else
350 ++ QDir shadersDir = QDir(qApp->applicationDirPath());
351 ++#endif
352 + #if defined(Q_OS_WIN)
353 + if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
354 + shadersDir.cdUp();
355 +diff --git a/plugins_experimental/render_splatpyramid/splat_pyramid.cc b/plugins_experimental/render_splatpyramid/splat_pyramid.cc
356 +index a4915d1..75074a6 100644
357 +--- a/plugins_experimental/render_splatpyramid/splat_pyramid.cc
358 ++++ b/plugins_experimental/render_splatpyramid/splat_pyramid.cc
359 +@@ -85,7 +85,11 @@ void PyramidPointRendererPlugin::Init(QAction *, MeshDocument &md, RenderMode &,
360 + objects[i].setRendererType( render_mode );
361 +
362 + /// Sets the path to the meshlab's shaders directory
363 +- QDir shadersDir = QDir(qApp->applicationDirPath());
364 ++#if defined(Q_OS_LINUX)
365 ++ QDir shadersDir("/usr/share/meshlab");
366 ++#else
367 ++ QDir shadersDir = QDir(qApp->applicationDirPath());
368 ++#endif
369 + #if defined(Q_OS_WIN)
370 + if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins" )
371 + shadersDir.cdUp();
372 +diff --git a/plugins_unsupported/render_rm/glstateholder.cpp b/plugins_unsupported/render_rm/glstateholder.cpp
373 +index fa7cdd9..544c6b3 100644
374 +--- a/plugins_unsupported/render_rm/glstateholder.cpp
375 ++++ b/plugins_unsupported/render_rm/glstateholder.cpp
376 +@@ -75,8 +75,12 @@ UniformValue::UniformValue(UniformVar &v)
377 +
378 + // if it's a texture, try to load it from the standard path
379 + if (!textureFilename.isEmpty()) {
380 ++#if defined(Q_OS_LINUX)
381 ++ QDir textureDir("/usr/share/meshlab");
382 ++#else
383 + QDir textureDir = QDir(qApp->applicationDirPath());
384 +-
385 ++#endif
386 ++
387 + #if defined(Q_OS_WIN)
388 + if (textureDir.dirName() == "debug" ||
389 + textureDir.dirName() == "release" ||
390 +@@ -158,7 +162,11 @@ void UniformValue::updateUniformVariableValuesFromDialog(int rowIdx, int colIdx,
391 + // * choose the filename with a dialog (55 by convention)
392 + if (rowIdx == 5 && colIdx == 5) {
393 + QFileDialog fd(0, "Choose new texture");
394 +- QDir texturesDir = QDir(qApp->applicationDirPath());
395 ++#if defined(Q_OS_LINUX)
396 ++ QDir textureDir("/usr/share/meshlab");
397 ++#else
398 ++ QDir textureDir = QDir(qApp->applicationDirPath());
399 ++#endif
400 +
401 + #if defined(Q_OS_WIN)
402 + if (texturesDir.dirName() == "debug" ||
403 +diff --git a/plugins_unsupported/render_rm/rmmeshrender.cpp b/plugins_unsupported/render_rm/rmmeshrender.cpp
404 +index 9e516d2..f367842 100644
405 +--- a/plugins_unsupported/render_rm/rmmeshrender.cpp
406 ++++ b/plugins_unsupported/render_rm/rmmeshrender.cpp
407 +@@ -63,7 +63,11 @@ QList<QAction*> RmMeshShaderRenderPlugin::actions()
408 +
409 + void RmMeshShaderRenderPlugin::initActionList() {
410 +
411 +- QDir shadersDir = QDir(qApp->applicationDirPath());
412 ++#if defined(Q_OS_LINUX)
413 ++ QDir shadersDir("/usr/share/meshlab/shaders");
414 ++#else
415 ++ QDir shadersDir = QDir(qApp->applicationDirPath());
416 ++#endif
417 + #if defined(Q_OS_WIN)
418 + if (shadersDir.dirName() == "debug" ||
419 + shadersDir.dirName() == "release" ||
420 +diff --git a/plugins_unsupported/render_rm/rmshaderdialog.cpp b/plugins_unsupported/render_rm/rmshaderdialog.cpp
421 +index 1f6c02b..6c8af80 100644
422 +--- a/plugins_unsupported/render_rm/rmshaderdialog.cpp
423 ++++ b/plugins_unsupported/render_rm/rmshaderdialog.cpp
424 +@@ -332,7 +332,11 @@ void RmShaderDialog::fillTabsWithPass(int index)
425 +
426 + QFileInfo finfo(v.textureFilename);
427 +
428 ++ #if defined(Q_OS_LINUX)
429 ++ QDir textureDir("/usr/share/meshlab");
430 ++ #else
431 + QDir textureDir = QDir(qApp->applicationDirPath());
432 ++ #endif
433 + #if defined(Q_OS_WIN)
434 + if (textureDir.dirName() == "debug" || textureDir.dirName() == "release" || textureDir.dirName() == "plugins" ) textureDir.cdUp();
435 + #elif defined(Q_OS_MAC)
436 +@@ -444,7 +448,11 @@ void RmShaderDialog::valuesChanged(const QString & varNameAndIndex )
437 + // choose the filename with a dialog
438 + QFileDialog fd(0,"Choose new texture");
439 +
440 +- QDir texturesDir = QDir(qApp->applicationDirPath());
441 ++#if defined(Q_OS_LINUX)
442 ++ QDir textureDir("/usr/share/meshlab");
443 ++#else
444 ++ QDir textureDir = QDir(qApp->applicationDirPath());
445 ++#endif
446 + #if defined(Q_OS_WIN)
447 + if (texturesDir.dirName() == "debug" || texturesDir.dirName() == "release") texturesDir.cdUp();
448 + #elif defined(Q_OS_MAC)
449 +--
450 +2.15.0
451 +
452
453 diff --git a/media-gfx/meshlab/files/2016.12/0001-update-1.3.3-pluginmanager.patch.patch b/media-gfx/meshlab/files/2016.12/0001-update-1.3.3-pluginmanager.patch.patch
454 new file mode 100644
455 index 00000000000..9f6d7487817
456 --- /dev/null
457 +++ b/media-gfx/meshlab/files/2016.12/0001-update-1.3.3-pluginmanager.patch.patch
458 @@ -0,0 +1,29 @@
459 +From 6310a419f2a0e0f11f59a60fee850a1b64c2f41e Mon Sep 17 00:00:00 2001
460 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
461 +Date: Fri, 24 Nov 2017 17:47:43 +0330
462 +Subject: [PATCH] update 1.3.3/pluginmanager.patch
463 +
464 +---
465 + common/pluginmanager.cpp | 5 ++++-
466 + 1 file changed, 4 insertions(+), 1 deletion(-)
467 +
468 +diff --git a/common/pluginmanager.cpp b/common/pluginmanager.cpp
469 +index 5354055..551e73f 100644
470 +--- a/common/pluginmanager.cpp
471 ++++ b/common/pluginmanager.cpp
472 +@@ -189,8 +189,11 @@ QString PluginManager::osDependentFileBaseName(const QString &plname)
473 +
474 + QString PluginManager::getBaseDirPath()
475 + {
476 ++ #if defined(Q_OS_LINUX)
477 ++ QDir baseDir("/usr/lib/meshlab");
478 ++ #else
479 + QDir baseDir(qApp->applicationDirPath());
480 +-
481 ++ #endif
482 + #if defined(Q_OS_WIN)
483 + // Windows:
484 + // during development with visual studio binary could be in the debug/release subdir.
485 +--
486 +2.15.0
487 +
488
489 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-bzip.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-bzip.patch
490 new file mode 100644
491 index 00000000000..e01d5ebae85
492 --- /dev/null
493 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-bzip.patch
494 @@ -0,0 +1,51 @@
495 +From 731519b5573ab503b78f2c892e2d5c4bcabef1ea Mon Sep 17 00:00:00 2001
496 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
497 +Date: Wed, 22 Nov 2017 23:33:11 +0330
498 +Subject: [PATCH] use-external-bzip
499 +
500 +---
501 + meshlabplugins/edit_arc3D/edit_arc3D.pro | 31 -------------------------------
502 + 1 file changed, 31 deletions(-)
503 +
504 +diff --git a/meshlabplugins/edit_arc3D/edit_arc3D.pro b/meshlabplugins/edit_arc3D/edit_arc3D.pro
505 +index 08b5860..75db42c 100644
506 +--- a/meshlabplugins/edit_arc3D/edit_arc3D.pro
507 ++++ b/meshlabplugins/edit_arc3D/edit_arc3D.pro
508 +@@ -28,34 +28,3 @@ SOURCES += edit_arc3D.cpp \
509 + TARGET = edit_arc3D
510 + RESOURCES = edit_arc3D.qrc
511 +
512 +-win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/bz2.lib
513 +-win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/bz2.lib
514 +-win32-msvc2010:LIBS += ../../external/lib/win32-msvc2010/bz2.lib
515 +-win32-msvc2012:LIBS += ../../external/lib/win32-msvc2012/bz2.lib
516 +-win32-msvc2013:LIBS += ../../external/lib/win32-msvc2013/bz2.lib
517 +-win32-msvc2015:LIBS += ../../external/lib/win32-msvc2015/bz2.lib
518 +-win32-g++:LIBS += ../../external/lib/win32-gcc/libbz2.a
519 +-linux-g++:LIBS += ../../external/lib/linux-g++/libbz2.a
520 +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libbz2.a
521 +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libbz2.a
522 +-mac:LIBS += -lbz2
523 +-
524 +-win32-msvc2005:INCLUDEPATH += ../../external/bzip2-1.0.5
525 +-win32-msvc2008:INCLUDEPATH += ../../external/bzip2-1.0.5
526 +-win32-msvc2010:INCLUDEPATH += ../../external/bzip2-1.0.5
527 +-win32-msvc2012:INCLUDEPATH += ../../external/bzip2-1.0.5
528 +-win32-msvc2013:INCLUDEPATH += ../../external/bzip2-1.0.5
529 +-win32-msvc2015:INCLUDEPATH += ../../external/bzip2-1.0.5
530 +-
531 +-win32-g++:INCLUDEPATH += ../../external/bzip2-1.0.5
532 +-linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5
533 +-linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5
534 +-linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5
535 +-
536 +-
537 +-CONFIG(release, debug|release) {
538 +- win32-g++:release:QMAKE_CXXFLAGS -= -O2
539 +- win32-g++:release:QMAKE_CFLAGS -= -O2
540 +- win32-g++:release:QMAKE_CXXFLAGS += -O3 -mtune=pentium3 -ffast-math
541 +-}
542 +-
543 +--
544 +2.15.0
545 +
546
547 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-glew.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-glew.patch
548 new file mode 100644
549 index 00000000000..58d76049992
550 --- /dev/null
551 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-glew.patch
552 @@ -0,0 +1,95 @@
553 +From 3b698bccccaeeee03c4bf454971b9c4bc00f2450 Mon Sep 17 00:00:00 2001
554 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
555 +Date: Thu, 23 Nov 2017 01:22:19 +0330
556 +Subject: [PATCH] use-external-glew
557 +
558 +---
559 + common/common.pro | 7 ++++---
560 + meshlab/meshlab.pro | 8 ++++----
561 + meshlabserver/meshlabserver.pro | 8 ++++----
562 + 3 files changed, 12 insertions(+), 11 deletions(-)
563 +
564 +diff --git a/common/common.pro b/common/common.pro
565 +index 8bdf6a5..0edc245 100644
566 +--- a/common/common.pro
567 ++++ b/common/common.pro
568 +@@ -1,7 +1,7 @@
569 + include (../general.pri)
570 + #EXIF_DIR = ../external/jhead-2.95
571 +
572 +-GLEWCODE = $$GLEWDIR/src/glew.c
573 ++#GLEWCODE = $$GLEWDIR/src/glew.c
574 +
575 + win32-msvc2005:DESTDIR = ../distrib
576 + win32-msvc2008:DESTDIR = ../distrib
577 +@@ -55,7 +55,8 @@ fi;\
578 + "
579 + INCLUDEPATH *= ../.. \
580 + $$VCGDIR \
581 +- $$GLEWDIR/include
582 ++# $$GLEWDIR/include
583 ++
584 + TEMPLATE = lib
585 + linux-g++:CONFIG += dll
586 + linux-g++:DESTDIR = ../distrib
587 +@@ -80,7 +81,7 @@ QT += script
588 + TARGET = common
589 + DEPENDPATH += .
590 + #INCLUDEPATH += . $$EXIF_DIR
591 +-DEFINES += GLEW_STATIC
592 ++#DEFINES += GLEW_STATIC
593 + win32-msvc2005:DEFINES += _CRT_SECURE_NO_WARNINGS
594 + win32-msvc2008:DEFINES += _CRT_SECURE_NO_WARNINGS
595 + win32-msvc2010:DEFINES += _CRT_SECURE_NO_WARNINGS
596 +diff --git a/meshlab/meshlab.pro b/meshlab/meshlab.pro
597 +index 5456342..9d45834 100644
598 +--- a/meshlab/meshlab.pro
599 ++++ b/meshlab/meshlab.pro
600 +@@ -9,7 +9,7 @@ INCLUDEPATH *= . \
601 + .. \
602 + ../.. \
603 + $$VCGDIR \
604 +- $$GLEWDIR/include \
605 ++# $$GLEWDIR/include \
606 + # $$EXIF_DIR
607 +
608 + DEPENDPATH += $$VCGDIR \
609 +@@ -151,11 +151,11 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -ljhead -L../distrib -lcom
610 + # win32-g++:release:LIBS += -L../common/release -lcommon
611 + #}
612 +
613 +-linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
614 ++linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU -lGLEW
615 + linux-g++:QMAKE_RPATHDIR += ../distrib
616 +-linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -ljhead -L../distrib -lcommon -lGLU
617 ++linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -ljhead -L../distrib -lcommon -lGLU -lGLEW
618 + linux-g++-32:QMAKE_RPATHDIR += ../distrib
619 +-linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -ljhead -L../distrib -lcommon -lGLU
620 ++linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -ljhead -L../distrib -lcommon -lGLU -lGLEW
621 + linux-g++-64:QMAKE_RPATHDIR += ../distrib
622 +
623 + # uncomment in your local copy only in emergency cases.
624 +diff --git a/meshlabserver/meshlabserver.pro b/meshlabserver/meshlabserver.pro
625 +index c9f5d0e..2b96033 100644
626 +--- a/meshlabserver/meshlabserver.pro
627 ++++ b/meshlabserver/meshlabserver.pro
628 +@@ -28,12 +28,12 @@ win32-msvc2008: LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
629 + win32-msvc2010: LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
630 + win32-msvc2012: LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
631 + win32-msvc2015: LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
632 +-win32-g++: LIBS += -L../distrib -lcommon
633 +-linux-g++: LIBS += -L../distrib -lcommon
634 ++win32-g++: LIBS += -L../distrib -lcommon
635 ++linux-g++: LIBS += -L../distrib -lcommon -lGLEW
636 + linux-g++:QMAKE_RPATHDIR += ../distrib
637 +-linux-g++-32: LIBS += -L../distrib -lcommon
638 ++linux-g++-32: LIBS += -L../distrib -lcommon -lGLEW
639 + linux-g++-32:QMAKE_RPATHDIR += ../distrib
640 +-linux-g++-64: LIBS += -L../distrib -lcommon
641 ++linux-g++-64: LIBS += -L../distrib -lcommon -lGLEW
642 + linux-g++-64:QMAKE_RPATHDIR += ../distrib
643 + #CONFIG (release,debug | release) {
644 + # win32-msvc2005:release: LIBS += -L../common/release -lcommon
645 +--
646 +2.15.0
647 +
648
649 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-jhead.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-jhead.patch
650 new file mode 100644
651 index 00000000000..002c2dc3bdf
652 --- /dev/null
653 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-jhead.patch
654 @@ -0,0 +1,56 @@
655 +From 68d92b2de5d598d4d85e2cdbddec5219ba317796 Mon Sep 17 00:00:00 2001
656 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
657 +Date: Thu, 23 Nov 2017 01:21:10 +0330
658 +Subject: [PATCH] use-external-jhead
659 +
660 +---
661 + common/common.pro | 4 ++--
662 + meshlab/meshlab.pro | 5 +++--
663 + 2 files changed, 5 insertions(+), 4 deletions(-)
664 +
665 +diff --git a/common/common.pro b/common/common.pro
666 +index 51cdcb5..8bdf6a5 100644
667 +--- a/common/common.pro
668 ++++ b/common/common.pro
669 +@@ -1,5 +1,5 @@
670 + include (../general.pri)
671 +-EXIF_DIR = ../external/jhead-2.95
672 ++#EXIF_DIR = ../external/jhead-2.95
673 +
674 + GLEWCODE = $$GLEWDIR/src/glew.c
675 +
676 +@@ -79,7 +79,7 @@ QT += script
677 +
678 + TARGET = common
679 + DEPENDPATH += .
680 +-INCLUDEPATH += . $$EXIF_DIR
681 ++#INCLUDEPATH += . $$EXIF_DIR
682 + DEFINES += GLEW_STATIC
683 + win32-msvc2005:DEFINES += _CRT_SECURE_NO_WARNINGS
684 + win32-msvc2008:DEFINES += _CRT_SECURE_NO_WARNINGS
685 +diff --git a/meshlab/meshlab.pro b/meshlab/meshlab.pro
686 +index 0e50581..5456342 100644
687 +--- a/meshlab/meshlab.pro
688 ++++ b/meshlab/meshlab.pro
689 +@@ -1,7 +1,7 @@
690 + include (../general.pri)
691 + #CONFIG += debug_and_release
692 + DESTDIR = ../distrib
693 +-EXIF_DIR = ../external/jhead-2.95
694 ++#EXIF_DIR = ../external/jhead-2.95
695 +
696 + DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000
697 +
698 +@@ -10,7 +10,8 @@ INCLUDEPATH *= . \
699 + ../.. \
700 + $$VCGDIR \
701 + $$GLEWDIR/include \
702 +- $$EXIF_DIR
703 ++# $$EXIF_DIR
704 ++
705 + DEPENDPATH += $$VCGDIR \
706 + $$VCGDIR/vcg \
707 + $$VCGDIR/wrap
708 +--
709 +2.15.0
710 +
711
712 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-lib3ds.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-lib3ds.patch
713 new file mode 100644
714 index 00000000000..acbd8f4b5fe
715 --- /dev/null
716 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-lib3ds.patch
717 @@ -0,0 +1,48 @@
718 +From 911bc805f89c464540fdce4c16e15f64476cf161 Mon Sep 17 00:00:00 2001
719 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
720 +Date: Wed, 22 Nov 2017 19:25:35 +0330
721 +Subject: [PATCH] use-external-lib3ds
722 +
723 +---
724 + meshlabplugins/io_3ds/io_3ds.pro | 24 ------------------------
725 + 1 file changed, 24 deletions(-)
726 +
727 +diff --git a/meshlabplugins/io_3ds/io_3ds.pro b/meshlabplugins/io_3ds/io_3ds.pro
728 +index 601f5da..5a19589 100644
729 +--- a/meshlabplugins/io_3ds/io_3ds.pro
730 ++++ b/meshlabplugins/io_3ds/io_3ds.pro
731 +@@ -9,31 +9,7 @@ HEADERS = meshio.h \
732 + io_3ds.h
733 +
734 + SOURCES += meshio.cpp \
735 +-
736 +-DEFINES += LIB3DS_STATIC
737 +
738 + TARGET = io_3ds
739 +
740 +-INCLUDEPATH += ../../external/lib3ds-1.3.0/
741 +-
742 +-# Notes on the paths of lib3ds files.
743 +-# Once you have compiled the library put the lib files in a dir named lib/XXX/
744 +-# where XXX is the name of your system according to the QT naming style.
745 +-# Linux users can rely on their own package managers and hope that it is installing the last version of lib3ds
746 +-
747 +-win32-msvc2015:LIBS += ../../external/lib/win32-msvc2015/3ds.lib
748 +-win32-msvc.net:LIBS += ../../external/lib/win32-msvc.net/3ds.lib
749 +-win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/3ds.lib
750 +-win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/3ds.lib
751 +-win32-g++:LIBS += ../../external/lib/win32-gcc/lib3ds.a
752 +-linux-g++:LIBS += ../../external/lib/linux-g++/lib3ds.a
753 +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/lib3ds.a
754 +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/lib3ds.a
755 +-
756 +-# unix:LIBS += -L../../../../code/lib/lib3ds-1.3.0/lib3ds/lib/unix -l3ds
757 +-
758 +-# mac:LIBS -= -l3ds
759 +-# mac:LIBS += ../../../../code/lib/lib3ds-1.3.0/lib/mac/lib3ds.a
760 +-
761 +-macx:LIBS += $$MACLIBDIR/lib3ds.a
762 +
763 +--
764 +2.15.0
765 +
766
767 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-muParser.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-muParser.patch
768 new file mode 100644
769 index 00000000000..f107d5bc69e
770 --- /dev/null
771 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-muParser.patch
772 @@ -0,0 +1,37 @@
773 +From 0928f85bc8fb8215a98c5a115d85269f51f65b5e Mon Sep 17 00:00:00 2001
774 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
775 +Date: Wed, 22 Nov 2017 22:49:16 +0330
776 +Subject: [PATCH] use-external-muParser
777 +
778 +---
779 + meshlabplugins/filter_func/filter_func.pro | 17 -----------------
780 + 1 file changed, 17 deletions(-)
781 +
782 +diff --git a/meshlabplugins/filter_func/filter_func.pro b/meshlabplugins/filter_func/filter_func.pro
783 +index a7cc17a..23d5578 100644
784 +--- a/meshlabplugins/filter_func/filter_func.pro
785 ++++ b/meshlabplugins/filter_func/filter_func.pro
786 +@@ -6,20 +6,3 @@ SOURCES += filter_func.cpp
787 +
788 + TARGET = filter_func
789 +
790 +-INCLUDEPATH += ../../external/muparser_v225/include
791 +-
792 +-# Note: we need static libs so when building muparser lib use
793 +-# ./configure --enable-shared=no
794 +-
795 +-win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/muparser.lib
796 +-win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/muparser.lib
797 +-win32-msvc2010:LIBS += ../../external/lib/win32-msvc2010/muparser.lib
798 +-win32-msvc2012:LIBS += ../../external/lib/win32-msvc2012/muparser.lib
799 +-win32-msvc2013:LIBS += ../../external/lib/win32-msvc2013/muparser.lib
800 +-win32-msvc2015:LIBS += ../../external/lib/win32-msvc2015/muparser.lib
801 +-
802 +-macx:LIBS += $$MACLIBDIR/libmuparser.a
803 +-linux-g++:LIBS += ../../external/lib/linux-g++/libmuparser.a
804 +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libmuparser.a
805 +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libmuparser.a
806 +-win32-g++:LIBS += ../../external/lib/win32-gcc/libmuparser.a
807 +--
808 +2.15.0
809 +
810
811 diff --git a/media-gfx/meshlab/files/2016.12/0001-use-external-openctm.patch b/media-gfx/meshlab/files/2016.12/0001-use-external-openctm.patch
812 new file mode 100644
813 index 00000000000..7c48aa14a74
814 --- /dev/null
815 +++ b/media-gfx/meshlab/files/2016.12/0001-use-external-openctm.patch
816 @@ -0,0 +1,43 @@
817 +From 7af5fa63c7577d4da060a2a8442b2f453023be86 Mon Sep 17 00:00:00 2001
818 +From: Sobhan Mohammadpour <www.sobhan.mohammadpour@×××××.com>
819 +Date: Wed, 22 Nov 2017 22:41:39 +0330
820 +Subject: [PATCH] use-external-openctm
821 +
822 +---
823 + meshlabplugins/io_ctm/io_ctm.pro | 20 --------------------
824 + 1 file changed, 20 deletions(-)
825 +
826 +diff --git a/meshlabplugins/io_ctm/io_ctm.pro b/meshlabplugins/io_ctm/io_ctm.pro
827 +index 479b64e..434e6ad 100644
828 +--- a/meshlabplugins/io_ctm/io_ctm.pro
829 ++++ b/meshlabplugins/io_ctm/io_ctm.pro
830 +@@ -3,26 +3,6 @@ HEADERS += io_ctm.h \
831 + $$VCGDIR/wrap/io_trimesh/import_ctm.h \
832 + $$VCGDIR/wrap/io_trimesh/export_ctm.h
833 + SOURCES += io_ctm.cpp
834 +-INCLUDEPATH += ../../external/OpenCTM-1.0.3/lib
835 + TARGET = io_ctm
836 +
837 +-win32-msvc.net:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
838 +-win32-msvc2005:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
839 +-win32-msvc2008:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
840 +-win32-msvc2010:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
841 +-win32-msvc2012:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
842 +-win32-msvc2015:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
843 +-win32-g++:DEFINES += OPENCTM_STATIC
844 +
845 +-win32-msvc.net:LIBS += ../../external/lib/win32-msvc.net/openctm.lib
846 +-win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/openctm.lib
847 +-win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/openctm.lib
848 +-win32-msvc2010:LIBS += ../../external/lib/win32-msvc2010/openctm.lib
849 +-win32-msvc2012:LIBS += ../../external/lib/win32-msvc2012/openctm.lib
850 +-win32-msvc2015:LIBS += ../../external/lib/win32-msvc2015/openctm.lib
851 +-win32-g++:LIBS += ../../external/lib/win32-gcc/libopenctm.a
852 +-linux-g++:LIBS += ../../external/lib/linux-g++/libopenctm.a
853 +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libopenctm.a
854 +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libopenctm.a
855 +-#macx:LIBS += ../../external/lib/macx/libopenctm.a
856 +-macx:LIBS += $$MACLIBDIR/libopenctm.a
857 +--
858 +2.15.0
859 +
860
861 diff --git a/media-gfx/meshlab/files/2016.12/remove-edit_mutualcorrs.patch b/media-gfx/meshlab/files/2016.12/remove-edit_mutualcorrs.patch
862 new file mode 100644
863 index 00000000000..b372c7baf5e
864 --- /dev/null
865 +++ b/media-gfx/meshlab/files/2016.12/remove-edit_mutualcorrs.patch
866 @@ -0,0 +1,10 @@
867 +--- a/meshlab_full.pro 2017-10-25 21:39:01.438252054 +0200
868 ++++ b/meshlab_full.pro 2017-10-25 21:39:25.417251424 +0200
869 +@@ -66,7 +66,6 @@
870 + meshlabplugins/edit_arc3D \
871 + meshlabplugins/edit_manipulators \
872 + meshlabplugins/edit_measure \
873 +- plugins_experimental/edit_mutualcorrs \
874 + meshlabplugins/edit_paint\
875 + meshlabplugins/edit_pickpoints \
876 + meshlabplugins/edit_point\
877
878 diff --git a/media-gfx/meshlab/files/2016.12/remove-io_TXT.patch b/media-gfx/meshlab/files/2016.12/remove-io_TXT.patch
879 new file mode 100644
880 index 00000000000..3d0eb74429b
881 --- /dev/null
882 +++ b/media-gfx/meshlab/files/2016.12/remove-io_TXT.patch
883 @@ -0,0 +1,10 @@
884 +--- a/meshlab_full.pro 2017-10-25 21:41:57.178247439 +0200
885 ++++ b/meshlab_full.pro 2017-10-25 21:42:11.629247060 +0200
886 +@@ -16,7 +16,6 @@
887 + meshlabplugins/io_x3d \
888 + meshlabplugins/io_expe \
889 + meshlabplugins/io_pdb \
890 +- plugins_experimental/io_TXT \
891 + # Filter plugins
892 + meshlabplugins/filter_aging \
893 + meshlabplugins/filter_ao \
894
895 diff --git a/media-gfx/meshlab/meshlab-2016.12.ebuild b/media-gfx/meshlab/meshlab-2016.12.ebuild
896 new file mode 100644
897 index 00000000000..dcef47388f3
898 --- /dev/null
899 +++ b/media-gfx/meshlab/meshlab-2016.12.ebuild
900 @@ -0,0 +1,101 @@
901 +# Copyright 1999-2017 Gentoo Foundation
902 +# Distributed under the terms of the GNU General Public License v2
903 +
904 +EAPI=6
905 +
906 +inherit qmake-utils
907 +
908 +DESCRIPTION="the open source system for processing and editing 3D triangular meshes"
909 +HOMEPAGE="http://www.meshlab.net"
910 +VCG_VERSION="1.0.1"
911 +SRC_URI="https://github.com/cnr-isti-vclab/meshlab/archive/v${PV}.tar.gz -> ${P}.tar.gz
912 + https://github.com/cnr-isti-vclab/vcglib/archive/v${VCG_VERSION}.tar.gz -> vcglib-${VCG_VERSION}.tar.gz
913 +"
914 +
915 +LICENSE="GPL-2"
916 +SLOT="0"
917 +KEYWORDS="~amd64 ~x86"
918 +IUSE="-minimal"
919 +DEPEND="dev-cpp/eigen:3
920 + dev-cpp/muParser
921 + dev-qt/qtcore:5
922 + dev-qt/qtopengl:5
923 + dev-qt/qtxmlpatterns:5
924 + >=media-gfx/jhead-3.00-r2
925 + media-libs/glew:0
926 + media-libs/qhull
927 + =media-libs/lib3ds-1*
928 + media-libs/openctm
929 + sci-libs/levmar
930 + sci-libs/mpir"
931 +
932 +RDEPEND="${DEPEND}"
933 +
934 +S="${WORKDIR}/meshlab-${PV}/src"
935 +
936 +PATCHES=(
937 + "${FILESDIR}/${PV}/0001-set-shader-and-texture-paths.patch"
938 + "${FILESDIR}/${PV}/0001-update-1.3.3-pluginmanager.patch.patch"
939 + #remove ot working plugins
940 + "${FILESDIR}/${PV}/remove-edit_mutualcorrs.patch"
941 + "${FILESDIR}/${PV}/remove-io_TXT.patch"
942 + #since structure synth doesn't seem to be compiling
943 + "${FILESDIR}/${PV}/0001-disable-filter-ssynth.patch"
944 + #this has been fixed in the tree
945 + "${FILESDIR}/${PV}/0001-disable-edit-quality.patch"
946 + #this causes segfaults
947 + "${FILESDIR}/${PV}/0001-disable-filter-layer.patch"
948 + #for when we use minimal
949 + "${FILESDIR}/${PV}/0001-compile-server.patch"
950 + "${FILESDIR}/${PV}/0001-use-external-lib3ds.patch"
951 + "${FILESDIR}/${PV}/0001-use-external-openctm.patch"
952 + "${FILESDIR}/${PV}/0001-use-external-muParser.patch"
953 + "${FILESDIR}/${PV}/0001-use-external-bzip.patch"
954 + "${FILESDIR}/${PV}/0001-use-external-jhead.patch"
955 + "${FILESDIR}/${PV}/0001-use-external-glew.patch"
956 + #cause gnu stack quickstart related qa
957 + "${FILESDIR}/${PV}/0001-remove-not-sane-plugins.patch"
958 + )
959 +
960 +src_prepare(){
961 + mv "${WORKDIR}/vcglib-${VCG_VERSION}" "${WORKDIR}/vcglib" || die "vcglib mv failed"
962 + default
963 + #proof of patchset
964 + #remove libs that are being used from the system
965 + rm -r "external/lib3ds-1.3.0" || die "rm failed"
966 + rm -r "external/OpenCTM-1.0.3" || die "rm failed"
967 + rm -r "external/muparser_v132" || die "rm failed"
968 + rm -r "external/muparser_v225" || die "rm failed"
969 + rm -r "external/bzip2-1.0.5" || die "rm failed"
970 + rm -r "external/jhead-2.95" || die "rm failed"
971 + rm -r "external/glew-1.5.1" || die "rm failed"
972 + rm -r "external/glew-1.7.0" || die "rm failed"
973 + #we still depend on lm.h
974 + #rm -r "external"
975 + rm -r "distrib/plugins/U3D_W32" || die
976 + rm -r "distrib/plugins/U3D_OSX" || die
977 +}
978 +
979 +src_configure() {
980 + use minimal || eqmake5 -r meshlab_full.pro
981 + use minimal && eqmake5 -r meshlab_mini.pro
982 +}
983 +
984 +src_install() {
985 + dobin distrib/{meshlab,meshlabserver}
986 + dolib distrib/libcommon.so.1.0.0
987 + dosym libcommon.so.1.0.0 /usr/$(get_libdir)/libcommon.so.1
988 + dosym libcommon.so.1 /usr/$(get_libdir)/libcommon.so
989 + exeinto /usr/$(get_libdir)/meshlab/plugins
990 + doexe distrib/plugins/*.so
991 + insinto /usr/share/meshlab/shaders
992 + doins -r distrib/shaders/*
993 + insinto /usr/share/meshlab/plugins
994 + doins -r distrib/plugins/*
995 + insinto /usr/share/meshlab/textures
996 + doins -r distrib/textures/*
997 + insinto /usr/share/meshlab/sample
998 + doins -r distrib/sample/*
999 + newicon "${S}"/meshlab/images/eye512.png "${PN}".png
1000 + make_desktop_entry meshlab "Meshlab" "${PN}" Graphics
1001 +}