# New ports collection makefile for:	openh323
# Date created:		Thu Feb 17 15:00:48 GMT 2000
# Whom:			Roger Hardiman <roger@freebsd.org>
#
# $FreeBSD: ports/net/openh323/Makefile,v 1.71 2006/03/14 01:51:49 mnag Exp $
#

PORTNAME=	openh323
PORTVERSION=	1.17.3
PORTREVISION=	2
CATEGORIES=	net
MASTER_SITES=	http://www.voxgratia.org/releases/
DISTNAME=	${PORTNAME}-v${PORTVERSION:S/./_/g}-src-
EXTRACT_SUFX=	tar.gz

MAINTAINER=	steve@energistic.com
COMMENT=	A H323 Video Conferencing library

LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2 \
		pt_r.1:${PORTSDIR}/devel/pwlib

WRKSRC=		${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}

USE_BISON=	yes
USE_GMAKE=	yes
USE_OPENLDAP=	yes
USE_AUTOTOOLS=	autoconf:259
GNU_CONFIGURE=	yes
INSTALLS_SHLIB=	yes

ALL_TARGET=	optshared
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include" \
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" BUILDTIME="YES"
MAKE_ENV=	BUILDTIME="YES"
NO_FILTER_SHLIBS=	yes

.include <bsd.port.pre.mk>

.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
CFLAGS+=	-fPIC
.endif

.include <bsd.port.post.mk>
