summaryrefslogtreecommitdiff
path: root/graphics/clanlib/patches
diff options
context:
space:
mode:
authorwiz <wiz>2000-12-08 01:33:41 +0000
committerwiz <wiz>2000-12-08 01:33:41 +0000
commitdcb93d3b4d29be8f1a7061fa8d5c3ba12ec1548b (patch)
tree2160c3b2966be18e3f1a7f5a5ecd03f7026b93ff /graphics/clanlib/patches
parentcdb0c7fe082aefb197f73b328591d8c27683b750 (diff)
downloadpkgsrc-dcb93d3b4d29be8f1a7061fa8d5c3ba12ec1548b.tar.gz
Fix libraries on ELF.
Shut up compilation warnings.
Diffstat (limited to 'graphics/clanlib/patches')
-rw-r--r--graphics/clanlib/patches/patch-ah26
-rw-r--r--graphics/clanlib/patches/patch-al20
2 files changed, 34 insertions, 12 deletions
diff --git a/graphics/clanlib/patches/patch-ah b/graphics/clanlib/patches/patch-ah
index 41393fb9306..b5b5e04f8eb 100644
--- a/graphics/clanlib/patches/patch-ah
+++ b/graphics/clanlib/patches/patch-ah
@@ -1,7 +1,7 @@
-$NetBSD: patch-ah,v 1.2 1999/11/30 13:24:47 rh Exp $
+$NetBSD: patch-ah,v 1.3 2000/12/08 01:33:42 wiz Exp $
--- Common/clanstring.h.orig Sun Jul 11 13:14:05 1999
-+++ Common/clanstring.h Tue Nov 30 10:28:01 1999
++++ Common/clanstring.h
@@ -65,6 +65,8 @@
#ifndef WIN32
@@ -11,21 +11,25 @@ $NetBSD: patch-ah,v 1.2 1999/11/30 13:24:47 rh Exp $
#endif
#ifdef __BEOS__
-@@ -148,6 +150,9 @@
-
- float float_number = _float_number;
+@@ -141,9 +143,12 @@
+ {
+ char buf[25];
+ buf[0]=0;
++ int precision=4;
+#if (defined(BSD) && BSD >= 199306)
+ snprintf(buf, sizeof buf, "%.*f", precision, (double)_float_number);
+#else
- const char *_float_buffer = fcvt(
- float_number,
- precision,
-@@ -172,6 +177,7 @@
+ int decimal, sign;
+- int precision=4;
+ char temp;
- strcat(buf, ".");
+ float float_number = _float_number;
+@@ -174,6 +179,7 @@
strcat(buf, &float_buffer[decimal]);
-+#endif
copy_strings:
++#endif
int len=0;
+ if (prefix!=NULL) len=strlen(prefix);
+
diff --git a/graphics/clanlib/patches/patch-al b/graphics/clanlib/patches/patch-al
index c9102422031..e0e80863839 100644
--- a/graphics/clanlib/patches/patch-al
+++ b/graphics/clanlib/patches/patch-al
@@ -1,4 +1,4 @@
-$NetBSD: patch-al,v 1.1 2000/09/02 19:22:41 wiz Exp $
+$NetBSD: patch-al,v 1.2 2000/12/08 01:33:42 wiz Exp $
--- Makefile.in.orig Sun Sep 26 18:44:16 1999
+++ Makefile.in
@@ -11,3 +11,21 @@ $NetBSD: patch-al,v 1.1 2000/09/02 19:22:41 wiz Exp $
@ln -s -f libclanlayer1.so.$(D_VERSION_MINOR) libclanlayer1.so.$(D_VERSION_MAJOR)
@ln -s -f libclanlayer1.so.$(D_VERSION_MAJOR) libclanlayer1.so
+@@ -408,7 +408,7 @@
+
+ libclan-display-x11.so: $(OBJF_DISP_X11)
+ @echo "Building dynamic library (libclan-display-x11.so)"
+- @$(LINK_COMMAND) @x_libraries@ -o libclan-display-x11.so.$(D_VERSION_MINOR) $(OBJF_DISP_X11)
++ @$(LINK_COMMAND) -Wl,-R$(X11BASE)/lib @x_libraries@ -o libclan-display-x11.so.$(D_VERSION_MINOR) $(OBJF_DISP_X11)
+
+ libclan-display-ptc.so: $(OBJF_DISP_PTC) libclan-display-x11.so
+ @echo "Building dynamic library (libclan-display-ptc.so)"
+@@ -416,7 +416,7 @@
+
+ libclan-display-glx.so: $(OBJF_DISP_GLX) libclan-display-x11.so
+ @echo "Building dynamic library (libclan-display-glx.so)"
+- @$(LINK_COMMAND) -L . -Wl,-rpath,$(TARGET_PREFIX) libclan-display-x11.so.$(D_VERSION_MINOR) @x_libraries@ -lGL -lGLU -o libclan-display-glx.so.$(D_VERSION_MINOR) $(OBJF_DISP_GLX)
++ @$(LINK_COMMAND) -L . -Wl,-R$(X11BASE)/lib libclan-display-x11.so.$(D_VERSION_MINOR) @x_libraries@ -lGL -lGLU -o libclan-display-glx.so.$(D_VERSION_MINOR) $(OBJF_DISP_GLX)
+
+ libclan-display-ggi.so: $(OBJF_DISP_GGI)
+ @echo "Building dynamic library (libclan-display-ggi.so)"