1 |
commit: f966d5fe4a586801debbc13107639b56933691eb |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 3 13:19:25 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 3 13:19:25 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f966d5fe |
7 |
|
8 |
sci-misc/elmer-post: Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase functions; simplify configure |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-misc/elmer-post/ChangeLog | 16 + |
14 |
sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild | 56 ---- |
15 |
sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild | 60 ++++ |
16 |
sci-misc/elmer-post/elmer-post-9999.ebuild | 66 ++-- |
17 |
.../files/elmer-post-6.0_p4651-bfr-overflow.patch | 16 + |
18 |
.../files/elmer-post-6.0_p4651-impl-dec.patch | 15 + |
19 |
.../files/elmer-post-6.0_p4651-oof.patch | 181 +++++++++++ |
20 |
.../files/elmer-post-6.0_p4651-tcltk8.6.patch | 355 +++++++++++++++++++++ |
21 |
.../files/elmer-post-6.0_p4651-underlinking.patch | 20 ++ |
22 |
sci-misc/elmer-post/metadata.xml | 5 + |
23 |
10 files changed, 703 insertions(+), 87 deletions(-) |
24 |
|
25 |
diff --git a/sci-misc/elmer-post/ChangeLog b/sci-misc/elmer-post/ChangeLog |
26 |
new file mode 100644 |
27 |
index 0000000..a9360f1 |
28 |
--- /dev/null |
29 |
+++ b/sci-misc/elmer-post/ChangeLog |
30 |
@@ -0,0 +1,16 @@ |
31 |
+# ChangeLog for sci-misc/elmer-post |
32 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
33 |
+# $Header: $ |
34 |
+ |
35 |
+*elmer-post-6.0_p4651 (03 Dec 2013) |
36 |
+ |
37 |
+ 03 Dec 2013; Justin Lecher <jlec@g.o> -elmer-post-5.4.1-r1.ebuild, |
38 |
+ +elmer-post-6.0_p4651.ebuild, elmer-post-9999.ebuild, |
39 |
+ +files/elmer-post-6.0_p4651-bfr-overflow.patch, |
40 |
+ +files/elmer-post-6.0_p4651-impl-dec.patch, |
41 |
+ +files/elmer-post-6.0_p4651-oof.patch, |
42 |
+ +files/elmer-post-6.0_p4651-tcltk8.6.patch, |
43 |
+ +files/elmer-post-6.0_p4651-underlinking.patch, +metadata.xml: |
44 |
+ Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase |
45 |
+ functions; simplify configure |
46 |
+ |
47 |
|
48 |
diff --git a/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild |
49 |
deleted file mode 100644 |
50 |
index 459f6ce..0000000 |
51 |
--- a/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild |
52 |
+++ /dev/null |
53 |
@@ -1,56 +0,0 @@ |
54 |
-# Copyright 1999-2007 Gentoo Foundation |
55 |
-# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: $ |
57 |
- |
58 |
-EAPI="4" |
59 |
- |
60 |
-inherit autotools eutils flag-o-matic |
61 |
- |
62 |
-ELMER_ROOT="elmerfem" |
63 |
-MY_PN=${PN/elmer-/} |
64 |
- |
65 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost" |
66 |
-HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
67 |
-SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
68 |
-RESTRICT="mirror" |
69 |
- |
70 |
-LICENSE="GPL-2" |
71 |
-SLOT="0" |
72 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
73 |
-IUSE="opengl X debug" |
74 |
-DEPEND="=dev-lang/tcl-8.4* |
75 |
- =dev-lang/tk-8.4* |
76 |
- opengl? ( virtual/opengl |
77 |
- media-libs/ftgl ) |
78 |
- sci-libs/matc" |
79 |
-RDEPEND="${DEPEND}" |
80 |
- |
81 |
-S="${WORKDIR}/${PV}/post" |
82 |
- |
83 |
-src_unpack() { |
84 |
- unpack ${A} |
85 |
- cd "${S}" |
86 |
- # configure must be executable |
87 |
- chmod +x configure |
88 |
- eautoreconf |
89 |
-} |
90 |
- |
91 |
-src_compile() { |
92 |
- cd "${S}" |
93 |
- local myconf |
94 |
- export FC="gfortran" |
95 |
- export F77="gfortran" |
96 |
- myconf="${myconf} --with-matc" |
97 |
- use opengl && append-cppflags -I/usr/include/FTGL |
98 |
- use debug && |
99 |
- myconf="${myconf} --with-debug" || |
100 |
- myconf="${myconf} --without-debug" |
101 |
- econf $myconf \ |
102 |
- $(use_with X x) \ |
103 |
- || die "econf failed" |
104 |
- emake || die "emake failed" |
105 |
-} |
106 |
- |
107 |
-src_install() { |
108 |
- emake ELMER_POST_DATADIR="${D}/usr/share/elmerpost" DESTDIR="${D}" install || die "emake install failed" |
109 |
-} |
110 |
|
111 |
diff --git a/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild b/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild |
112 |
new file mode 100644 |
113 |
index 0000000..76159c7 |
114 |
--- /dev/null |
115 |
+++ b/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild |
116 |
@@ -0,0 +1,60 @@ |
117 |
+# Copyright 1999-2013 Gentoo Foundation |
118 |
+# Distributed under the terms of the GNU General Public License v2 |
119 |
+# $Header: $ |
120 |
+ |
121 |
+EAPI=5 |
122 |
+ |
123 |
+AUTOTOOLS_AUTORECONF=true |
124 |
+ |
125 |
+inherit autotools-utils flag-o-matic multilib toolchain-funcs |
126 |
+ |
127 |
+ELMER_ROOT="elmerfem" |
128 |
+MY_PN=${PN/elmer-/} |
129 |
+ |
130 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmerpost" |
131 |
+HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
132 |
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz" |
133 |
+ |
134 |
+LICENSE="GPL-2" |
135 |
+SLOT="0" |
136 |
+KEYWORDS="~amd64 ~x86" |
137 |
+IUSE="debug opengl" |
138 |
+ |
139 |
+RDEPEND=" |
140 |
+ dev-lang/tcl |
141 |
+ dev-lang/tk |
142 |
+ opengl? ( |
143 |
+ virtual/opengl |
144 |
+ media-libs/ftgl |
145 |
+ ) |
146 |
+ sci-libs/matc" |
147 |
+DEPEND="${RDEPEND} |
148 |
+ virtual/pkgconfig" |
149 |
+ |
150 |
+S="${WORKDIR}/post" |
151 |
+ |
152 |
+PATCHES=( |
153 |
+ "${FILESDIR}"/${P}-oof.patch |
154 |
+ "${FILESDIR}"/${P}-underlinking.patch |
155 |
+ "${FILESDIR}"/${P}-tcltk8.6.patch |
156 |
+ "${FILESDIR}"/${P}-bfr-overflow.patch |
157 |
+ "${FILESDIR}"/${P}-impl-dec.patch |
158 |
+) |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ use opengl && append-cppflags $($(tc-getPKG_CONFIG) --cflags ftgl) |
162 |
+ autotools-utils_src_prepare |
163 |
+} |
164 |
+ |
165 |
+src_configure() { |
166 |
+ local myeconfargs=( |
167 |
+ $(use_with debug) |
168 |
+ --with-matc |
169 |
+ --with-x |
170 |
+ ) |
171 |
+ autotools-utils_src_configure |
172 |
+} |
173 |
+ |
174 |
+src_install() { |
175 |
+ autotools-utils_src_install ELMER_POST_DATADIR="/usr/share/elmerpost" |
176 |
+} |
177 |
|
178 |
diff --git a/sci-misc/elmer-post/elmer-post-9999.ebuild b/sci-misc/elmer-post/elmer-post-9999.ebuild |
179 |
index 5ad6804..fb87afe 100644 |
180 |
--- a/sci-misc/elmer-post/elmer-post-9999.ebuild |
181 |
+++ b/sci-misc/elmer-post/elmer-post-9999.ebuild |
182 |
@@ -1,58 +1,62 @@ |
183 |
-# Copyright 1999-2007 Gentoo Foundation |
184 |
+# Copyright 1999-2013 Gentoo Foundation |
185 |
# Distributed under the terms of the GNU General Public License v2 |
186 |
# $Header: $ |
187 |
|
188 |
-EAPI="4" |
189 |
+EAPI=5 |
190 |
|
191 |
-inherit autotools eutils flag-o-matic subversion |
192 |
+AUTOTOOLS_AUTORECONF=true |
193 |
+ |
194 |
+inherit autotools-utils flag-o-matic multilib subversion toolchain-funcs |
195 |
|
196 |
ELMER_ROOT="elmerfem" |
197 |
MY_PN=${PN/elmer-/} |
198 |
|
199 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost" |
200 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmerpost" |
201 |
HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
202 |
-#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
203 |
SRC_URI="" |
204 |
-RESTRICT="mirror" |
205 |
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" |
206 |
ESVN_PROJECT="${MY_PN}" |
207 |
|
208 |
LICENSE="GPL-2" |
209 |
SLOT="0" |
210 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
211 |
-IUSE="opengl X debug" |
212 |
-DEPEND="dev-lang/tcl |
213 |
+KEYWORDS="" |
214 |
+IUSE="debug opengl" |
215 |
+ |
216 |
+RDEPEND=" |
217 |
+ dev-lang/tcl |
218 |
dev-lang/tk |
219 |
- opengl? ( virtual/opengl |
220 |
- media-libs/ftgl ) |
221 |
+ opengl? ( |
222 |
+ virtual/opengl |
223 |
+ media-libs/ftgl |
224 |
+ ) |
225 |
sci-libs/matc" |
226 |
-RDEPEND="${DEPEND}" |
227 |
+DEPEND="${RDEPEND} |
228 |
+ virtual/pkgconfig" |
229 |
+ |
230 |
+S="${WORKDIR}/post" |
231 |
|
232 |
-S="${WORKDIR}/${PV}/post" |
233 |
+PATCHES=( |
234 |
+ "${FILESDIR}"/${PN}-6.0_p4651-oof.patch |
235 |
+ "${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch |
236 |
+ "${FILESDIR}"/${PN}-6.0_p4651-tcltk8.6.patch |
237 |
+ "${FILESDIR}"/${PN}-6.0_p4651-bfr-overflow.patch |
238 |
+ "${FILESDIR}"/${PN}-6.0_p4651-impl-dec.patch |
239 |
+) |
240 |
|
241 |
src_prepare() { |
242 |
- #unpack ${A} |
243 |
- cd "${S}" |
244 |
- # configure must be executable |
245 |
- #chmod +x configure |
246 |
- eautoreconf |
247 |
+ use opengl && append-cppflags $($(tc-getPKG_CONFIG) --cflags ftgl) |
248 |
+ autotools-utils_src_prepare |
249 |
} |
250 |
|
251 |
src_configure() { |
252 |
- cd "${S}" |
253 |
- local myconf |
254 |
- export FC="gfortran" |
255 |
- export F77="gfortran" |
256 |
- myconf="${myconf} --with-matc" |
257 |
- use opengl && append-cppflags -I/usr/include/FTGL |
258 |
- use debug && |
259 |
- myconf="${myconf} --with-debug" || |
260 |
- myconf="${myconf} --without-debug" |
261 |
- econf $myconf \ |
262 |
- $(use_with X x) \ |
263 |
- || die "econf failed" |
264 |
+ local myeconfargs=( |
265 |
+ $(use_with debug) |
266 |
+ --with-matc |
267 |
+ --with-x |
268 |
+ ) |
269 |
+ autotools-utils_src_configure |
270 |
} |
271 |
|
272 |
src_install() { |
273 |
- emake ELMER_POST_DATADIR="/usr/share/${MY_PN}" DESTDIR="${D}" install || die "emake install failed" |
274 |
+ autotools-utils_src_install ELMER_POST_DATADIR="/usr/share/elmerpost" |
275 |
} |
276 |
|
277 |
diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch |
278 |
new file mode 100644 |
279 |
index 0000000..b5d7811 |
280 |
--- /dev/null |
281 |
+++ b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch |
282 |
@@ -0,0 +1,16 @@ |
283 |
+ src/sico2elmer/sico2elmerc.c | 2 +- |
284 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
285 |
+ |
286 |
+diff --git a/src/sico2elmer/sico2elmerc.c b/src/sico2elmer/sico2elmerc.c |
287 |
+index 1522030..6ae875c 100755 |
288 |
+--- a/src/sico2elmer/sico2elmerc.c |
289 |
++++ b/src/sico2elmer/sico2elmerc.c |
290 |
+@@ -27,7 +27,7 @@ void STDCALLBULL FC_FUNC(postgrid,POSTGRID) (float *xi, /* unscaled x coordinat |
291 |
+ int imax, jmax, kcmax, ktmax; |
292 |
+ float *staggered_grid[2]; |
293 |
+ float actual_scaled_coord[3]; |
294 |
+- char groupid[4], filename[80], yes_no, *suffix=".ep"; |
295 |
++ char groupid[8], filename[80], yes_no, *suffix=".ep"; |
296 |
+ FILE *ptFile; |
297 |
+ |
298 |
+ /* constants */ |
299 |
|
300 |
diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch |
301 |
new file mode 100644 |
302 |
index 0000000..30c8259 |
303 |
--- /dev/null |
304 |
+++ b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch |
305 |
@@ -0,0 +1,15 @@ |
306 |
+ src/screensave.c | 1 + |
307 |
+ 1 file changed, 1 insertion(+) |
308 |
+ |
309 |
+diff --git a/src/screensave.c b/src/screensave.c |
310 |
+index ae4f577..810f54c 100755 |
311 |
+--- a/src/screensave.c |
312 |
++++ b/src/screensave.c |
313 |
+@@ -26,6 +26,7 @@ |
314 |
+ #include <math.h> |
315 |
+ #include <stdlib.h> |
316 |
+ #include <strings.h> |
317 |
++#include <string.h> |
318 |
+ |
319 |
+ |
320 |
+ #include <GL/gl.h> |
321 |
|
322 |
diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch |
323 |
new file mode 100644 |
324 |
index 0000000..cd93687 |
325 |
--- /dev/null |
326 |
+++ b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch |
327 |
@@ -0,0 +1,181 @@ |
328 |
+ src/ElmerPost.c | 2 +- |
329 |
+ src/Makefile.am | 16 ++++++++-------- |
330 |
+ src/camera/context.cc | 2 +- |
331 |
+ src/camera/file.cc | 2 +- |
332 |
+ src/camera/glp.h | 4 ++-- |
333 |
+ src/elmerpost.h | 2 +- |
334 |
+ src/fttext.cpp | 2 +- |
335 |
+ src/graphics/graphics.h | 2 +- |
336 |
+ src/second.c | 2 +- |
337 |
+ src/sico2elmer/sico2elmerc.c | 2 +- |
338 |
+ 10 files changed, 18 insertions(+), 18 deletions(-) |
339 |
+ |
340 |
+diff --git a/src/ElmerPost.c b/src/ElmerPost.c |
341 |
+index 2a238b0..9c63113 100644 |
342 |
+--- a/src/ElmerPost.c |
343 |
++++ b/src/ElmerPost.c |
344 |
+@@ -45,7 +45,7 @@ |
345 |
+ |
346 |
+ #define MODULE_MAIN |
347 |
+ #include "elmerpost.h" |
348 |
+-#include "../config.h" |
349 |
++#include "config.h" |
350 |
+ |
351 |
+ #include <tcl.h> |
352 |
+ #include <tk.h> |
353 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
354 |
+index f4234a1..cd35e72 100755 |
355 |
+--- a/src/Makefile.am |
356 |
++++ b/src/Makefile.am |
357 |
+@@ -98,31 +98,31 @@ install-data-local: |
358 |
+ |
359 |
+ @echo "Instaling help to ${ELMER_POST_DATADIR}/help" |
360 |
+ mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/help |
361 |
+- cp -r help/* $(DESTDIR)$(ELMER_POST_DATADIR)/help |
362 |
++ cp -r $(srcdir)/help/* $(DESTDIR)$(ELMER_POST_DATADIR)/help |
363 |
+ rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/help -name .svn` |
364 |
+ |
365 |
+ @echo "Instaling tcl scripts to ${ELMER_POST_DATADIR}/tcl" |
366 |
+ mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/tcl |
367 |
+- cp -r tcl/* $(DESTDIR)$(ELMER_POST_DATADIR)/tcl |
368 |
++ cp -r $(srcdir)/tcl/* $(DESTDIR)$(ELMER_POST_DATADIR)/tcl |
369 |
+ rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/tcl -name .svn` |
370 |
+ |
371 |
+ @echo "Instaling initialization scripts to ${ELMER_POST_DATADIR}/lib" |
372 |
+ mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/lib |
373 |
+- cp -r lib/* $(DESTDIR)$(ELMER_POST_DATADIR)/lib |
374 |
++ cp -r $(srcdir)/lib/* $(DESTDIR)$(ELMER_POST_DATADIR)/lib |
375 |
+ rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/lib -name .svn` |
376 |
+ |
377 |
+ @echo "Installing fonts to $(ELMER_POST_DATADIR)/fonts" |
378 |
+ mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/fonts |
379 |
+- cp -r fonts/* $(DESTDIR)$(ELMER_POST_DATADIR)/fonts |
380 |
++ cp -r $(srcdir)/fonts/* $(DESTDIR)$(ELMER_POST_DATADIR)/fonts |
381 |
+ rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/fonts -name .svn` |
382 |
+ # |
383 |
+ # Copy the help and tcl |
384 |
+ # |
385 |
+ dist-hook: |
386 |
+- cp -r tcl $(distdir) |
387 |
+- cp -r help $(distdir) |
388 |
+- cp -r lib $(distdir) |
389 |
+- cp -r fonts $(distdir) |
390 |
++ cp -r $(srcdir)/tcl $(distdir) |
391 |
++ cp -r $(srcdir)/help $(distdir) |
392 |
++ cp -r $(srcdir)/lib $(distdir) |
393 |
++ cp -r $(srcdir)/fonts $(distdir) |
394 |
+ rm -rf `find $(distdir)/ -name .svn` |
395 |
+ rm -rf `find $(distdir)/ -name CVS` |
396 |
+ rm -rf `find $(distdir)/ -name \#*` |
397 |
+diff --git a/src/camera/context.cc b/src/camera/context.cc |
398 |
+index c2bcbd4..e7926b3 100755 |
399 |
+--- a/src/camera/context.cc |
400 |
++++ b/src/camera/context.cc |
401 |
+@@ -38,7 +38,7 @@ |
402 |
+ // Include necessary headers. |
403 |
+ // |
404 |
+ |
405 |
+-#include <../../config.h> |
406 |
++#include <config.h> |
407 |
+ |
408 |
+ #include "glp.h" |
409 |
+ #include <math.h> |
410 |
+diff --git a/src/camera/file.cc b/src/camera/file.cc |
411 |
+index 1f4cd30..6544830 100755 |
412 |
+--- a/src/camera/file.cc |
413 |
++++ b/src/camera/file.cc |
414 |
+@@ -47,7 +47,7 @@ |
415 |
+ // |
416 |
+ |
417 |
+ |
418 |
+-#include <../../config.h> |
419 |
++#include <config.h> |
420 |
+ |
421 |
+ #include <stdio.h> |
422 |
+ #include <stdlib.h> |
423 |
+diff --git a/src/camera/glp.h b/src/camera/glp.h |
424 |
+index 8c65318..31a2e49 100755 |
425 |
+--- a/src/camera/glp.h |
426 |
++++ b/src/camera/glp.h |
427 |
+@@ -35,7 +35,7 @@ |
428 |
+ |
429 |
+ #ifndef _GL_GLP_H_ |
430 |
+ # define _GL_GLP_H_ |
431 |
+-#include "../../config.h" |
432 |
++#include "config.h" |
433 |
+ |
434 |
+ #if defined(WIN32) ||defined(MINGW32) |
435 |
+ #include <windows.h> |
436 |
+@@ -49,7 +49,7 @@ |
437 |
+ // Include necessary headers. |
438 |
+ // |
439 |
+ #include <GL/gl.h> |
440 |
+-#include "../../config.h" |
441 |
++#include "config.h" |
442 |
+ |
443 |
+ |
444 |
+ |
445 |
+diff --git a/src/elmerpost.h b/src/elmerpost.h |
446 |
+index 53560c0..7d312df 100755 |
447 |
+--- a/src/elmerpost.h |
448 |
++++ b/src/elmerpost.h |
449 |
+@@ -44,7 +44,7 @@ |
450 |
+ * |
451 |
+ ******************************************************************************/ |
452 |
+ |
453 |
+-#include "../config.h" |
454 |
++#include "config.h" |
455 |
+ |
456 |
+ #if defined(WIN32) || defined(MINGW32) |
457 |
+ #include <windows.h> |
458 |
+diff --git a/src/fttext.cpp b/src/fttext.cpp |
459 |
+index 9ee88f8..48a3e0a 100644 |
460 |
+--- a/src/fttext.cpp |
461 |
++++ b/src/fttext.cpp |
462 |
+@@ -10,7 +10,7 @@ |
463 |
+ // Date: 15. Jan 2008 |
464 |
+ //----------------------------------------------------------------------------------- |
465 |
+ #if defined(HAVE_CONFIG_H) |
466 |
+-#include "../config.h" |
467 |
++#include "config.h" |
468 |
+ #endif |
469 |
+ |
470 |
+ #if defined(HAVE_FTGL_NEW) || defined(HAVE_FTGL_OLD) |
471 |
+diff --git a/src/graphics/graphics.h b/src/graphics/graphics.h |
472 |
+index 6e702c1..5d6d81b 100755 |
473 |
+--- a/src/graphics/graphics.h |
474 |
++++ b/src/graphics/graphics.h |
475 |
+@@ -67,7 +67,7 @@ |
476 |
+ * |
477 |
+ ******************************************************************************/ |
478 |
+ |
479 |
+-#include "../../config.h" |
480 |
++#include "config.h" |
481 |
+ |
482 |
+ #ifndef MINGW32 |
483 |
+ |
484 |
+diff --git a/src/second.c b/src/second.c |
485 |
+index b719556..128e404 100755 |
486 |
+--- a/src/second.c |
487 |
++++ b/src/second.c |
488 |
+@@ -45,7 +45,7 @@ |
489 |
+ ******************************************************************************/ |
490 |
+ |
491 |
+ |
492 |
+-#include "../config.h" |
493 |
++#include "config.h" |
494 |
+ #ifndef WIN32 |
495 |
+ |
496 |
+ #include <sys/types.h> |
497 |
+diff --git a/src/sico2elmer/sico2elmerc.c b/src/sico2elmer/sico2elmerc.c |
498 |
+index 1522030..23f3abb 100755 |
499 |
+--- a/src/sico2elmer/sico2elmerc.c |
500 |
++++ b/src/sico2elmer/sico2elmerc.c |
501 |
+@@ -1,6 +1,6 @@ |
502 |
+ #include "sico2elmer.h" |
503 |
+ |
504 |
+-#include "../../config.h" |
505 |
++#include "config.h" |
506 |
+ |
507 |
+ /* |
508 |
+ jv: added fortran function name and char ptr macros to (hopefully) enhance portability |
509 |
|
510 |
diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch |
511 |
new file mode 100644 |
512 |
index 0000000..31596e6 |
513 |
--- /dev/null |
514 |
+++ b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch |
515 |
@@ -0,0 +1,355 @@ |
516 |
+ src/ElmerPost.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ |
517 |
+ src/modules/matctcl.c | 8 ++++++++ |
518 |
+ src/modules/readfile.c | 4 ++++ |
519 |
+ src/modules/transforms.c | 40 ++++++++++++++++++++++++++++++++++++++++ |
520 |
+ src/screensave.c | 12 ++++++++++++ |
521 |
+ 5 files changed, 112 insertions(+) |
522 |
+ |
523 |
+diff --git a/src/ElmerPost.c b/src/ElmerPost.c |
524 |
+index 2a238b0..b9e8df5 100644 |
525 |
+--- a/src/ElmerPost.c |
526 |
++++ b/src/ElmerPost.c |
527 |
+@@ -183,7 +183,11 @@ static int SetParentObject( ClientData cl,Tcl_Interp *interp,int argc,char **arg |
528 |
+ obj = (object_t *)obj_find( &VisualObject,argv[1] ); |
529 |
+ if ( !obj ) |
530 |
+ { |
531 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
532 |
+ sprintf( interp->result, "parent: no such object [%s]", argv[1] ); |
533 |
++#else |
534 |
++ sprintf( Tcl_GetStringResult(interp), "parent: no such object [%s]", argv[1] ); |
535 |
++#endif |
536 |
+ return TCL_ERROR; |
537 |
+ } |
538 |
+ |
539 |
+@@ -346,13 +350,21 @@ static int ClipPlane( ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
540 |
+ int i,id; |
541 |
+ |
542 |
+ if ( argc != 6 ) { |
543 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
544 |
+ sprintf( interp->result, "clip: Wrong number of arguments.\n" ); |
545 |
++#else |
546 |
++ sprintf( Tcl_GetStringResult(interp), "clip: Wrong number of arguments.\n" ); |
547 |
++#endif |
548 |
+ return TCL_ERROR; |
549 |
+ } |
550 |
+ |
551 |
+ sscanf( argv[1], "%d", &id ); |
552 |
+ if ( id < 0 || id > 5 ) { |
553 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
554 |
+ sprintf( interp->result, "clip: Plane argument should be from a int from 0..5.\n" ); |
555 |
++#else |
556 |
++ sprintf( Tcl_GetStringResult(interp), "clip: Plane argument should be from a int from 0..5.\n" ); |
557 |
++#endif |
558 |
+ return TCL_ERROR; |
559 |
+ } |
560 |
+ CurrentObject->ClipPlane[id] = id; |
561 |
+@@ -779,7 +791,11 @@ static int TimeStep(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
562 |
+ |
563 |
+ if ( argc != 2 ) |
564 |
+ { |
565 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
566 |
+ sprintf( interp->result, "c_TimeStep: wrong number of parameters.\n" ); |
567 |
++#else |
568 |
++ sprintf( Tcl_GetStringResult(interp), "c_TimeStep: wrong number of parameters.\n" ); |
569 |
++#endif |
570 |
+ return TCL_ERROR; |
571 |
+ } |
572 |
+ |
573 |
+@@ -790,7 +806,11 @@ static int TimeStep(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
574 |
+ |
575 |
+ if ( n < 0 || n >= ElementModel->NofTimesteps ) |
576 |
+ { |
577 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
578 |
+ sprintf( interp->result, "c_TimeStep: Invalid timestep.\n" ); |
579 |
++#else |
580 |
++ sprintf( Tcl_GetStringResult(interp), "c_TimeStep: Invalid timestep.\n" ); |
581 |
++#endif |
582 |
+ return TCL_ERROR; |
583 |
+ } |
584 |
+ |
585 |
+@@ -1028,7 +1048,11 @@ static int CurrentCamera(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
586 |
+ |
587 |
+ if ( argc != 2 ) |
588 |
+ { |
589 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
590 |
+ sprintf( interp->result, "camera: wrong number of arguments\n" ); |
591 |
++#else |
592 |
++ sprintf( Tcl_GetStringResult(interp), "camera: wrong number of arguments\n" ); |
593 |
++#endif |
594 |
+ return TCL_ERROR; |
595 |
+ } |
596 |
+ |
597 |
+@@ -1038,7 +1062,11 @@ static int CurrentCamera(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
598 |
+ if ( strcmp( cam->Name, argv[1] ) == 0 ) |
599 |
+ { |
600 |
+ cam_set_current( cam ); |
601 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
602 |
+ sprintf( interp->result, "%d", i ); |
603 |
++#else |
604 |
++ sprintf( Tcl_GetStringResult(interp), "%d", i ); |
605 |
++#endif |
606 |
+ return TCL_OK; |
607 |
+ } |
608 |
+ } |
609 |
+@@ -1548,7 +1576,11 @@ static int ShowString( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
610 |
+ |
611 |
+ if ( argc < 5 ) |
612 |
+ { |
613 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
614 |
+ sprintf( interp->result, "string: Wrong number of arguments.\n" ); |
615 |
++#else |
616 |
++ sprintf( Tcl_GetStringResult(interp), "string: Wrong number of arguments.\n" ); |
617 |
++#endif |
618 |
+ return TCL_ERROR; |
619 |
+ } |
620 |
+ |
621 |
+@@ -1587,7 +1619,11 @@ static int SetFont( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
622 |
+ int i; |
623 |
+ if ( argc < 1 ) |
624 |
+ { |
625 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
626 |
+ sprintf( interp->result, "Set font: Wrong number of arguments.\n" ); |
627 |
++#else |
628 |
++ sprintf( Tcl_GetStringResult(interp), "Set font: Wrong number of arguments.\n" ); |
629 |
++#endif |
630 |
+ return TCL_ERROR; |
631 |
+ } |
632 |
+ |
633 |
+@@ -2146,7 +2182,11 @@ static int WindowSize( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
634 |
+ |
635 |
+ |
636 |
+ if ( argc < 3 ) { |
637 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
638 |
+ sprintf( interp->result, "Usage: winsize width height" ); |
639 |
++#else |
640 |
++ sprintf( Tcl_GetStringResult(interp), "Usage: winsize width height" ); |
641 |
++#endif |
642 |
+ return TCL_ERROR; |
643 |
+ } |
644 |
+ |
645 |
+@@ -2184,7 +2224,11 @@ static int WindowSize( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
646 |
+ static int WindowPosition( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
647 |
+ { |
648 |
+ if ( argc < 3 ) { |
649 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
650 |
+ sprintf( interp->result, "Usage: winpos xpos ypos" ); |
651 |
++#else |
652 |
++ sprintf( Tcl_GetStringResult(interp), "Usage: winpos xpos ypos" ); |
653 |
++#endif |
654 |
+ return TCL_ERROR; |
655 |
+ } |
656 |
+ |
657 |
+@@ -2210,7 +2254,11 @@ static int MPlayer( ClientData cl, Tcl_Interp *interp, int argc, char **argv ) |
658 |
+ #else |
659 |
+ |
660 |
+ if( argc < 2 ) { |
661 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
662 |
+ sprintf( interp->result, "Usage: mplayer filename"); |
663 |
++#else |
664 |
++ sprintf( Tcl_GetStringResult(interp), "Usage: mplayer filename"); |
665 |
++#endif |
666 |
+ return TCL_ERROR; |
667 |
+ } |
668 |
+ |
669 |
+diff --git a/src/modules/matctcl.c b/src/modules/matctcl.c |
670 |
+index 4d6b64f..b69f9ba 100755 |
671 |
+--- a/src/modules/matctcl.c |
672 |
++++ b/src/modules/matctcl.c |
673 |
+@@ -79,11 +79,19 @@ static VARIABLE *matc_tcl( VARIABLE *ptr ) |
674 |
+ |
675 |
+ FREEMEM( command ); |
676 |
+ |
677 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
678 |
+ if ( TCLInterp->result && (n=strlen(TCLInterp->result))>0 ) |
679 |
+ { |
680 |
+ res = var_temp_new( TYPE_STRING,1,n ); |
681 |
+ for( i=0; i<n; i++ ) M( res,0,i ) = TCLInterp->result[i]; |
682 |
+ } |
683 |
++#else |
684 |
++ if ( Tcl_GetStringResult(TCLInterp) && (n=strlen(Tcl_GetStringResult(TCLInterp)))>0 ) |
685 |
++ { |
686 |
++ res = var_temp_new( TYPE_STRING,1,n ); |
687 |
++ for( i=0; i<n; i++ ) M( res,0,i ) = Tcl_GetStringResult(TCLInterp)[i]; |
688 |
++ } |
689 |
++#endif |
690 |
+ |
691 |
+ return res; |
692 |
+ } |
693 |
+diff --git a/src/modules/readfile.c b/src/modules/readfile.c |
694 |
+index 254601c..0bcc8f7 100755 |
695 |
+--- a/src/modules/readfile.c |
696 |
++++ b/src/modules/readfile.c |
697 |
+@@ -90,7 +90,11 @@ static int epReadFile( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
698 |
+ fp = fopen( argv[1], "r" ); |
699 |
+ if ( !fp ) |
700 |
+ { |
701 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
702 |
+ sprintf( interp->result, "ReadModel: can't open file [%s]\n",argv[1] ); |
703 |
++#else |
704 |
++ sprintf( Tcl_GetStringResult(interp), "ReadModel: can't open file [%s]\n",argv[1] ); |
705 |
++#endif |
706 |
+ return TCL_ERROR; |
707 |
+ } |
708 |
+ |
709 |
+diff --git a/src/modules/transforms.c b/src/modules/transforms.c |
710 |
+index 19808ff..4038210 100755 |
711 |
+--- a/src/modules/transforms.c |
712 |
++++ b/src/modules/transforms.c |
713 |
+@@ -72,7 +72,11 @@ static int TrnPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
714 |
+ |
715 |
+ if ( argc != 2 ) |
716 |
+ { |
717 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
718 |
+ sprintf( interp->result, "cTrnPriority: wrong number of parameters\n" ); |
719 |
++#else |
720 |
++ sprintf( Tcl_GetStringResult(interp), "cTrnPriority: wrong number of parameters\n" ); |
721 |
++#endif |
722 |
+ return TCL_ERROR; |
723 |
+ } |
724 |
+ |
725 |
+@@ -80,7 +84,11 @@ static int TrnPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
726 |
+ |
727 |
+ if ( n <= 0 ) |
728 |
+ { |
729 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
730 |
+ sprintf( interp->result, "cTrnPriority: wrong number of parameters\n" ); |
731 |
++#else |
732 |
++ sprintf( Tcl_GetStringResult(interp), "cTrnPriority: wrong number of parameters\n" ); |
733 |
++#endif |
734 |
+ return TCL_ERROR; |
735 |
+ } |
736 |
+ |
737 |
+@@ -96,7 +104,11 @@ static int RotPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
738 |
+ |
739 |
+ if ( argc != 2 ) |
740 |
+ { |
741 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
742 |
+ sprintf( interp->result, "cRotPrioryty: wrong number of parameters\n" ); |
743 |
++#else |
744 |
++ sprintf( Tcl_GetStringResult(interp), "cRotPrioryty: wrong number of parameters\n" ); |
745 |
++#endif |
746 |
+ return TCL_ERROR; |
747 |
+ } |
748 |
+ |
749 |
+@@ -104,7 +116,11 @@ static int RotPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
750 |
+ |
751 |
+ if ( n <= 0 ) |
752 |
+ { |
753 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
754 |
+ sprintf( interp->result, "cRotPriority: wrong number of parameters\n" ); |
755 |
++#else |
756 |
++ sprintf( Tcl_GetStringResult(interp), "cRotPriority: wrong number of parameters\n" ); |
757 |
++#endif |
758 |
+ return TCL_ERROR; |
759 |
+ } |
760 |
+ |
761 |
+@@ -130,7 +146,11 @@ static int Rotate(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
762 |
+ |
763 |
+ if ( argc != 4 ) |
764 |
+ { |
765 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
766 |
+ sprintf( interp->result, "cRotate: wrong number of parameters\n" ); |
767 |
++#else |
768 |
++ sprintf( Tcl_GetStringResult(interp), "cRotate: wrong number of parameters\n" ); |
769 |
++#endif |
770 |
+ return TCL_ERROR; |
771 |
+ } |
772 |
+ |
773 |
+@@ -138,7 +158,11 @@ static int Rotate(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
774 |
+ |
775 |
+ if ( n <= 0 ) |
776 |
+ { |
777 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
778 |
+ sprintf( interp->result, "cRotate: wrong number of parameters\n" ); |
779 |
++#else |
780 |
++ sprintf( Tcl_GetStringResult(interp), "cRotate: wrong number of parameters\n" ); |
781 |
++#endif |
782 |
+ return TCL_ERROR; |
783 |
+ } |
784 |
+ |
785 |
+@@ -156,7 +180,11 @@ static int Scale(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
786 |
+ |
787 |
+ if ( argc != 4 ) |
788 |
+ { |
789 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
790 |
+ sprintf( interp->result, "cScale: wrong number of parameters\n" ); |
791 |
++#else |
792 |
++ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" ); |
793 |
++#endif |
794 |
+ return TCL_ERROR; |
795 |
+ } |
796 |
+ |
797 |
+@@ -164,7 +192,11 @@ static int Scale(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
798 |
+ |
799 |
+ if ( n <= 0 ) |
800 |
+ { |
801 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
802 |
+ sprintf( interp->result, "cScale: wrong number of parameters\n" ); |
803 |
++#else |
804 |
++ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" ); |
805 |
++#endif |
806 |
+ return TCL_ERROR; |
807 |
+ } |
808 |
+ |
809 |
+@@ -182,13 +214,21 @@ static int Translate(ClientData cl,Tcl_Interp *interp,int argc,char **argv) |
810 |
+ |
811 |
+ if ( argc != 4 ) |
812 |
+ { |
813 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
814 |
+ sprintf( interp->result, "cScale: wrong number of parameters\n" ); |
815 |
++#else |
816 |
++ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" ); |
817 |
++#endif |
818 |
+ return TCL_ERROR; |
819 |
+ } |
820 |
+ |
821 |
+ if ( (n = sscanf( argv[3], "%lf %lf %lf", &x,&y,&z ) ) <= 0 ) |
822 |
+ { |
823 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
824 |
+ sprintf( interp->result, "cScale: wrong number of parameters\n" ); |
825 |
++#else |
826 |
++ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" ); |
827 |
++#endif |
828 |
+ return TCL_ERROR; |
829 |
+ } |
830 |
+ |
831 |
+diff --git a/src/screensave.c b/src/screensave.c |
832 |
+index ae4f577..703fe24 100755 |
833 |
+--- a/src/screensave.c |
834 |
++++ b/src/screensave.c |
835 |
+@@ -56,7 +56,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
836 |
+ sprintf( interp->result, |
837 |
+ "screensave: can't open [%s] for writing!\n", argv[1] ); |
838 |
+ #else |
839 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
840 |
+ sprintf( interp->result, |
841 |
++#else |
842 |
++ sprintf( Tcl_GetStringResult(interp), |
843 |
++#endif |
844 |
+ "screensave: can't open [%s] for writing:\n%s\n", |
845 |
+ argv[1], strerror(errno) ); |
846 |
+ #endif |
847 |
+@@ -76,7 +80,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
848 |
+ sprintf( interp->result, |
849 |
+ "screensave: can't allocate enough memory!\n" ); |
850 |
+ #else |
851 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
852 |
+ sprintf( interp->result, |
853 |
++#else |
854 |
++ sprintf( Tcl_GetStringResult(interp), |
855 |
++#endif |
856 |
+ "screensave: can't allocate enough memory:\n%s\n", |
857 |
+ strerror(errno) ); |
858 |
+ #endif |
859 |
+@@ -100,7 +108,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv ) |
860 |
+ sprintf( interp->result, |
861 |
+ "screensave: error writing to [%s]!\n", argv[1] ); |
862 |
+ #else |
863 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
864 |
+ sprintf( interp->result, |
865 |
++#else |
866 |
++ sprintf( Tcl_GetStringResult(interp), |
867 |
++#endif |
868 |
+ "screensave: error writing to [%s]:\n%s\n", |
869 |
+ argv[1], strerror(errno) ); |
870 |
+ #endif |
871 |
|
872 |
diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch |
873 |
new file mode 100644 |
874 |
index 0000000..45e0d3e |
875 |
--- /dev/null |
876 |
+++ b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch |
877 |
@@ -0,0 +1,20 @@ |
878 |
+ src/Makefile.am | 4 +++- |
879 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
880 |
+ |
881 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
882 |
+index f4234a1..6d99d31 100755 |
883 |
+--- a/src/Makefile.am |
884 |
++++ b/src/Makefile.am |
885 |
+@@ -23,9 +23,11 @@ ElmerPost_LDADD=\ |
886 |
+ ./visuals/libvisuals.a \ |
887 |
+ ./graphics/libgraphics.a \ |
888 |
+ ./glaux/libglaux.a \ |
889 |
+- ./tk/libtk.a |
890 |
++ ./tk/libtk.a \ |
891 |
++ -lX11 |
892 |
+ |
893 |
+ QueryGLXExt_SOURCES=QueryGLXExt.c |
894 |
++QueryGLXExt_LDADD=-lX11 |
895 |
+ |
896 |
+ all-local: screensave.so |
897 |
+ clean-local: |
898 |
|
899 |
diff --git a/sci-misc/elmer-post/metadata.xml b/sci-misc/elmer-post/metadata.xml |
900 |
new file mode 100644 |
901 |
index 0000000..897aa2e |
902 |
--- /dev/null |
903 |
+++ b/sci-misc/elmer-post/metadata.xml |
904 |
@@ -0,0 +1,5 @@ |
905 |
+<?xml version="1.0" encoding="UTF-8"?> |
906 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
907 |
+<pkgmetadata> |
908 |
+ <herd>sci</herd> |
909 |
+</pkgmetadata> |