aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2001-07-27 00:09:08 +0800
committerroger <roger@FreeBSD.org>2001-07-27 00:09:08 +0800
commitb0aaabdace80b06444973ba54fab98b8791ac7cf (patch)
tree7719edf7b8042b0336c90508f39af9146b5603bb
parent394b0511ad72880ca2675019f018d8ee4cd7852c (diff)
downloadfreebsd-ports-gnome-b0aaabdace80b06444973ba54fab98b8791ac7cf.tar.gz
freebsd-ports-gnome-b0aaabdace80b06444973ba54fab98b8791ac7cf.tar.zst
freebsd-ports-gnome-b0aaabdace80b06444973ba54fab98b8791ac7cf.zip
Add gnomemeeting, a gnome H323 videoconferencing client, like NetMeeting
-rw-r--r--net/ekiga/Makefile33
-rw-r--r--net/ekiga/distinfo1
-rw-r--r--net/ekiga/files/patch-aa66
-rw-r--r--net/ekiga/files/patch-ab23
-rw-r--r--net/ekiga/files/patch-ac14
-rw-r--r--net/ekiga/files/patch-ad18
-rw-r--r--net/ekiga/files/patch-ae17
-rw-r--r--net/ekiga/files/patch-af19
-rw-r--r--net/ekiga/files/patch-ag148
-rw-r--r--net/ekiga/files/patch-ah14
-rw-r--r--net/ekiga/pkg-comment1
-rw-r--r--net/ekiga/pkg-descr11
-rw-r--r--net/ekiga/pkg-plist1
-rw-r--r--net/gnomemeeting/Makefile33
-rw-r--r--net/gnomemeeting/distinfo1
-rw-r--r--net/gnomemeeting/files/patch-aa66
-rw-r--r--net/gnomemeeting/files/patch-ab23
-rw-r--r--net/gnomemeeting/files/patch-ac14
-rw-r--r--net/gnomemeeting/files/patch-ad18
-rw-r--r--net/gnomemeeting/files/patch-ae17
-rw-r--r--net/gnomemeeting/files/patch-af19
-rw-r--r--net/gnomemeeting/files/patch-ag148
-rw-r--r--net/gnomemeeting/files/patch-ah14
-rw-r--r--net/gnomemeeting/pkg-comment1
-rw-r--r--net/gnomemeeting/pkg-descr11
-rw-r--r--net/gnomemeeting/pkg-plist1
-rw-r--r--net/gnomemeeting2/Makefile33
-rw-r--r--net/gnomemeeting2/distinfo1
-rw-r--r--net/gnomemeeting2/files/patch-aa66
-rw-r--r--net/gnomemeeting2/files/patch-ab23
-rw-r--r--net/gnomemeeting2/files/patch-ac14
-rw-r--r--net/gnomemeeting2/files/patch-ad18
-rw-r--r--net/gnomemeeting2/files/patch-ae17
-rw-r--r--net/gnomemeeting2/files/patch-af19
-rw-r--r--net/gnomemeeting2/files/patch-ag148
-rw-r--r--net/gnomemeeting2/files/patch-ah14
-rw-r--r--net/gnomemeeting2/pkg-comment1
-rw-r--r--net/gnomemeeting2/pkg-descr11
-rw-r--r--net/gnomemeeting2/pkg-plist1
39 files changed, 1098 insertions, 0 deletions
diff --git a/net/ekiga/Makefile b/net/ekiga/Makefile
new file mode 100644
index 000000000000..531c7fe72751
--- /dev/null
+++ b/net/ekiga/Makefile
@@ -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>
diff --git a/net/ekiga/distinfo b/net/ekiga/distinfo
new file mode 100644
index 000000000000..ea44c94e4498
--- /dev/null
+++ b/net/ekiga/distinfo
@@ -0,0 +1 @@
+MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961
diff --git a/net/ekiga/files/patch-aa b/net/ekiga/files/patch-aa
new file mode 100644
index 000000000000..830812d69a70
--- /dev/null
+++ b/net/ekiga/files/patch-aa
@@ -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 #########################################################################
diff --git a/net/ekiga/files/patch-ab b/net/ekiga/files/patch-ab
new file mode 100644
index 000000000000..2e0f244a530d
--- /dev/null
+++ b/net/ekiga/files/patch-ab
@@ -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"
diff --git a/net/ekiga/files/patch-ac b/net/ekiga/files/patch-ac
new file mode 100644
index 000000000000..a3ce8c75ca1a
--- /dev/null
+++ b/net/ekiga/files/patch-ac
@@ -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>
diff --git a/net/ekiga/files/patch-ad b/net/ekiga/files/patch-ad
new file mode 100644
index 000000000000..9e132a53e43a
--- /dev/null
+++ b/net/ekiga/files/patch-ad
@@ -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>
diff --git a/net/ekiga/files/patch-ae b/net/ekiga/files/patch-ae
new file mode 100644
index 000000000000..4a723486f005
--- /dev/null
+++ b/net/ekiga/files/patch-ae
@@ -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>
diff --git a/net/ekiga/files/patch-af b/net/ekiga/files/patch-af
new file mode 100644
index 000000000000..fc00dddf9f0f
--- /dev/null
+++ b/net/ekiga/files/patch-af
@@ -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);
+
diff --git a/net/ekiga/files/patch-ag b/net/ekiga/files/patch-ag
new file mode 100644
index 000000000000..a4ec7176275e
--- /dev/null
+++ b/net/ekiga/files/patch-ag
@@ -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)
+ {
diff --git a/net/ekiga/files/patch-ah b/net/ekiga/files/patch-ah
new file mode 100644
index 000000000000..17ded12bf208
--- /dev/null
+++ b/net/ekiga/files/patch-ah
@@ -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;
diff --git a/net/ekiga/pkg-comment b/net/ekiga/pkg-comment
new file mode 100644
index 000000000000..bec41f50ea5b
--- /dev/null
+++ b/net/ekiga/pkg-comment
@@ -0,0 +1 @@
+GNOME H323 Video Conferencing program, similar to NetMeeting
diff --git a/net/ekiga/pkg-descr b/net/ekiga/pkg-descr
new file mode 100644
index 000000000000..edc41ed20bbd
--- /dev/null
+++ b/net/ekiga/pkg-descr
@@ -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>
diff --git a/net/ekiga/pkg-plist b/net/ekiga/pkg-plist
new file mode 100644
index 000000000000..e771b62d0cfc
--- /dev/null
+++ b/net/ekiga/pkg-plist
@@ -0,0 +1 @@
+bin/gnomemeeting
diff --git a/net/gnomemeeting/Makefile b/net/gnomemeeting/Makefile
new file mode 100644
index 000000000000..531c7fe72751
--- /dev/null
+++ b/net/gnomemeeting/Makefile
@@ -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>
diff --git a/net/gnomemeeting/distinfo b/net/gnomemeeting/distinfo
new file mode 100644
index 000000000000..ea44c94e4498
--- /dev/null
+++ b/net/gnomemeeting/distinfo
@@ -0,0 +1 @@
+MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961
diff --git a/net/gnomemeeting/files/patch-aa b/net/gnomemeeting/files/patch-aa
new file mode 100644
index 000000000000..830812d69a70
--- /dev/null
+++ b/net/gnomemeeting/files/patch-aa
@@ -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 #########################################################################
diff --git a/net/gnomemeeting/files/patch-ab b/net/gnomemeeting/files/patch-ab
new file mode 100644
index 000000000000..2e0f244a530d
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ab
@@ -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"
diff --git a/net/gnomemeeting/files/patch-ac b/net/gnomemeeting/files/patch-ac
new file mode 100644
index 000000000000..a3ce8c75ca1a
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ac
@@ -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>
diff --git a/net/gnomemeeting/files/patch-ad b/net/gnomemeeting/files/patch-ad
new file mode 100644
index 000000000000..9e132a53e43a
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ad
@@ -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>
diff --git a/net/gnomemeeting/files/patch-ae b/net/gnomemeeting/files/patch-ae
new file mode 100644
index 000000000000..4a723486f005
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ae
@@ -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>
diff --git a/net/gnomemeeting/files/patch-af b/net/gnomemeeting/files/patch-af
new file mode 100644
index 000000000000..fc00dddf9f0f
--- /dev/null
+++ b/net/gnomemeeting/files/patch-af
@@ -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);
+
diff --git a/net/gnomemeeting/files/patch-ag b/net/gnomemeeting/files/patch-ag
new file mode 100644
index 000000000000..a4ec7176275e
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ag
@@ -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)
+ {
diff --git a/net/gnomemeeting/files/patch-ah b/net/gnomemeeting/files/patch-ah
new file mode 100644
index 000000000000..17ded12bf208
--- /dev/null
+++ b/net/gnomemeeting/files/patch-ah
@@ -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;
diff --git a/net/gnomemeeting/pkg-comment b/net/gnomemeeting/pkg-comment
new file mode 100644
index 000000000000..bec41f50ea5b
--- /dev/null
+++ b/net/gnomemeeting/pkg-comment
@@ -0,0 +1 @@
+GNOME H323 Video Conferencing program, similar to NetMeeting
diff --git a/net/gnomemeeting/pkg-descr b/net/gnomemeeting/pkg-descr
new file mode 100644
index 000000000000..edc41ed20bbd
--- /dev/null
+++ b/net/gnomemeeting/pkg-descr
@@ -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>
diff --git a/net/gnomemeeting/pkg-plist b/net/gnomemeeting/pkg-plist
new file mode 100644
index 000000000000..e771b62d0cfc
--- /dev/null
+++ b/net/gnomemeeting/pkg-plist
@@ -0,0 +1 @@
+bin/gnomemeeting
diff --git a/net/gnomemeeting2/Makefile b/net/gnomemeeting2/Makefile
new file mode 100644
index 000000000000..531c7fe72751
--- /dev/null
+++ b/net/gnomemeeting2/Makefile
@@ -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>
diff --git a/net/gnomemeeting2/distinfo b/net/gnomemeeting2/distinfo
new file mode 100644
index 000000000000..ea44c94e4498
--- /dev/null
+++ b/net/gnomemeeting2/distinfo
@@ -0,0 +1 @@
+MD5 (gnomemeeting-0.9-1.tar.gz) = 856e984c30e80c0e5e08e554113be961
diff --git a/net/gnomemeeting2/files/patch-aa b/net/gnomemeeting2/files/patch-aa
new file mode 100644
index 000000000000..830812d69a70
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-aa
@@ -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 #########################################################################
diff --git a/net/gnomemeeting2/files/patch-ab b/net/gnomemeeting2/files/patch-ab
new file mode 100644
index 000000000000..2e0f244a530d
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ab
@@ -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"
diff --git a/net/gnomemeeting2/files/patch-ac b/net/gnomemeeting2/files/patch-ac
new file mode 100644
index 000000000000..a3ce8c75ca1a
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ac
@@ -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>
diff --git a/net/gnomemeeting2/files/patch-ad b/net/gnomemeeting2/files/patch-ad
new file mode 100644
index 000000000000..9e132a53e43a
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ad
@@ -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>
diff --git a/net/gnomemeeting2/files/patch-ae b/net/gnomemeeting2/files/patch-ae
new file mode 100644
index 000000000000..4a723486f005
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ae
@@ -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>
diff --git a/net/gnomemeeting2/files/patch-af b/net/gnomemeeting2/files/patch-af
new file mode 100644
index 000000000000..fc00dddf9f0f
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-af
@@ -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);
+
diff --git a/net/gnomemeeting2/files/patch-ag b/net/gnomemeeting2/files/patch-ag
new file mode 100644
index 000000000000..a4ec7176275e
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ag
@@ -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)
+ {
diff --git a/net/gnomemeeting2/files/patch-ah b/net/gnomemeeting2/files/patch-ah
new file mode 100644
index 000000000000..17ded12bf208
--- /dev/null
+++ b/net/gnomemeeting2/files/patch-ah
@@ -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;
diff --git a/net/gnomemeeting2/pkg-comment b/net/gnomemeeting2/pkg-comment
new file mode 100644
index 000000000000..bec41f50ea5b
--- /dev/null
+++ b/net/gnomemeeting2/pkg-comment
@@ -0,0 +1 @@
+GNOME H323 Video Conferencing program, similar to NetMeeting
diff --git a/net/gnomemeeting2/pkg-descr b/net/gnomemeeting2/pkg-descr
new file mode 100644
index 000000000000..edc41ed20bbd
--- /dev/null
+++ b/net/gnomemeeting2/pkg-descr
@@ -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>
diff --git a/net/gnomemeeting2/pkg-plist b/net/gnomemeeting2/pkg-plist
new file mode 100644
index 000000000000..e771b62d0cfc
--- /dev/null
+++ b/net/gnomemeeting2/pkg-plist
@@ -0,0 +1 @@
+bin/gnomemeeting