# Ports collection Makefile for:	gnomemeeting
# Date created:				24/07/2001
# Whom:					roger@FreeBSD.org
#
# $FreeBSD: ports/net/gnomemeeting/Makefile,v 1.41 2004/04/05 03:29:55 marcus Exp $
#

PORTNAME=	gnomemeeting
PORTVERSION=	0.98.5
PORTREVISION=	3
CATEGORIES=	net gnome
MASTER_SITES=	ftp://ftp.gnome.org/pub/GNOME/sources/gnomemeeting/0.98/ \
		# http://www.gnomemeeting.org/downloads/0.98.0/sources/

MAINTAINER=	roger@FreeBSD.org
COMMENT=	GNOME H323 Video Conferencing program, similar to NetMeeting

BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/net/openh323:build

# note, we do not want to clean openh323, otherwise it has to build
# it all over again which can take several hours.
NOCLEANDEPENDS= yes

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_GNOME=	libgnomeui libbonobo gnomeprefix gnomehack
USE_OPENLDAP=	yes
USE_BISON=	yes
# Clear configure target so we stop getting binaries prefixed with i386-portbld-freebsd46
CONFIGURE_TARGET=
GNU_CONFIGURE=	YES
CONFIGURE_ENV=  OSTYPE=${OPSYS} \
		LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib" \
		PTLIBDIR=${WRKDIRPREFIX}${.CURDIR}/../../devel/pwlib/work/pwlib \
		OPENH323DIR=${WRKDIRPREFIX}${.CURDIR}/../openh323/work/openh323 \
		SDL_CONFIG=${LOCALBASE}/bin/sdl11-config \
		CPPFLAGS="-I${LOCALBASE}/include"

CONFIGURE_ARGS= --with-ptlib-includes=${WRKDIRPREFIX}${.CURDIR}/../../devel/pwlib/work/pwlib/include/ptlib \
		--with-ptlib-libs=${WRKDIRPREFIX}${.CURDIR}/../../devel/pwlib/work/pwlib/lib \
		--with-openh323-includes=${WRKDIRPREFIX}${.CURDIR}/../openh323/work/openh323/include \
		--with-openh323-libs=${WRKDIRPREFIX}${.CURDIR}/../openh323/work/openh323/lib \
		--with-ldap-includes=${LOCALBASE}/include \
		--with-openldap-libs=${LOCALBASE}/lib

MAN1=		gnomemeeting.1
.include <bsd.port.mk>
