pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mbone/vic Add DragonFly support. Fix compilation with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0ae68c92aba
branches:  trunk
changeset: 508894:a0ae68c92aba
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Feb 27 15:49:56 2006 +0000

description:
Add DragonFly support. Fix compilation with GCC 3.4+:
When method_ is not set, assume it means the default dither algorithm,
set it to NULL in disable(). This can also avoid possible segfaults.
Bump revision.

diffstat:

 mbone/vic/Makefile         |   4 ++--
 mbone/vic/distinfo         |  18 +++++++++---------
 mbone/vic/patches/patch-af |   6 +++---
 mbone/vic/patches/patch-ap |  22 +++++++++++++++++-----
 mbone/vic/patches/patch-aq |  23 ++++++++++++++++++-----
 mbone/vic/patches/patch-ar |  22 +++++++++++++++++-----
 mbone/vic/patches/patch-as |  22 +++++++++++++++++-----
 mbone/vic/patches/patch-at |  22 +++++++++++++++++-----
 mbone/vic/patches/patch-au |  22 +++++++++++++++++-----
 mbone/vic/patches/patch-av |  24 ++++++++++++++++++------
 10 files changed, 135 insertions(+), 50 deletions(-)

diffs (truncated from 328 to 300 lines):

diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/Makefile
--- a/mbone/vic/Makefile        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/Makefile        Mon Feb 27 15:49:56 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2006/02/05 23:10:05 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2006/02/27 15:49:56 joerg Exp $
 
 DISTNAME=      vicsrc-2.8
 PKGNAME=       ${DISTNAME:S/src//}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    mbone tk
 MASTER_SITES=  ftp://ftp.ee.lbl.gov/conferencing/vic/
 
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/distinfo
--- a/mbone/vic/distinfo        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/distinfo        Mon Feb 27 15:49:56 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2005/02/22 21:33:50 agc Exp $
+$NetBSD: distinfo,v 1.9 2006/02/27 15:49:56 joerg Exp $
 
 SHA1 (vicsrc-2.8.tar.gz) = ec58bf10aed99301f1e0e0828d0f2f32acdafe1d
 RMD160 (vicsrc-2.8.tar.gz) = 1c102bfb4effd54bb3ac90e8d86213c392f3e10f
@@ -11,7 +11,7 @@
 SHA1 (patch-ac) = e95936892d83876c90edb5e81963350c60e56866
 SHA1 (patch-ad) = 4604ae7077aee9e3165532a9a7947ed1875ae810
 SHA1 (patch-ae) = 05b45b8ac88a0c86d39b53cc1f2c4499411745da
-SHA1 (patch-af) = 5263cff868b12a54b51760b605fdc91180554371
+SHA1 (patch-af) = 4a82bb5322d16c8269923cd65c0e776a2570de90
 SHA1 (patch-ag) = d3458b0a01cea09b55795574c54cd8b6007e75a6
 SHA1 (patch-ah) = b5ed0c03955ee1f60c18ea71a142a365947a4962
 SHA1 (patch-ai) = 2d651ec7bb05115ae655239716bde8856bab7ff2
@@ -21,13 +21,13 @@
 SHA1 (patch-am) = b9a9e31d58eaddd57394dd7b4546f3668076333c
 SHA1 (patch-an) = 2f9e09c6da4d7800df43d0bb885ab293fa61e0b1
 SHA1 (patch-ao) = fd7409267aaaaa2d64f036b92c963a0fc85675df
-SHA1 (patch-ap) = 6207c15b3f0385e7b2a9c3e97d7261cd5fcf4e85
-SHA1 (patch-aq) = 728c909b65818b99bcef6839868ee6ed420a1757
-SHA1 (patch-ar) = f5e9ebe593adab166708e83c984eddbc0efea3a1
-SHA1 (patch-as) = bb851e2627dbf0a336d3e71dad0440043d7bba06
-SHA1 (patch-at) = 4ebd0d44b088578e658d15351aa76bbdfb3f4a3a
-SHA1 (patch-au) = 55e52deefff784da3e0a10d44405196e66e70d9d
-SHA1 (patch-av) = 683ad2d688fce18757eae090a3d52249897cb922
+SHA1 (patch-ap) = a1e8efe7df75c428c09593e93d60b61584b06d50
+SHA1 (patch-aq) = 89b9441d6b713cd86d76411732b5f436f5d18dbd
+SHA1 (patch-ar) = 3386286e5bb2b0528fa20d6458f752d35381dff5
+SHA1 (patch-as) = 03c868e0f38ad590bee8ae9504404f05c6db5cef
+SHA1 (patch-at) = 416ca3e5125dc0b405268a7ab87572fa90b386eb
+SHA1 (patch-au) = 46f3bee25bc2d9b983d29022ec3a86966ca07bbe
+SHA1 (patch-av) = 8811a912a1f166a5576ce0efdb1284941b62fa16
 SHA1 (patch-aw) = 735e7cda5f1cabe312decdcf992258ac8a895f63
 SHA1 (patch-ax) = 9f7ab611dc426a4f317b46803dbca218be903b10
 SHA1 (patch-ay) = 5c6fe3e6cdbf0544ae1f92cc1f351a0655707af7
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-af
--- a/mbone/vic/patches/patch-af        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-af        Mon Feb 27 15:49:56 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.2 1998/08/07 11:10:07 agc Exp $
+$NetBSD: patch-af,v 1.3 2006/02/27 15:49:56 joerg Exp $
 
 --- /usr/local/pkgsrc//mbone/vic/work/vic-2.8/config.h Thu May 16 14:27:06 1996
 +++ config.h   Wed Nov 19 15:46:41 1997
@@ -7,7 +7,7 @@
  #define vic_config_h
  
 -#if defined(sgi) || defined(__bsdi__) || defined(__FreeBSD__)
-+#if defined(sgi) || defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(sgi) || defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
  #include <sys/types.h>
  #elif defined(linux)
  #include <sys/bitypes.h>
@@ -16,7 +16,7 @@
  int strcasecmp(const char *, const char *);
  clock_t clock(void);
 -#if !defined(sco) && !defined(sgi) && !defined(__bsdi__) && !defined(__FreeBSD__)
-+#if !defined(sco) && !defined(sgi) && !defined(__bsdi__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
++#if !defined(sco) && !defined(sgi) && !defined(__bsdi__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
  int gethostid(void);
  #endif
  time_t time(time_t *);
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-ap
--- a/mbone/vic/patches/patch-ap        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-ap        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-ap,v 1.1 2002/08/16 16:56:00 agc Exp $
+$NetBSD: patch-ap,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-true.cc      2002/08/16 16:33:46     1.1
-+++ color-true.cc      2002/08/16 16:34:45
-@@ -180,7 +180,7 @@
+--- color-true.cc.orig 1996-03-04 11:32:13.000000000 +0000
++++ color-true.cc
+@@ -173,14 +173,17 @@ typedef void (TrueWindowRenderer::*TrueM
+ class TrueWindowRenderer : public WindowDitherer {
+ public:
+       TrueWindowRenderer(VideoWindow* vw, int decimation, TrueColorModel& cm)
+-              : WindowDitherer(vw, decimation), cm_(cm), method_(0){ }
++              : WindowDitherer(vw, decimation), cm_(cm), method_(NULL){ }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
+       }
  protected:
        TrueColorModel& cm_;
        virtual void update();
 -      virtual void disable() { method_ = TrueMethod(WindowRenderer::dither_null); }
-+      virtual void disable() { method_ = TrueMethod(&WindowRenderer::dither_null); }
++      virtual void disable() { method_ = NULL; }
        TrueMethod method_;
        void map_422(const u_char* frm, u_int off, u_int x,
                     u_int width, u_int height) const;
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-aq
--- a/mbone/vic/patches/patch-aq        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-aq        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,26 @@
-$NetBSD: patch-aq,v 1.1 2002/08/16 16:56:00 agc Exp $
+$NetBSD: patch-aq,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-dither.cc    2002/08/16 16:36:06     1.1
-+++ color-dither.cc    2002/08/16 16:37:56
-@@ -177,7 +177,7 @@
+--- color-dither.cc.orig       1995-11-14 05:46:09.000000000 +0000
++++ color-dither.cc
+@@ -169,15 +169,19 @@ class DitherWindowRenderer : public Pseu
+ public:
+       DitherWindowRenderer(VideoWindow* vw, int decimation,
+                            DitherColorModel& cm) :
++              method_(NULL),
+               PseudoWindowRenderer(vw, decimation, cm.graylut()),
+               cm_(cm) { }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
+       }
  protected:
        DitherColorModel& cm_;
        virtual void update();
 -      virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+      virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++      virtual void disable() { method_ = NULL; }
        DitherMethod method_;
        void dither_422(const u_char* frm, u_int off, u_int x,
                        u_int width, u_int height) const;
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-ar
--- a/mbone/vic/patches/patch-ar        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-ar        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-ar,v 1.1 2002/08/16 16:56:00 agc Exp $
+$NetBSD: patch-ar,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-ed.cc        2002/08/16 16:39:06     1.1
-+++ color-ed.cc        2002/08/16 16:39:16
-@@ -180,7 +180,7 @@
+--- color-ed.cc.orig   1995-11-14 05:46:10.000000000 +0000
++++ color-ed.cc
+@@ -173,14 +173,17 @@ class EDWindowRenderer : public PseudoWi
+ public:
+       EDWindowRenderer(VideoWindow* vw, int decimation, EDColorModel& cm) :
+               PseudoWindowRenderer(vw, decimation, cm.graylut()),
+-              cm_(cm) { }
++              cm_(cm), method_(NULL) { }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
+       }
  protected:
        EDColorModel& cm_;
        virtual void update();
 -      virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+      virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++      virtual void disable() { method_ = NULL; }
        EDMethod method_;
        void dither_422(const u_char* frm, u_int off, u_int x,
                        u_int width, u_int height) const;
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-as
--- a/mbone/vic/patches/patch-as        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-as        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-as,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-as,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-quant.cc     2002/08/16 16:40:25     1.1
-+++ color-quant.cc     2002/08/16 16:40:50
-@@ -92,7 +92,7 @@
+--- color-quant.cc.orig        1996-02-16 03:21:16.000000000 +0000
++++ color-quant.cc
+@@ -85,14 +85,17 @@ class QuantWindowRenderer : public Pseud
+ public:
+       QuantWindowRenderer(VideoWindow* vw, int decimation, QuantColorModel& cm) :
+               PseudoWindowRenderer(vw, decimation, cm.graylut()),
+-              cm_(cm) { }
++              cm_(cm), method_(NULL) { }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
+       }
  protected:
        QuantColorModel& cm_;
        virtual void update();
 -      virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+      virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++      virtual void disable() { method_ = NULL; }
        QuantMethod method_;
        void map_422(const u_char* frm, u_int off, u_int x,
                     u_int width, u_int height) const;
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-at
--- a/mbone/vic/patches/patch-at        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-at        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-at,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-at,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-hi.cc        2002/08/16 16:42:11     1.1
-+++ color-hi.cc        2002/08/16 16:42:28
-@@ -164,7 +164,7 @@
+--- color-hi.cc.orig   1996-05-16 12:42:44.000000000 +0000
++++ color-hi.cc
+@@ -157,14 +157,17 @@ typedef void (HiWindowRenderer::*HiMetho
+ class HiWindowRenderer : public WindowDitherer {
+     public:
+       HiWindowRenderer(VideoWindow* vw, int decimation, HiColorModel& cm)
+-              : WindowDitherer(vw, decimation), cm_(cm), method_(0){ }
++              : WindowDitherer(vw, decimation), cm_(cm), method_(NULL){ }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
+       }
      protected:
        HiColorModel& cm_;
        virtual void update();
 -      virtual void disable() { method_ = HiMethod(WindowRenderer::dither_null); }
-+      virtual void disable() { method_ = HiMethod(&WindowRenderer::dither_null); }
++      virtual void disable() { method_ = NULL; }
        HiMethod method_;
        void map_422(const u_char* frm, u_int off, u_int x,
                     u_int width, u_int height) const;
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-au
--- a/mbone/vic/patches/patch-au        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-au        Mon Feb 27 15:49:56 2006 +0000
@@ -1,13 +1,25 @@
-$NetBSD: patch-au,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-au,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-gray.cc      2002/08/16 16:44:59     1.1
-+++ color-gray.cc      2002/08/16 16:45:10
-@@ -82,7 +82,7 @@
+--- color-gray.cc.orig 1995-11-14 05:46:10.000000000 +0000
++++ color-gray.cc
+@@ -75,14 +75,17 @@ typedef void (GrayWindowRenderer::*GrayM
+ class GrayWindowRenderer : public PseudoWindowRenderer {
+ public:
+       GrayWindowRenderer(VideoWindow* vw, int decimation,
+-                         const u_short* graylut) :
++                         const u_short* graylut) : method_(NULL),
+               PseudoWindowRenderer(vw, decimation, graylut) { }
+       void render(const u_char* frm, int off, int x, int w, int h) {
+-              (this->*method_)(frm, off, x, w, h);
++              if (this->method_)
++                      (this->*method_)(frm, off, x, w, h);
++              else
++                      dither_null(frm, off, x, w, h);
        }
  protected:
        virtual void update();
 -      virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+      virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++      virtual void disable() { method_ = NULL; }
        GrayMethod method_;
  };
  
diff -r 7e6e52822dbf -r a0ae68c92aba mbone/vic/patches/patch-av
--- a/mbone/vic/patches/patch-av        Mon Feb 27 15:45:29 2006 +0000
+++ b/mbone/vic/patches/patch-av        Mon Feb 27 15:49:56 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-av,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-av,v 1.2 2006/02/27 15:49:56 joerg Exp $
 
---- color-mono.cc      2002/08/16 16:49:05     1.1
-+++ color-mono.cc      2002/08/16 16:49:31
-@@ -200,7 +200,7 @@
+--- color-mono.cc.orig 1995-11-14 02:14:31.000000000 +0000
++++ color-mono.cc
+@@ -200,7 +200,7 @@ public:
        ~MonoColorModel();
        virtual int alloc_grays();



Home | Main Index | Thread Index | Old Index