mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
53ad11ba34
Submitted by: sat
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# Ports collection makefile for: zaptel
|
|
# Date created: 29 April 2004
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= zaptel
|
|
PORTVERSION= 1.4.6
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc kld
|
|
MASTER_SITES= http://www.pbxpress.com/~gonzo/
|
|
DISTNAME= ${PORTNAME}-bsd-${PORTVERSION}
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
COMMENT= A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony Cards
|
|
|
|
LIB_DEPENDS= newt.51:${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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
PLIST_SUB+= WITH_TAU32="@comment "
|
|
.else
|
|
PLIST_SUB+= WITH_TAU32=""
|
|
MAKE_ARGS+= WITH_TAU32="yes"
|
|
.endif
|
|
|
|
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|<getopt.h>|<unistd.h>|g" \
|
|
${WRKSRC}/test/ztmonitor.c ${WRKSRC}/test/zttool.c \
|
|
${WRKSRC}/ztcfg/ztcfg.c
|
|
|
|
pre-su-install:
|
|
@${MKDIR} ${PREFIX}/lib/zaptel
|
|
|
|
post-install:
|
|
@${TOUCH} ${PREFIX}/lib/zaptel/linker.hints
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|