1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Add OpenH323 version 1.1

This commit is contained in:
Roger Hardiman 2001-07-26 16:11:16 +00:00
parent f8dbadb2e0
commit 4d82aa1463
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45513
6 changed files with 90 additions and 0 deletions

32
net/openh323_1.1/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1,2 @@
MD5 (openh323_1.1.tar.gz) = 51fe78bc7a0da3422479263106b4d95a
MD5 (pwlib_min_1.1pl18.tar.gz) = c4c88ce65cca72ce5d9cfea36205e7a4

View File

@ -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++;
}

View File

@ -0,0 +1 @@
A H323 Video Conferencing library, used with OhPhone

View File

@ -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

View File

@ -0,0 +1 @@
bin/simph323_1.1