# Ports collection makefile for: zaptel # Date created: 29 April 2004 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= zaptel PORTVERSION= 1.4.11.2 PORTREVISION= 1 CATEGORIES= misc kld MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= fjoe DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} MAINTAINER= fjoe@FreeBSD.org COMMENT= A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony Cards LIB_DEPENDS= newt.52:${PORTSDIR}/devel/newt NO_PACKAGE= Should be in sync with the kernel to work correctly ONLY_FOR_ARCHS= i386 amd64 MAKE_ENV= KMODDIR=${PREFIX}/lib/zaptel SUB_FILES= pkg-message USE_RC_SUBR= zaptel WRKSRC= ${WRKDIR}/${PORTNAME}-bsd-${PORTVERSION} .include pre-everything:: @if [ ! -f /usr/src/sys/Makefile ]; then \ ${ECHO_MSG} ">> The zaptel 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|||g" \ ${WRKSRC}/tools/ztmonitor.c ${WRKSRC}/tools/zttool.c \ ${WRKSRC}/tools/ztcfg.c ${WRKSRC}/tools/zttest.c pre-su-install: @${MKDIR} ${PREFIX}/lib/zaptel post-install: @${TOUCH} ${PREFIX}/lib/zaptel/linker.hints @${CAT} ${PKGMESSAGE} .include