aboutsummaryrefslogtreecommitdiffstats
path: root/net/openh323
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2002-10-29 16:26:59 +0800
committerroger <roger@FreeBSD.org>2002-10-29 16:26:59 +0800
commit665f89f026d0bd575c44d23b89499d33c09cb37e (patch)
tree5aa7bc72a60467b109002b1cfeb5fe9d981ee713 /net/openh323
parent3ff339a4b7a08bcc7460b8a5c3934ca4cd586b99 (diff)
downloadfreebsd-ports-gnome-665f89f026d0bd575c44d23b89499d33c09cb37e.tar.gz
freebsd-ports-gnome-665f89f026d0bd575c44d23b89499d33c09cb37e.tar.zst
freebsd-ports-gnome-665f89f026d0bd575c44d23b89499d33c09cb37e.zip
Add some fixes for -current and s-video support from pwlib's CVS.
Reported by: Lars Eggert <larse@isi.edu>
Diffstat (limited to 'net/openh323')
-rw-r--r--net/openh323/Makefile1
-rw-r--r--net/openh323/files/patch-ad51
-rw-r--r--net/openh323/files/patch-ae131
3 files changed, 183 insertions, 0 deletions
diff --git a/net/openh323/Makefile b/net/openh323/Makefile
index 2b1d9372f08c..42371efbf00f 100644
--- a/net/openh323/Makefile
+++ b/net/openh323/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openh323
PORTVERSION= 1.9.10
+PORT_REVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.openh323.org/bin/ \
http://www.de.openh323.org/bin/ \
diff --git a/net/openh323/files/patch-ad b/net/openh323/files/patch-ad
new file mode 100644
index 000000000000..af0be448519a
--- /dev/null
+++ b/net/openh323/files/patch-ad
@@ -0,0 +1,51 @@
+*** ../pwlib/src/ptlib/unix/video4bsd.cxx.orig Tue Oct 29 00:15:59 2002
+--- ../pwlib/src/ptlib/unix/video4bsd.cxx Tue Oct 29 00:16:17 2002
+***************
+*** 24,29 ****
+--- 24,32 ----
+ * Contributor(s): Roger Hardiman <roger@freebsd.org>
+ *
+ * $Log: video4bsd.cxx,v $
++ * Revision 1.20 2002/10/28 19:12:45 rogerh
++ * Add svideo input support for Lars Eggert <larse@isi.edu>
++ *
+ * Revision 1.19 2002/04/10 08:40:36 rogerh
+ * Simplify the SetVideoChannelFormat() code. Use the implementation in the
+ * ancestor class.
+*************** BOOL PVideoInputDevice::Open(const PStri
+*** 129,135 ****
+ videoCapability.minwidth = 32;
+ videoCapability.maxheight = 768;
+ videoCapability.maxwidth = 576;
+! videoCapability.channels = 4;
+
+ // set height and width
+ frameHeight = videoCapability.maxheight;
+--- 132,138 ----
+ videoCapability.minwidth = 32;
+ videoCapability.maxheight = 768;
+ videoCapability.maxwidth = 576;
+! videoCapability.channels = 5;
+
+ // set height and width
+ frameHeight = videoCapability.maxheight;
+*************** BOOL PVideoInputDevice::SetChannel(int n
+*** 259,266 ****
+ return FALSE;
+
+ // set channel information
+! static int chnl[4] = { METEOR_INPUT_DEV0, METEOR_INPUT_DEV1,
+! METEOR_INPUT_DEV2, METEOR_INPUT_DEV3 };
+ int channel = chnl[newChannel];
+
+ // set the information
+--- 262,270 ----
+ return FALSE;
+
+ // set channel information
+! static int chnl[5] = { METEOR_INPUT_DEV0, METEOR_INPUT_DEV1,
+! METEOR_INPUT_DEV2, METEOR_INPUT_DEV3,
+! METEOR_INPUT_DEV_SVIDEO };
+ int channel = chnl[newChannel];
+
+ // set the information
diff --git a/net/openh323/files/patch-ae b/net/openh323/files/patch-ae
new file mode 100644
index 000000000000..35ba7fc56b4c
--- /dev/null
+++ b/net/openh323/files/patch-ae
@@ -0,0 +1,131 @@
+*** ../pwlib/src/ptlib/common/object.cxx.orig Tue Oct 29 00:21:28 2002
+--- ../pwlib/src/ptlib/common/object.cxx Tue Oct 29 00:22:07 2002
+***************
+*** 27,32 ****
+--- 27,38 ----
+ * Contributor(s): ______________________________________.
+ *
+ * $Log: object.cxx,v $
++ * Revision 1.62 2002/10/21 12:52:27 rogerh
++ * Add throw()s to new and delete. Error reported by FreeBSD 5.0 and GCC 3.2.1
++ *
++ * Revision 1.61 2002/10/10 04:43:44 robertj
++ * VxWorks port, thanks Martijn Roest
++ *
+ * Revision 1.60 2002/09/06 05:29:42 craigs
+ * Reversed order of memory block check on delete to improve performance in
+ * Linux debug mode
+*************** void PAssertFunc(const char * file, int
+*** 308,332 ****
+--- 314,354 ----
+ #undef free
+
+
++ #if __GNUC__ >= 3
++ void * operator new(size_t nSize) throw (std::bad_alloc)
++ #else
+ void * operator new(size_t nSize)
++ #endif
+ {
+ return PMemoryHeap::Allocate(nSize, (const char *)NULL, 0, NULL);
+ }
+
+
++ #if __GNUC__ >= 3
++ void * operator new[](size_t nSize) throw (std::bad_alloc)
++ #else
+ void * operator new[](size_t nSize)
++ #endif
+ {
+ return PMemoryHeap::Allocate(nSize, (const char *)NULL, 0, NULL);
+ }
+
+
++ #if __GNUC__ >= 3
++ void operator delete(void * ptr) throw()
++ #else
+ void operator delete(void * ptr)
++ #endif
+ {
+ PMemoryHeap::Deallocate(ptr, NULL);
+ }
+
+
++ #if __GNUC__ >= 3
++ void operator delete[](void * ptr) throw()
++ #else
+ void operator delete[](void * ptr)
++ #endif
+ {
+ PMemoryHeap::Deallocate(ptr, NULL);
+ }
+*************** void PMemoryHeap::InternalDumpObjectsSin
+*** 814,829 ****
+--- 836,863 ----
+
+ #else // PMEMORY_CHECK
+
++ #ifndef P_VXWORKS
++
++ #if __GNUC__ >= 3
++ void * operator new[](size_t nSize) throw (std::bad_alloc)
++ #else
+ void * operator new[](size_t nSize)
++ #endif
+ {
+ return malloc(nSize);
+ }
+
++ #if __GNUC__ >= 3
++ void operator delete[](void * ptr) throw ()
++ #else
+ void operator delete[](void * ptr)
++ #endif
+ {
+ free(ptr);
+ }
+
++ #endif // !P_VXWORKS
++
+ #endif // PMEMORY_CHECK
+
+
+*************** istream & operator>>(istream & stream, P
+*** 1505,1510 ****
+--- 1539,1574 ----
+
+
+ #endif
++
++
++ #ifdef P_TORNADO
++
++ // the library provided with Tornado 2.0 does not contain implementation
++ // for the functions defined below, therefor the own implementation
++
++ ostream & ostream::operator<<(PInt64 v)
++ {
++ return *this << (long)(v >> 32) << (long)(v & 0xFFFFFFFF);
++ }
++
++
++ ostream & ostream::operator<<(PUInt64 v)
++ {
++ return *this << (long)(v >> 32) << (long)(v & 0xFFFFFFFF);
++ }
++
++ istream & istream::operator>>(PInt64 & v)
++ {
++ return *this >> (long)(v >> 32) >> (long)(v & 0xFFFFFFFF);
++ }
++
++
++ istream & istream::operator>>(PUInt64 & v)
++ {
++ return *this >> (long)(v >> 32) >> (long)(v & 0xFFFFFFFF);
++ }
++
++ #endif // P_TORNADO
+
+
+ // End Of File ///////////////////////////////////////////////////////////////