aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk-oh323/Makefile
blob: d1951a63456224bd0eeb0a473e2d24891e361167 (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
# New ports collection makefile for:    asterisk-oh323
# Date created:     17 Jun 2005
# Whom:         Andriy Pylypenko <bamby@portaone.com>
#
# $FreeBSD$
#

PORTNAME=   asterisk-oh323
PORTVERSION=    0.7.3.1
PORTREVISION=   2
CATEGORIES= net
MASTER_SITES=   http://www.b2bua.org/chrome/site/

MAINTAINER= bamby@sippysoft.com
COMMENT=    A H.323 support module for the Asterisk soft PBX

BUILD_DEPENDS=  ${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS=    pt_r.1:${PORTSDIR}/devel/pwlib\
            h323_r.1:${PORTSDIR}/net/openh323

USE_GMAKE=  yes
MAKE_ENV=   MKDIR="${MKDIR}" \
        PWLIBDIR=${LOCALBASE}/share/pwlib \
        OPENH323DIR=${LOCALBASE}/share/openh323 \
        CPP="${CXX}" \
        SYSLIBDIR=${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

pre-configure:
    if ${GREP} -sq fixup_codecs ${LOCALBASE}/include/asterisk/channel.h; \
    then \
        ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/codecnego.diff; \
    fi

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

.include <bsd.port.post.mk>