mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
af315351aa
- dahdi - userland libraries and utilities - dahdi-kmod - kernel modules dahdi port can be packaged and this allows asterisk package (that depends on dahdi) to be built as well.
53 lines
1.3 KiB
Makefile
53 lines
1.3 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= 5
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}\
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/:firmware
|
|
MASTER_SITE_SUBDIR= fjoe
|
|
DISTNAME= ${PORTNAME}-freebsd-complete-${DAHDI_VERSION}+${DAHDI_TOOLS_VERSION}
|
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
|
COMMENT= DAHDI userland utilities and libraries
|
|
|
|
LIB_DEPENDS= newt.52:${PORTSDIR}/devel/newt
|
|
|
|
DAHDI_VERSION= 2.4.0-rc5
|
|
DAHDI_TOOLS_VERSION= 2.4.0-rc1
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
CONFIGURE_ARGS= --with-dahdi=../freebsd --sysconfdir=${PREFIX}/etc --with-newt=${LOCALBASE}
|
|
CONFIGURE_ENV= WGET=/usr/bin/fetch
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/tools
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFLICTS= zaptel-[0-9]*
|
|
|
|
MAN8= dahdi_cfg.8\
|
|
dahdi_monitor.8\
|
|
dahdi_scan.8\
|
|
dahdi_test.8\
|
|
dahdi_tool.8\
|
|
fxotune.8
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g'\
|
|
${WRKSRC}/dahdi_cfg.c ${WRKSRC}/fxotune.c\
|
|
${WRKSRC}/doc/dahdi_cfg.8 ${WRKSRC}/doc/fxotune.8
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/include/dahdi/compat
|
|
@for i in `${MAKE} -C ${WRKSRC}/../freebsd/freebsd/dahdi -V INCS`; do\
|
|
${INSTALL_DATA} ${WRKSRC}/../freebsd/include/dahdi/$$i ${PREFIX}/include/dahdi/$$i;\
|
|
done
|
|
|
|
.include <bsd.port.mk>
|