aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ixj/Makefile
blob: c9a5494e9aec6ba69bfdc0cbdb9f69436fc89609 (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
52
53
54
55
56
57
# New ports collection makefile for:    ixj
# Date Created:             Mon Jan 14 2002
# Whom:                 Roger Hardiman <roger@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   ixj
PORTVERSION=    1.1.0
PORTREVISION=   1
CATEGORIES= comms kld
MASTER_SITES=   http://ftp.osuosl.org/pub/FreeBSD/distfiles/
DISTNAME=   ixj_freebsd-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Driver for Quicknet Internet PhoneJack and LineJack. Used by OpenH323
DEPRECATED= does not work on any supported FreeBSD version
EXPIRATION_DATE=    2007-07-29

ONLY_FOR_ARCHS= i386

.include <bsd.port.pre.mk>

IGNORE= cannot be installed since the driver has not been updated for 5.x kernels. Still uses machine/ipl.h

WRKSRC=     ${WRKDIR}/ixj_freebsd
MAKEFILE=   Makefile.BSD

post-patch:
    ${CP} ${FILESDIR}/ixj.sh ${WRKSRC}
    ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/ixj.sh

pre-build:
.if !exists(${SRC_BASE}/sys/Makefile)
    @${ECHO} "*************************************************"; \
    ${ECHO} "This port requires the kernel source be available"; \
    ${ECHO} "*************************************************"; \
    exit 1
.endif

do-install:
    @${MKDIR} ${PREFIX}/modules
    @${INSTALL_KLD} ${WRKSRC}/ixj.ko ${PREFIX}/modules
    @${MKDIR} ${PREFIX}/include/sys
    @${INSTALL_DATA} ${WRKSRC}/ixjuser.h ${PREFIX}/include/sys
    @${INSTALL_DATA} ${WRKSRC}/telephony.h ${PREFIX}/include/sys
    @${INSTALL_SCRIPT} ${WRKSRC}/ixj.sh ${PREFIX}/etc/rc.d/
    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

header-install: patch
    @${MKDIR} ${PREFIX}/include/sys
    @${INSTALL_DATA} ${WRKSRC}/ixjuser.h ${PREFIX}/include/sys
    @${INSTALL_DATA} ${WRKSRC}/telephony.h ${PREFIX}/include/sys

.include <bsd.port.post.mk>