summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2001-07-26 16:11:16 +0000
committerroger <roger@FreeBSD.org>2001-07-26 16:11:16 +0000
commit12ba0133438ef685695cd1b7c61a8bc47693ab46 (patch)
tree832d065eca861a7b66bb3dbd5d71da23a8c0def8 /net
parentb0aaabdace80b06444973ba54fab98b8791ac7cf (diff)
downloadFreeBSD-ports-12ba0133438ef685695cd1b7c61a8bc47693ab46.zip
FreeBSD-ports-12ba0133438ef685695cd1b7c61a8bc47693ab46.tar.gz
Add OpenH323 version 1.1
Diffstat (limited to 'net')
-rw-r--r--net/openh323_1.1/Makefile32
-rw-r--r--net/openh323_1.1/distinfo2
-rw-r--r--net/openh323_1.1/files/patch-aa46
-rw-r--r--net/openh323_1.1/pkg-comment1
-rw-r--r--net/openh323_1.1/pkg-descr8
-rw-r--r--net/openh323_1.1/pkg-plist1
6 files changed, 90 insertions, 0 deletions
diff --git a/net/openh323_1.1/Makefile b/net/openh323_1.1/Makefile
new file mode 100644
index 0000000..80b747c
--- /dev/null
+++ b/net/openh323_1.1/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: openh323_1.1
+# Date created: July 25 2000
+# Whom: Roger Hardiman <roger@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= openh323
+PORTVERSION= 1.1
+CATEGORIES= net
+MASTER_SITES= http://130.104.229.225/gnomemeeting/downloads/
+DISTFILES= openh323_1.1.tar.gz \
+ pwlib_min_1.1pl18.tar.gz
+
+MAINTAINER= roger@freebsd.org
+
+WRKSRC= ${WRKDIR}/openh323
+
+USE_NEWGCC= yes
+USE_BISON= yes
+
+USE_GMAKE= yes
+ALL_TARGET= opt
+MAKE_ENV= PWLIBDIR=${WRKDIR}/pwlib \
+ OPENH323DIR=${WRKDIR}/openh323
+THE_MACHTYPE= ${ARCH:S/i386/x86/}
+MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin/simph323_1.1
+
+.include <bsd.port.mk>
diff --git a/net/openh323_1.1/distinfo b/net/openh323_1.1/distinfo
new file mode 100644
index 0000000..7a6a56e
--- /dev/null
+++ b/net/openh323_1.1/distinfo
@@ -0,0 +1,2 @@
+MD5 (openh323_1.1.tar.gz) = 51fe78bc7a0da3422479263106b4d95a
+MD5 (pwlib_min_1.1pl18.tar.gz) = c4c88ce65cca72ce5d9cfea36205e7a4
diff --git a/net/openh323_1.1/files/patch-aa b/net/openh323_1.1/files/patch-aa
new file mode 100644
index 0000000..c9fda68
--- /dev/null
+++ b/net/openh323_1.1/files/patch-aa
@@ -0,0 +1,46 @@
+*** ../pwlib/src/ptlib/unix/tlibthrd.cxx.orig Wed Jul 25 17:09:09 2001
+--- ../pwlib/src/ptlib/unix/tlibthrd.cxx Thu Jul 26 13:21:40 2001
+*************** void PThread::PX_NewThread(BOOL startSus
+*** 386,391 ****
+--- 386,409 ----
+ // pthread_attr_t threadAttr;
+ // pthread_attr_init(&threadAttr);
+ PAssertOS(pthread_create(&PX_threadId, NULL, PX_ThreadStart, this) == 0);
++
++ #if defined(P_FREEBSD)
++ // There is a potential race condition here which shows up with FreeBSD 4.2
++ // and later, but really applies to all pthread libraries.
++ // If a thread is started in suspend mode, we need to make sure
++ // the thread (PX_ThreadStart) has had a chance to execute and block on the
++ // sigwait() (blocking on the Resume Signal) before this function returns.
++ // Otherwise the main program may issue a Resume Signal on the thread
++ // by calling PThread::Resume() before the thread is ready for it.
++ // If that happens the program will abort with an unhandled signal error.
++ // A workaround (not 100% guaranteed) is to yield here, which gives
++ // the newly created thread (PX_ThreadStart) a chance to execute.
++
++ if (startSuspended) {
++ sched_yield();
++ }
++ #endif
++
+ }
+
+
+*************** BOOL PSemaphore::Wait(const PTimeInterva
+*** 767,773 ****
+ ::gettimeofday(&finishTime, NULL);
+ finishTime.tv_sec += waitTime.GetSeconds();
+ finishTime.tv_usec += waitTime.GetMilliSeconds() % 1000L;
+! if (finishTime.tv_usec > 1000000) {
+ finishTime.tv_usec -= 1000000;
+ finishTime.tv_sec++;
+ }
+--- 785,791 ----
+ ::gettimeofday(&finishTime, NULL);
+ finishTime.tv_sec += waitTime.GetSeconds();
+ finishTime.tv_usec += waitTime.GetMilliSeconds() % 1000L;
+! if (finishTime.tv_usec >= 1000000) {
+ finishTime.tv_usec -= 1000000;
+ finishTime.tv_sec++;
+ }
diff --git a/net/openh323_1.1/pkg-comment b/net/openh323_1.1/pkg-comment
new file mode 100644
index 0000000..cef461a
--- /dev/null
+++ b/net/openh323_1.1/pkg-comment
@@ -0,0 +1 @@
+A H323 Video Conferencing library, used with OhPhone
diff --git a/net/openh323_1.1/pkg-descr b/net/openh323_1.1/pkg-descr
new file mode 100644
index 0000000..5617dbe
--- /dev/null
+++ b/net/openh323_1.1/pkg-descr
@@ -0,0 +1,8 @@
+OpenH323 is a multi-platform H323 Video Conferencing library.
+
+This port contains version 1.1 of OpenH323 which is required for
+gnomemeeting.
+
+For more information, refer to the main port in net/openh323.
+
+WWW: http://www.openh323.org
diff --git a/net/openh323_1.1/pkg-plist b/net/openh323_1.1/pkg-plist
new file mode 100644
index 0000000..b78ec08
--- /dev/null
+++ b/net/openh323_1.1/pkg-plist
@@ -0,0 +1 @@
+bin/simph323_1.1
OpenPOWER on IntegriCloud