# Created by: Max Khon <fjoe@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_1_0/misc/openr2/Makefile 365093 2014-08-16 15:30:05Z tijl $

PORTNAME=	openr2
PORTVERSION=	1.3.2
PORTREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}

MAINTAINER=	fjoe@FreeBSD.org
COMMENT=	MFC/R2 call setup library

BUILD_DEPENDS=	${LOCALBASE}/include/dahdi/user.h:${PORTSDIR}/misc/dahdi

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
INSTALL_TARGET=	install-strip
USES=		libtool
USE_LDCONFIG=	yes

post-install:
	${MV} ${STAGEDIR}${PREFIX}/etc/r2proto.conf \
		${STAGEDIR}${PREFIX}/etc/r2proto.conf.sample
	${MV} ${STAGEDIR}${PREFIX}/etc/r2test.conf \
		${STAGEDIR}${PREFIX}/etc/r2test.conf.sample

.include <bsd.port.mk>
