From 30adfd5286f0c43957329a7f75999ec08eee7320 Mon Sep 17 00:00:00 2001
From: Alexey Dokuchaev <danfe@FreeBSD.org>
Date: Fri, 29 Jun 2007 10:29:39 +0000
Subject: - Fix the build with recent GCC [1] - Clean up pkg-descr, remove
 obvious piece of advice

Reported by:	pointyhat (logs) [1]
---
 graphics/dore/files/patch-examples_util_preview.c   | 19 +++++++++++++++++++
 graphics/dore/files/patch-examples_util_text.c      | 11 +++++++++++
 graphics/dore/files/patch-examples_util_transform.c | 19 +++++++++++++++++++
 graphics/dore/pkg-descr                             | 17 +++++++----------
 4 files changed, 56 insertions(+), 10 deletions(-)
 create mode 100644 graphics/dore/files/patch-examples_util_preview.c
 create mode 100644 graphics/dore/files/patch-examples_util_text.c
 create mode 100644 graphics/dore/files/patch-examples_util_transform.c

diff --git a/graphics/dore/files/patch-examples_util_preview.c b/graphics/dore/files/patch-examples_util_preview.c
new file mode 100644
index 000000000000..e601a865ff9d
--- /dev/null
+++ b/graphics/dore/files/patch-examples_util_preview.c
@@ -0,0 +1,19 @@
+--- examples/util/preview.c.orig	Fri Jan 13 04:13:44 1995
++++ examples/util/preview.c	Fri Jun 29 17:20:09 2007
+@@ -64,6 +64,8 @@
+ 
+ 
+ 
++static DtObject MakeNewDefinitionGroup(), MakeNewDisplayGroup();
++static MakeNewView();
+ 
+ void view_preview (
+     DtObject user_view,
+@@ -71,7 +73,6 @@
+     DtInt save_list[])
+ {
+ 	DtObject new_device, new_view, new_definition_group, new_display_group;
+-	DtObject MakeNewDefinitionGroup(), MakeNewDisplayGroup();
+ 
+ 	MakeNewView(&new_device, &new_view);
+ 	new_definition_group = MakeNewDefinitionGroup();
diff --git a/graphics/dore/files/patch-examples_util_text.c b/graphics/dore/files/patch-examples_util_text.c
new file mode 100644
index 000000000000..237e4952a6ae
--- /dev/null
+++ b/graphics/dore/files/patch-examples_util_text.c
@@ -0,0 +1,11 @@
+--- examples/util/text.c.orig	Fri Jan 13 04:13:46 1995
++++ examples/util/text.c	Fri Jun 29 17:15:09 2007
+@@ -56,6 +56,8 @@
+ words, the string "H   ,(2)   O" will give the same results as "H,(2)O".
+ */
+ 
++static int gettok();
++
+ DtObject subscript (
+     char *str)
+ {
diff --git a/graphics/dore/files/patch-examples_util_transform.c b/graphics/dore/files/patch-examples_util_transform.c
new file mode 100644
index 000000000000..1559286de9d7
--- /dev/null
+++ b/graphics/dore/files/patch-examples_util_transform.c
@@ -0,0 +1,19 @@
+--- examples/util/transform.c.orig	Fri Jun 29 17:19:27 2007
++++ examples/util/transform.c	Fri Jun 29 17:18:15 2007
+@@ -47,10 +47,12 @@
+ static DtInt transcount=0, arraysize=0;
+ 
+ /* prototypes for static functions */
+-transform_matrix (DtMatrix4x4, DtInt, DtReal, DtCompType);
+-translate (DtMatrix4x4, int, DtReal, DtCompType);
+-scale(DtMatrix4x4, int, DtReal, DtCompType);
+-rotate(DtMatrix4x4, int, int, DtReal, DtCompType);
++static transform_matrix (DtMatrix4x4, DtInt, DtReal, DtCompType);
++static translate (DtMatrix4x4, int, DtReal, DtCompType);
++static scale(DtMatrix4x4, int, DtReal, DtCompType);
++static rotate(DtMatrix4x4, int, int, DtReal, DtCompType);
++static load_identity(DtMatrix4x4);
++static load_matrix(DtMatrix4x4, DtMatrix4x4);
+ 
+ 
+ /*
diff --git a/graphics/dore/pkg-descr b/graphics/dore/pkg-descr
index fe484fa80e25..7180419a2881 100644
--- a/graphics/dore/pkg-descr
+++ b/graphics/dore/pkg-descr
@@ -1,13 +1,10 @@
 Dore is a powerful three-dimensional graphics library that includes such
 features as:
 
-       -   a choice of rendering styles, from dynamic to photorealistic
-       -   advanced  graphics  features including shadows, transparency
-	   and reflections
-       -   ease of use
-       -   extendability
-       -   portability, platform independence
-       -   X11 Window support
-
-See the Docs subdirectory of the unpacked port (make extract; cd work) for
-more information.
+    - A choice of rendering styles, from dynamic to photorealistic
+    - Advanced graphics features including shadows, transparency,
+      and reflections
+    - Ease of use
+    - Extendibility
+    - Portability, platform independence
+    - X11 Window support
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0