# $OpenBSD: Makefile,v 1.17 2005/03/08 07:57:51 alek Exp $

COMMENT=	"record, playback and monitor RTPv2 data streams"

DISTNAME=	rtptools-1.9
CATEGORIES=	mbone
MASTER_SITES=	http://www.cs.columbia.edu/IRT/software/rtptools/download/

# License: NONE
PERMIT_PACKAGE_CDROM=	"no license"
PERMIT_PACKAGE_FTP=	"no license"
PERMIT_DISTFILES_CDROM=	"no license"
PERMIT_DISTFILES_FTP=	"no license"
WANTLIB=		c

MAKE_ENV=	ARCH=openbsd CC=cc

NO_REGRESS=	Yes

BINFILES=	rtpdump rtpplay rtpsend rtptrans
DOCFILES=	README CHANGES.html rtptools.html

post-extract:
	@ln -s ${WRKSRC}/freebsd ${WRKSRC}/openbsd
	@ln -s ${WRKSRC}/Makefile.freebsd ${WRKSRC}/Makefile.openbsd

do-install:
.for i in ${BINFILES}
	${INSTALL_PROGRAM} ${WRKSRC}/openbsd/${i} ${PREFIX}/bin
.endfor
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rtptools
.for i in ${DOCFILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/rtptools
.endfor

.include <bsd.port.mk>
