2013-09-20 22:50:57 +02:00
|
|
|
# Created by: Maxim Khon <fjoe@FreeBSD.org>
|
2010-03-03 13:45:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dahdi
|
|
|
|
PORTVERSION= ${DAHDI_VERSION:S/-//g}
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 6
|
2011-04-18 19:38:21 +02:00
|
|
|
CATEGORIES= misc
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= LOCAL/fjoe
|
2010-03-03 13:45:47 +01:00
|
|
|
DISTNAME= ${PORTNAME}-freebsd-complete-${DAHDI_VERSION}+${DAHDI_TOOLS_VERSION}
|
|
|
|
|
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2011-04-18 19:38:21 +02:00
|
|
|
COMMENT= DAHDI userland utilities and libraries
|
2010-03-03 13:45:47 +01:00
|
|
|
|
2014-07-14 20:42:04 +02:00
|
|
|
LIB_DEPENDS= libnewt.so:${PORTSDIR}/devel/newt
|
2010-03-03 13:45:47 +01:00
|
|
|
|
2010-09-04 11:04:24 +02:00
|
|
|
DAHDI_VERSION= 2.4.0-rc5
|
2010-08-26 06:10:10 +02:00
|
|
|
DAHDI_TOOLS_VERSION= 2.4.0-rc1
|
2010-03-03 13:45:47 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-02-21 02:56:19 +01:00
|
|
|
USES= gmake
|
2010-03-03 13:45:47 +01:00
|
|
|
CONFIGURE_ARGS= --with-dahdi=../freebsd --sysconfdir=${PREFIX}/etc --with-newt=${LOCALBASE}
|
|
|
|
CONFIGURE_ENV= WGET=/usr/bin/fetch
|
2011-04-18 19:38:21 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/tools
|
2012-06-08 11:45:15 +02:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
2010-03-03 13:45:47 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CONFLICTS= zaptel-[0-9]*
|
|
|
|
|
|
|
|
post-patch:
|
2010-03-03 14:11:47 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g'\
|
2011-04-18 19:38:21 +02:00
|
|
|
${WRKSRC}/dahdi_cfg.c ${WRKSRC}/fxotune.c\
|
|
|
|
${WRKSRC}/doc/dahdi_cfg.8 ${WRKSRC}/doc/fxotune.8
|
2010-03-03 13:45:47 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-06-08 10:31:52 +02:00
|
|
|
@${ECHO_CMD} "==> Installing dahdi-kmod userland includes"
|
2014-02-21 02:56:19 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/dahdi/compat
|
2012-06-08 11:45:15 +02:00
|
|
|
@for i in `${MAKE} -C ${WRKSRC}/../freebsd/freebsd/dahdi -DPRINT_INCS -V INCS`; do\
|
2012-06-08 10:31:52 +02:00
|
|
|
${ECHO_CMD} "Installing $$i";\
|
2014-02-21 02:56:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../freebsd/include/dahdi/$$i ${STAGEDIR}${PREFIX}/include/dahdi/$$i;\
|
2011-04-18 19:38:21 +02:00
|
|
|
done
|
2010-09-01 08:57:21 +02:00
|
|
|
|
2011-04-18 19:38:21 +02:00
|
|
|
.include <bsd.port.mk>
|