aboutsummaryrefslogtreecommitdiffstats
path: root/net/zaptel12/Makefile
blob: 51cc74dbcce040e49f63da9b23966e1b85de3fa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Ports collection makefile for:    zaptel
# Date created:             29 April 2004
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   zaptel
PORTVERSION=    0.8
CATEGORIES= misc
MASTER_SITES=   http://www.portaone.com/~sobomax/
DISTNAME=   ${PORTNAME}-freebsd-${PORTVERSION}

MAINTAINER= sobomax@FreeBSD.org
COMMENT=    A FreeBSD Driver for Digium X100P/TDM400P 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

PKGMESSAGE= ${WRKSRC}/.MESSAGE
MAKE_ENV=   KMODDIR=${PREFIX}/lib/zaptel

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=     "requires FreeBSD 5.x to build."
.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

pre-install:
    @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
        ${PKGMESSAGE}
    @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/zaptel.sh > \
        ${WRKDIR}/zaptel.sh.sample
    @${MKDIR} ${PREFIX}/lib/zaptel

post-install:
    @${TOUCH} ${PREFIX}/lib/zaptel/linker.hints
    @${INSTALL_SCRIPT} ${WRKDIR}/zaptel.sh.sample ${PREFIX}/etc/rc.d
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>