1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

Add gnomemeeting, a gnome H323 videoconferencing client, like NetMeeting

This commit is contained in:
Roger Hardiman 2001-07-26 16:09:08 +00:00
parent 0c1cf1a4d6
commit f8dbadb2e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45512
39 changed files with 1098 additions and 0 deletions

33
net/ekiga/Makefile Normal file
View File

@ -0,0 +1,33 @@
# Ports collection Makefile for: gnomemeeting
# Date created: 24/07/2001
# Whom: roger@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gnomemeeting
PORTVERSION= 0.9-1
CATEGORIES= net gnome
MASTER_SITES= http://130.104.229.225/gnomemeeting/downloads/
MAINTAINER= roger@FreeBSD.org
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap \
gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf/
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/openh323_1.1:build
# note, we do not want to clean openh323_1.1, otherwise it has to build
# it all over again which can take several hours.
NOCLEANDEPENDS= yes
USE_NEWGCC= yes
USE_GNOME= yes
USE_AUTOCONF= yes
USE_GTK= yes
USE_GMAKE= yes
CONFIGURE_ENV= LIBS=-L${PREFIX}/lib \
PWLIBDIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/pwlib \
OPENH323DIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/openh323
.include <bsd.port.mk>

1
net/ekiga/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961

66
net/ekiga/files/patch-aa Normal file
View File

@ -0,0 +1,66 @@
*** configure.in.orig Sun Jun 17 22:17:49 2001
--- configure.in Thu Jul 26 11:36:11 2001
*************** AC_ARG_PROGRAM
*** 28,38 ****
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_linux_x86_r -ldl -lpt_linux_x86_r -lpthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-lldap -llber -lresolv"
--- 28,38 ----
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_FreeBSD_x86_r -lpt_FreeBSD_x86_r -pthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-L/usr/local/lib -lldap -llber"
*************** dnl ************************************
*** 48,55 ****
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_SOLARIS=8 -D_REENTRANT -D_DEBUG -DPMEMORY_CHECK=1 -DP_THREADS
! -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DSOLARIS"
fi
dnl *********************************************************************
--- 48,54 ----
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_FREEBSD=400001 -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DNDEBUG"
fi
dnl *********************************************************************
*************** AM_PROG_LIBTOOL
*** 69,77 ****
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS="-lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################
--- 68,76 ----
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! dnl AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS=" -L/usr/local/lib -lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################

23
net/ekiga/files/patch-ab Normal file
View File

@ -0,0 +1,23 @@
*** src/common.h.orig Thu Jul 26 11:38:18 2001
--- src/common.h Thu Jul 26 11:40:18 2001
***************
*** 20,26 ****
#include <gnome.h>
! #ifdef LINUX
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"
--- 20,30 ----
#include <gnome.h>
! #ifdef __FreeBSD__
! #include <pthread.h>
! #endif
!
! #if defined(LINUX) || defined (__FreeBSD__)
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"

14
net/ekiga/files/patch-ac Normal file
View File

@ -0,0 +1,14 @@
*** src/ldap_h.h.orig Thu Jul 26 11:40:56 2001
--- src/ldap_h.h Thu Jul 26 11:41:23 2001
***************
*** 21,26 ****
--- 21,29 ----
#ifndef _LDAP_H_H_
#define _LDAP_H_H
+ #ifdef __FreeBSD__
+ #include <lber.h>
+ #endif
#include <ldap.h>
#include <iostream.h>
#include <string.h>

18
net/ekiga/files/patch-ad Normal file
View File

@ -0,0 +1,18 @@
*** src/audio.h.orig Thu Jul 26 11:42:22 2001
--- src/audio.h Thu Jul 26 11:42:51 2001
***************
*** 20,26 ****
--- 20,32 ----
#ifndef _AUDIO_H_
#define _AUDIO_H_
+ #ifdef __linux__
#include <linux/soundcard.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/soundcard.h>
+ #endif
+
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>

17
net/ekiga/files/patch-ae Normal file
View File

@ -0,0 +1,17 @@
*** src/webcam.h.orig Thu Jul 26 11:43:17 2001
--- src/webcam.h Thu Jul 26 11:43:47 2001
***************
*** 22,28 ****
--- 22,33 ----
#include <fcntl.h>
#include <unistd.h>
+ #ifdef __linux__
#include <linux/videodev.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/ioctl_meteor.h>
+ #endif
#include <sys/ioctl.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>

19
net/ekiga/files/patch-af Normal file
View File

@ -0,0 +1,19 @@
*** src/endpoint.cpp.orig Thu Jul 26 11:45:30 2001
--- src/endpoint.cpp Thu Jul 26 11:45:42 2001
*************** BOOL GMH323EndPoint::OpenVideoDevice (H3
*** 700,706 ****
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! codec.SetTxFPS (opts->tr_fps);
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);
--- 700,706 ----
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! /* codec.SetTxFPS (opts->tr_fps); */
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);

148
net/ekiga/files/patch-ag Normal file
View File

@ -0,0 +1,148 @@
*** src/webcam.cpp.orig Thu Jul 26 11:46:12 2001
--- src/webcam.cpp Thu Jul 26 11:50:00 2001
*************** void * GM_cam_capture_thread (GM_window_
*** 80,101 ****
int len;
void *pic;
GdkRectangle update_rec;
struct video_window vid_win;
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
vid_win.width = 176;
vid_win.height = 144;
!
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
pic = malloc (176* 144 * 3);
--- 80,107 ----
int len;
void *pic;
GdkRectangle update_rec;
+ #ifdef __linux__
struct video_window vid_win;
+ #endif
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
+ #ifdef __linux__
vid_win.width = 176;
vid_win.height = 144;
! #endif
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
+
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
+ #endif
pic = malloc (176* 144 * 3);
*************** void * GM_cam_capture_thread (GM_window_
*** 132,138 ****
--- 138,146 ----
int GM_cam_info (GM_window_widgets *gw, GtkWidget *text)
{
+ #ifdef __linux__
struct video_capability vid_cap;
+ #endif
char *maxh, *maxw, *minh, *minw;
int was_opened = 1;
*************** int GM_cam_info (GM_window_widgets *gw,
*** 148,153 ****
--- 156,162 ----
was_opened = 0; // webcam was not opened, so we will close it
}
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGCAP, &vid_cap);
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
*************** int GM_cam_info (GM_window_widgets *gw,
*** 176,181 ****
--- 185,191 ----
else
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
"\n Can not capture : ", -1);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_set_params (GM_window_widget
*** 196,202 ****
--- 206,214 ----
int brightness, int colour, int contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_set_params (GM_window_widget
*** 206,211 ****
--- 218,224 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
vid_pic.whiteness = (int) whiteness * 256;
*************** void GM_cam_set_params (GM_window_widget
*** 214,219 ****
--- 227,233 ----
vid_pic.contrast = (int) contrast * 256;
ioctl (gw->dev, VIDIOCSPICT, &vid_pic);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_get_params (GM_window_widget
*** 227,233 ****
--- 241,249 ----
int *brightness, int *colour, int *contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_get_params (GM_window_widget
*** 237,248 ****
--- 253,266 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
*whiteness = (int) vid_pic.whiteness / 256;
*brightness = (int) vid_pic.brightness / 256;
*colour = (int) vid_pic.colour / 256;
*contrast = (int) vid_pic.contrast / 256;
+ #endif
if (was_opened == 0)
{

14
net/ekiga/files/patch-ah Normal file
View File

@ -0,0 +1,14 @@
*** src/main.cpp.orig Thu Jul 26 12:01:33 2001
--- src/main.cpp Thu Jul 26 12:01:50 2001
*************** int main (int argc, char ** argv, char *
*** 235,241 ****
--- 235,243 ----
read_config (opts);
// Init
+ #ifdef __linux__
g_thread_init(NULL);
+ #endif
textdomain (PACKAGE);
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
gw->pixmap = NULL;

1
net/ekiga/pkg-comment Normal file
View File

@ -0,0 +1 @@
GNOME H323 Video Conferencing program, similar to NetMeeting

11
net/ekiga/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
gnomemeeting is a H323 Video Conferencing application which uses the H323
protocol and the OpenH323 libraries.
It can connect to a variety of other H323 applications including
Microsoft NetMeeting, OpenMCU, OpenAM and OhPhone.
It is very similar to NetMeeting, and also support ILS servers
WWW: http://www.gnomemeeting.org/
Roger Hardiman <roger@freebsd.org>

1
net/ekiga/pkg-plist Normal file
View File

@ -0,0 +1 @@
bin/gnomemeeting

33
net/gnomemeeting/Makefile Normal file
View File

@ -0,0 +1,33 @@
# Ports collection Makefile for: gnomemeeting
# Date created: 24/07/2001
# Whom: roger@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gnomemeeting
PORTVERSION= 0.9-1
CATEGORIES= net gnome
MASTER_SITES= http://130.104.229.225/gnomemeeting/downloads/
MAINTAINER= roger@FreeBSD.org
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap \
gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf/
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/openh323_1.1:build
# note, we do not want to clean openh323_1.1, otherwise it has to build
# it all over again which can take several hours.
NOCLEANDEPENDS= yes
USE_NEWGCC= yes
USE_GNOME= yes
USE_AUTOCONF= yes
USE_GTK= yes
USE_GMAKE= yes
CONFIGURE_ENV= LIBS=-L${PREFIX}/lib \
PWLIBDIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/pwlib \
OPENH323DIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/openh323
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961

View File

@ -0,0 +1,66 @@
*** configure.in.orig Sun Jun 17 22:17:49 2001
--- configure.in Thu Jul 26 11:36:11 2001
*************** AC_ARG_PROGRAM
*** 28,38 ****
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_linux_x86_r -ldl -lpt_linux_x86_r -lpthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-lldap -llber -lresolv"
--- 28,38 ----
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_FreeBSD_x86_r -lpt_FreeBSD_x86_r -pthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-L/usr/local/lib -lldap -llber"
*************** dnl ************************************
*** 48,55 ****
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_SOLARIS=8 -D_REENTRANT -D_DEBUG -DPMEMORY_CHECK=1 -DP_THREADS
! -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DSOLARIS"
fi
dnl *********************************************************************
--- 48,54 ----
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_FREEBSD=400001 -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DNDEBUG"
fi
dnl *********************************************************************
*************** AM_PROG_LIBTOOL
*** 69,77 ****
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS="-lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################
--- 68,76 ----
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! dnl AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS=" -L/usr/local/lib -lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################

View File

@ -0,0 +1,23 @@
*** src/common.h.orig Thu Jul 26 11:38:18 2001
--- src/common.h Thu Jul 26 11:40:18 2001
***************
*** 20,26 ****
#include <gnome.h>
! #ifdef LINUX
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"
--- 20,30 ----
#include <gnome.h>
! #ifdef __FreeBSD__
! #include <pthread.h>
! #endif
!
! #if defined(LINUX) || defined (__FreeBSD__)
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"

View File

@ -0,0 +1,14 @@
*** src/ldap_h.h.orig Thu Jul 26 11:40:56 2001
--- src/ldap_h.h Thu Jul 26 11:41:23 2001
***************
*** 21,26 ****
--- 21,29 ----
#ifndef _LDAP_H_H_
#define _LDAP_H_H
+ #ifdef __FreeBSD__
+ #include <lber.h>
+ #endif
#include <ldap.h>
#include <iostream.h>
#include <string.h>

View File

@ -0,0 +1,18 @@
*** src/audio.h.orig Thu Jul 26 11:42:22 2001
--- src/audio.h Thu Jul 26 11:42:51 2001
***************
*** 20,26 ****
--- 20,32 ----
#ifndef _AUDIO_H_
#define _AUDIO_H_
+ #ifdef __linux__
#include <linux/soundcard.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/soundcard.h>
+ #endif
+
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -0,0 +1,17 @@
*** src/webcam.h.orig Thu Jul 26 11:43:17 2001
--- src/webcam.h Thu Jul 26 11:43:47 2001
***************
*** 22,28 ****
--- 22,33 ----
#include <fcntl.h>
#include <unistd.h>
+ #ifdef __linux__
#include <linux/videodev.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/ioctl_meteor.h>
+ #endif
#include <sys/ioctl.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>

View File

@ -0,0 +1,19 @@
*** src/endpoint.cpp.orig Thu Jul 26 11:45:30 2001
--- src/endpoint.cpp Thu Jul 26 11:45:42 2001
*************** BOOL GMH323EndPoint::OpenVideoDevice (H3
*** 700,706 ****
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! codec.SetTxFPS (opts->tr_fps);
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);
--- 700,706 ----
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! /* codec.SetTxFPS (opts->tr_fps); */
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);

View File

@ -0,0 +1,148 @@
*** src/webcam.cpp.orig Thu Jul 26 11:46:12 2001
--- src/webcam.cpp Thu Jul 26 11:50:00 2001
*************** void * GM_cam_capture_thread (GM_window_
*** 80,101 ****
int len;
void *pic;
GdkRectangle update_rec;
struct video_window vid_win;
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
vid_win.width = 176;
vid_win.height = 144;
!
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
pic = malloc (176* 144 * 3);
--- 80,107 ----
int len;
void *pic;
GdkRectangle update_rec;
+ #ifdef __linux__
struct video_window vid_win;
+ #endif
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
+ #ifdef __linux__
vid_win.width = 176;
vid_win.height = 144;
! #endif
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
+
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
+ #endif
pic = malloc (176* 144 * 3);
*************** void * GM_cam_capture_thread (GM_window_
*** 132,138 ****
--- 138,146 ----
int GM_cam_info (GM_window_widgets *gw, GtkWidget *text)
{
+ #ifdef __linux__
struct video_capability vid_cap;
+ #endif
char *maxh, *maxw, *minh, *minw;
int was_opened = 1;
*************** int GM_cam_info (GM_window_widgets *gw,
*** 148,153 ****
--- 156,162 ----
was_opened = 0; // webcam was not opened, so we will close it
}
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGCAP, &vid_cap);
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
*************** int GM_cam_info (GM_window_widgets *gw,
*** 176,181 ****
--- 185,191 ----
else
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
"\n Can not capture : ", -1);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_set_params (GM_window_widget
*** 196,202 ****
--- 206,214 ----
int brightness, int colour, int contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_set_params (GM_window_widget
*** 206,211 ****
--- 218,224 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
vid_pic.whiteness = (int) whiteness * 256;
*************** void GM_cam_set_params (GM_window_widget
*** 214,219 ****
--- 227,233 ----
vid_pic.contrast = (int) contrast * 256;
ioctl (gw->dev, VIDIOCSPICT, &vid_pic);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_get_params (GM_window_widget
*** 227,233 ****
--- 241,249 ----
int *brightness, int *colour, int *contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_get_params (GM_window_widget
*** 237,248 ****
--- 253,266 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
*whiteness = (int) vid_pic.whiteness / 256;
*brightness = (int) vid_pic.brightness / 256;
*colour = (int) vid_pic.colour / 256;
*contrast = (int) vid_pic.contrast / 256;
+ #endif
if (was_opened == 0)
{

View File

@ -0,0 +1,14 @@
*** src/main.cpp.orig Thu Jul 26 12:01:33 2001
--- src/main.cpp Thu Jul 26 12:01:50 2001
*************** int main (int argc, char ** argv, char *
*** 235,241 ****
--- 235,243 ----
read_config (opts);
// Init
+ #ifdef __linux__
g_thread_init(NULL);
+ #endif
textdomain (PACKAGE);
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
gw->pixmap = NULL;

View File

@ -0,0 +1 @@
GNOME H323 Video Conferencing program, similar to NetMeeting

View File

@ -0,0 +1,11 @@
gnomemeeting is a H323 Video Conferencing application which uses the H323
protocol and the OpenH323 libraries.
It can connect to a variety of other H323 applications including
Microsoft NetMeeting, OpenMCU, OpenAM and OhPhone.
It is very similar to NetMeeting, and also support ILS servers
WWW: http://www.gnomemeeting.org/
Roger Hardiman <roger@freebsd.org>

View File

@ -0,0 +1 @@
bin/gnomemeeting

View File

@ -0,0 +1,33 @@
# Ports collection Makefile for: gnomemeeting
# Date created: 24/07/2001
# Whom: roger@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gnomemeeting
PORTVERSION= 0.9-1
CATEGORIES= net gnome
MASTER_SITES= http://130.104.229.225/gnomemeeting/downloads/
MAINTAINER= roger@FreeBSD.org
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap \
gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf/
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/openh323_1.1:build
# note, we do not want to clean openh323_1.1, otherwise it has to build
# it all over again which can take several hours.
NOCLEANDEPENDS= yes
USE_NEWGCC= yes
USE_GNOME= yes
USE_AUTOCONF= yes
USE_GTK= yes
USE_GMAKE= yes
CONFIGURE_ENV= LIBS=-L${PREFIX}/lib \
PWLIBDIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/pwlib \
OPENH323DIR=${WRKDIRPREFIX}${.CURDIR}/../openh323_1.1/work/openh323
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961

View File

@ -0,0 +1,66 @@
*** configure.in.orig Sun Jun 17 22:17:49 2001
--- configure.in Thu Jul 26 11:36:11 2001
*************** AC_ARG_PROGRAM
*** 28,38 ****
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_linux_x86_r -ldl -lpt_linux_x86_r -lpthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-lldap -llber -lresolv"
--- 28,38 ----
H323_INCLUDES="-I$PWLIBDIR/include/ptlib/unix -I$PWLIBDIR/include -I$OPENH323DIR/include"
! H323_LIBS="-L$PWLIBDIR/lib -L$OPENH323DIR/lib -lh323_FreeBSD_x86_r -lpt_FreeBSD_x86_r -pthread"
LDAP_INCLUDES="-I/usr/local/include"
! LDAP_LIBS="-L/usr/local/lib -lldap -llber"
*************** dnl ************************************
*** 48,55 ****
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_SOLARIS=8 -D_REENTRANT -D_DEBUG -DPMEMORY_CHECK=1 -DP_THREADS
! -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DSOLARIS"
fi
dnl *********************************************************************
--- 48,54 ----
if test "x${OSTYPE}" = "xlinux-gnu"; then
H323_CFLAGS="-D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -DPTRACING -O2 -DLINUX"
else
! H323_CFLAGS="-DP_FREEBSD=400001 -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DPTRACING -02 -DNDEBUG"
fi
dnl *********************************************************************
*************** AM_PROG_LIBTOOL
*** 69,77 ****
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS="-lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################
--- 68,76 ----
dnl #########################################################################
dnl Check for LDAP if available.
dnl ########################################################################
! dnl AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
! AC_CHECK_LIB(ldap, ldap_simple_bind, LIBS=" -L/usr/local/lib -lldap -llber $LIBS", AC_MSG_ERROR([*** LDAP library is not found.]), -llber)
dnl #########################################################################

View File

@ -0,0 +1,23 @@
*** src/common.h.orig Thu Jul 26 11:38:18 2001
--- src/common.h Thu Jul 26 11:40:18 2001
***************
*** 20,26 ****
#include <gnome.h>
! #ifdef LINUX
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"
--- 20,30 ----
#include <gnome.h>
! #ifdef __FreeBSD__
! #include <pthread.h>
! #endif
!
! #if defined(LINUX) || defined (__FreeBSD__)
#define AUDIO1 "/dev/dsp"
#define AUDIO2 "/dev/dsp1"
#define AUDIO3 "/dev/dsp2"

View File

@ -0,0 +1,14 @@
*** src/ldap_h.h.orig Thu Jul 26 11:40:56 2001
--- src/ldap_h.h Thu Jul 26 11:41:23 2001
***************
*** 21,26 ****
--- 21,29 ----
#ifndef _LDAP_H_H_
#define _LDAP_H_H
+ #ifdef __FreeBSD__
+ #include <lber.h>
+ #endif
#include <ldap.h>
#include <iostream.h>
#include <string.h>

View File

@ -0,0 +1,18 @@
*** src/audio.h.orig Thu Jul 26 11:42:22 2001
--- src/audio.h Thu Jul 26 11:42:51 2001
***************
*** 20,26 ****
--- 20,32 ----
#ifndef _AUDIO_H_
#define _AUDIO_H_
+ #ifdef __linux__
#include <linux/soundcard.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/soundcard.h>
+ #endif
+
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -0,0 +1,17 @@
*** src/webcam.h.orig Thu Jul 26 11:43:17 2001
--- src/webcam.h Thu Jul 26 11:43:47 2001
***************
*** 22,28 ****
--- 22,33 ----
#include <fcntl.h>
#include <unistd.h>
+ #ifdef __linux__
#include <linux/videodev.h>
+ #endif
+ #ifdef __FreeBSD__
+ #include <machine/ioctl_meteor.h>
+ #endif
#include <sys/ioctl.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>

View File

@ -0,0 +1,19 @@
*** src/endpoint.cpp.orig Thu Jul 26 11:45:30 2001
--- src/endpoint.cpp Thu Jul 26 11:45:42 2001
*************** BOOL GMH323EndPoint::OpenVideoDevice (H3
*** 700,706 ****
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! codec.SetTxFPS (opts->tr_fps);
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);
--- 700,706 ----
codec.SetVideoDevice("/dev/video");
codec.SetVideoInput (0);
codec.SetTxQualityLevel (opts->tr_vq);
! /* codec.SetTxFPS (opts->tr_fps); */
codec.SetBackgroundFill(opts->tr_ub);
codec.SetVideoFormat(opts->video_format);

View File

@ -0,0 +1,148 @@
*** src/webcam.cpp.orig Thu Jul 26 11:46:12 2001
--- src/webcam.cpp Thu Jul 26 11:50:00 2001
*************** void * GM_cam_capture_thread (GM_window_
*** 80,101 ****
int len;
void *pic;
GdkRectangle update_rec;
struct video_window vid_win;
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
vid_win.width = 176;
vid_win.height = 144;
!
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
pic = malloc (176* 144 * 3);
--- 80,107 ----
int len;
void *pic;
GdkRectangle update_rec;
+ #ifdef __linux__
struct video_window vid_win;
+ #endif
update_rec.x = 0;
update_rec.y = 0;
update_rec.width = 176;
update_rec.height = 144;
+ #ifdef __linux__
vid_win.width = 176;
vid_win.height = 144;
! #endif
// if video device not opened
if (gw->dev == -1)
gw->dev = open("/dev/video", O_RDWR);
+
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCSWIN, &vid_win);
+ #endif
pic = malloc (176* 144 * 3);
*************** void * GM_cam_capture_thread (GM_window_
*** 132,138 ****
--- 138,146 ----
int GM_cam_info (GM_window_widgets *gw, GtkWidget *text)
{
+ #ifdef __linux__
struct video_capability vid_cap;
+ #endif
char *maxh, *maxw, *minh, *minw;
int was_opened = 1;
*************** int GM_cam_info (GM_window_widgets *gw,
*** 148,153 ****
--- 156,162 ----
was_opened = 0; // webcam was not opened, so we will close it
}
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGCAP, &vid_cap);
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
*************** int GM_cam_info (GM_window_widgets *gw,
*** 176,181 ****
--- 185,191 ----
else
gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL,
"\n Can not capture : ", -1);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_set_params (GM_window_widget
*** 196,202 ****
--- 206,214 ----
int brightness, int colour, int contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_set_params (GM_window_widget
*** 206,211 ****
--- 218,224 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
vid_pic.whiteness = (int) whiteness * 256;
*************** void GM_cam_set_params (GM_window_widget
*** 214,219 ****
--- 227,233 ----
vid_pic.contrast = (int) contrast * 256;
ioctl (gw->dev, VIDIOCSPICT, &vid_pic);
+ #endif
if (was_opened == 0)
{
*************** void GM_cam_get_params (GM_window_widget
*** 227,233 ****
--- 241,249 ----
int *brightness, int *colour, int *contrast)
{
int was_opened = 1;
+ #ifdef __linux__
struct video_picture vid_pic;
+ #endif
// If the webcam device is not opened, then open it
if (gw->dev == -1)
*************** void GM_cam_get_params (GM_window_widget
*** 237,248 ****
--- 253,266 ----
}
// Read the current values
+ #ifdef __linux__
ioctl (gw->dev, VIDIOCGPICT, &vid_pic);
*whiteness = (int) vid_pic.whiteness / 256;
*brightness = (int) vid_pic.brightness / 256;
*colour = (int) vid_pic.colour / 256;
*contrast = (int) vid_pic.contrast / 256;
+ #endif
if (was_opened == 0)
{

View File

@ -0,0 +1,14 @@
*** src/main.cpp.orig Thu Jul 26 12:01:33 2001
--- src/main.cpp Thu Jul 26 12:01:50 2001
*************** int main (int argc, char ** argv, char *
*** 235,241 ****
--- 235,243 ----
read_config (opts);
// Init
+ #ifdef __linux__
g_thread_init(NULL);
+ #endif
textdomain (PACKAGE);
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
gw->pixmap = NULL;

View File

@ -0,0 +1 @@
GNOME H323 Video Conferencing program, similar to NetMeeting

View File

@ -0,0 +1,11 @@
gnomemeeting is a H323 Video Conferencing application which uses the H323
protocol and the OpenH323 libraries.
It can connect to a variety of other H323 applications including
Microsoft NetMeeting, OpenMCU, OpenAM and OhPhone.
It is very similar to NetMeeting, and also support ILS servers
WWW: http://www.gnomemeeting.org/
Roger Hardiman <roger@freebsd.org>

View File

@ -0,0 +1 @@
bin/gnomemeeting