aboutsummaryrefslogtreecommitdiffstats
path: root/comms/vpb-driver/Makefile
blob: b47cc850c0423d15e9f676a4aded388482b7bfa2 (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
# New ports collection makefile for:    vpb-driver
# Date created:             11 Feb 2005
# Whom:                 Chris Forkin <chris@forkin.com>
#
# $FreeBSD$
#

PORTNAME=   vpb-driver
PORTVERSION=    2.4.9
PORTREVISION=   1
CATEGORIES= comms
MASTER_SITES=   http://www.voicetronix.com/Downloads/

MAINTAINER= chris@forkin.com
COMMENT=    Device-driver for the Voicetronix OpenLine4 PCI telephony cards

USE_GMAKE=  yes
USE_RC_SUBR=    vpb.sh
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAKE_ENV+=  KMODDIR=${PREFIX}/lib

SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \
        -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
        -e 's,%%DATADIR%%,${DATADIR},g' \
        -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
        -e 's,%%RC_SUBR%%,${RC_SUBR},g' \

.include <bsd.port.pre.mk>

.if !exists(/usr/src/sys)
IGNORE=     requires kernel source (/usr/src/sys) to build
.endif

NOT_FOR_ARCHS=  sparc64

.if ${OSVERSION} < 502000 || ${OSVERSION} >= 600000
IGNORE=     is not for FreeBSD versions < 502000, or >= 600000
.endif

do-configure:
    @${REINPLACE_CMD} -E ${SED_SCRIPT} ${WRKSRC}/src/vpbreg.cpp

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>