193f33ad74
Major changes are: - wcfxo driver (X100P single-port FXO) - hx8 firmware driver (hybrid 8-port FXO/FXS/BRI) - all driver parameters are now exported as sysctl's - experimental drivers (source-code ported but not tested on real HW yet): - wctdm (Digium TDM400P: 4-port FXO/FXS) - wcte11xp (Digium TE110P: PCI single-port T1/E1/J1) - wcte12xp (Digium TE120P/TE121/TE122: PCI/PCI-E single-port T1/E1/J1) - vpmadt032 (HW echo canceler) Experimental drivers are available as a port option and are not enabled by default.
77 lines
1.8 KiB
Makefile
77 lines
1.8 KiB
Makefile
# Ports collection makefile for: dahdi
|
|
# Date created: 3 Mar 2010
|
|
# Whom: Maxim Khon <fjoe@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dahdi
|
|
PORTVERSION= ${DAHDI_VERSION:S/-//g}
|
|
PORTREVISION= 0
|
|
CATEGORIES= misc kld
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= fjoe
|
|
DISTNAME= ${PORTNAME}-freebsd-complete-${DAHDI_VERSION}+${DAHDI_TOOLS_VERSION}
|
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
|
COMMENT= Digium/Asterisk Hardware Device Interface
|
|
|
|
BUILD_DEPENDS= gmake:${PORTSDIR}/devel/gmake
|
|
LIB_DEPENDS= newt.52:${PORTSDIR}/devel/newt
|
|
|
|
DAHDI_VERSION= 2.3.0-rc2
|
|
DAHDI_TOOLS_VERSION= 2.3.0
|
|
|
|
NO_PACKAGE= Should be in sync with the kernel to work correctly
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-dahdi=../freebsd --sysconfdir=${PREFIX}/etc --with-newt=${LOCALBASE}
|
|
CONFIGURE_ENV= WGET=/usr/bin/fetch
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= dahdi
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
CONFLICTS= zaptel-[0-9]*
|
|
|
|
MAN8= dahdi_cfg.8\
|
|
dahdi_monitor.8\
|
|
dahdi_scan.8\
|
|
dahdi_test.8\
|
|
dahdi_tool.8\
|
|
fxotune.8
|
|
|
|
OPTIONS= EXPERIMENTAL "Enable experimental drivers" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
|
PLIST_SUB+= X86=""
|
|
.else
|
|
PLIST_SUB+= X86="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_EXPERIMENTAL)
|
|
MAKE_FLAGS+= WITH_EXPERIMENTAL=yes
|
|
PLIST_SUB+= WITH_EXPERIMENTAL=""
|
|
.else
|
|
PLIST_SUB+= WITH_EXPERIMENTAL="@comment "
|
|
.endif
|
|
|
|
pre-everything::
|
|
@if [ ! -f /usr/src/sys/Makefile ]; then \
|
|
${ECHO_MSG} ">> The dahdi port needs FreeBSD kernel source code to compile."; \
|
|
${ECHO_MSG} ">> Please install FreeBSD kernel source code in /usr/src/sys."; \
|
|
${FALSE}; \
|
|
fi
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g'\
|
|
${WRKSRC}/tools/dahdi_cfg.c ${WRKSRC}/tools/fxotune.c\
|
|
${WRKSRC}/tools/doc/dahdi_cfg.8 ${WRKSRC}/tools/doc/fxotune.8
|
|
|
|
pre-su-install:
|
|
@${MKDIR} ${PREFIX}/lib/dahdi
|
|
|
|
post-install:
|
|
@${TOUCH} ${PREFIX}/lib/dahdi/linker.hints
|
|
|
|
.include <bsd.port.post.mk>
|