aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ixj/Makefile
blob: 9e289a2848d8b8b5444b40e06c5e545b55bbac6c (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:    ixj
# Date Created:             Mon Jan 14 2002
# Whom:                 Roger Hardiman <roger@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   ixj
PORTVERSION=    1.1.0
CATEGORIES= comms
MASTER_SITES=   ftp://telepresence.dmem.strath.ac.uk/pub/openh323/
DISTNAME=   ixj_freebsd-${PORTVERSION}

MAINTAINER= roger@freebsd.org

ONLY_FOR_ARCHS= i386

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

post-patch:
    ${CP} ${FILESDIR}/ixj.sh ${WRKSRC}
    ${PERL} -pi.orig -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_DATA} ${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/
    @${CAT} ${PKGMESSAGE}

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.mk>