# New ports collection makefile for:	vat
# Version required:	4.0b2
# Date created:		2 November 1996
# Whom:			fenner
#
# $FreeBSD$
#

DISTNAME=	vat-4.0b2
CATEGORIES=	mbone tk80
MASTER_SITES=	ftp://ftp.ee.lbl.gov/conferencing/vat/alpha-test/
DISTFILES=	vatsrc-4.0b2.tar.gz

MAINTAINER=	fenner@FreeBSD.org

GSM_DIR=	${.CURDIR}/../../audio/gsm
GSM_WORK=	${WRKDIRPREFIX}${GSM_DIR}/work/gsm-1.0-pl10

# If configure is changed to look for libgsm.a in ${PREFIX}/lib, then
# we can use this first BUILD_DEPENDS and save some work.
#BUILD_DEPENDS=	${GSM_WORK}/inc/private.h:${GSM_DIR}:patch
BUILD_DEPENDS=	${GSM_WORK}/lib/libgsm.a:${GSM_DIR}:build
LIB_DEPENDS=	tk80.1:${PORTSDIR}/x11-toolkits/tk80 \
		gsm.1:${GSM_DIR}

USE_X_PREFIX=	yes
USE_AUTOCONF=	yes
CONFIGURE_ARGS=	--with-gsm=${GSM_WORK}
INSTALL_TARGET=	install install-man
MAN1=		vat.1

post-install:
	strip ${PREFIX}/bin/vat

.include <bsd.port.mk>