1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/misc/dahdi/Makefile
Muhammad Moinur Rahman 996b40315b
misc/dahdi: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-21 12:08:22 +01:00

43 lines
1.2 KiB
Makefile

PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
PORTREVISION= 8
CATEGORIES= misc
MASTER_SITES= LOCAL/fjoe
DISTNAME= ${PORTNAME}-freebsd-complete-${DAHDI_VERSION}+${DAHDI_TOOLS_VERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= DAHDI userland utilities and libraries
WWW= http://www.asterisk.org/dahdi/
LIB_DEPENDS= libnewt.so:devel/newt
DAHDI_VERSION= 2.4.0-rc5
DAHDI_TOOLS_VERSION= 2.4.0-rc1
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
USES= gmake
CONFIGURE_ARGS= --with-dahdi=../freebsd --sysconfdir=${PREFIX}/etc --with-newt=${LOCALBASE}
CONFIGURE_ENV= WGET=/usr/bin/fetch
WRKSRC= ${WRKDIR}/${DISTNAME}/tools
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
USE_LDCONFIG= yes
MAKE_ENV= HOST_CC=${CC}
CONFLICTS= zaptel
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:
@${ECHO_CMD} "==> Installing dahdi-kmod userland includes"
@${MKDIR} ${STAGEDIR}${PREFIX}/include/dahdi/compat
@for i in `${MAKE} -C ${WRKSRC}/../freebsd/freebsd/dahdi -DPRINT_INCS -V INCS`; do\
${ECHO_CMD} "Installing $$i";\
${INSTALL_DATA} ${WRKSRC}/../freebsd/include/dahdi/$$i ${STAGEDIR}${PREFIX}/include/dahdi/$$i;\
done
.include <bsd.port.mk>