# New ports collection makefile for:	asterisk-oh323
# Date created:		17 Jun 2005
# Whom:			Andriy Pylypenko <bamby@portaone.com>
#
# $FreeBSD: ports/net/asterisk-oh323/Makefile,v 1.9 2006/09/17 01:44:28 kris Exp $
#

PORTNAME=	asterisk-oh323
PORTVERSION=	0.7.3
PORTREVISION=	3
CATEGORIES=	net
MASTER_SITES=	http://www.inaccessnetworks.com/projects/asterisk-oh323/download/

MAINTAINER=	bamby@portaone.com
COMMENT=	A H.323 support module for the Asterisk soft PBX

BUILD_DEPENDS= 	${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS= 	pt_r.1:${PORTSDIR}/devel/pwlib\
	    	h323_r.1:${PORTSDIR}/net/openh323

USE_GMAKE=	yes
MAKE_ENV=	MKDIR="${MKDIR}" \
		PWLIBDIR=${LOCALBASE}/share/pwlib \
		OPENH323DIR=${LOCALBASE}/share/openh323 \
		CPP="${CXX}" \
		SYSLIBDIR=${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on amd64 or sparc64
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
