aboutsummaryrefslogtreecommitdiffstats
path: root/net/sipxconfig/Makefile
blob: 9a0e8879a3b8d56715afedcd8439ce3c1a5f6794 (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
58
59
60
61
62
63
64
65
66
# Ports collection makefile for: sipxconfig
# Date created: Jan 8, 2007
# Whom: Michael Durian <durian@shadetreesoftware.com>
#
# $FreeBSD$
#

PORTNAME=   sipxconfig
PORTVERSION=    3.6.0
PORTREVISION=   5
CATEGORIES= net
MASTER_SITES=   http://www.sipfoundry.org/pub/sipX/3.6/SRC/

MAINTAINER= durian@shadetreesoftware.com
COMMENT=    sipX server for configuring sipX via a web interface

BUILD_DEPENDS=  ant:${PORTSDIR}/devel/apache-ant \
        ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
        zip:${PORTSDIR}/archivers/zip \
        ginstall:${PORTSDIR}/sysutils/coreutils
LIB_DEPENDS=    sipXport:${PORTSDIR}/net/sipxportlib \
        sipXtack:${PORTSDIR}/net/sipxtacklib \
        sipXcommserver:${PORTSDIR}/net/sipxcommserverlib \
        pcre.0:${PORTSDIR}/devel/pcre
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
        psql:${PORTSDIR}/databases/postgresql81-client

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  autoconf:262:env automake:19:env
USE_JAVA=   1.4+
USE_APACHE= 2.0+
USE_RUBY=   yes
USE_RAKE=   yes
GNU_CONFIGURE=  yes
LOCALSTATEDIR=  /var
CONFIGURE_ENV+= JAVA_HOME=${JAVA_HOME} \
        wwwdir=${PREFIX}/www/sipX \
        INSTALL=`which ginstall`
CONFIGURE_ARGS+=    --enable-sip-tls \
        --prefix=${PREFIX} \
        --localstatedir=${LOCALSTATEDIR} \
        --enable-ruby-bindings
SUB_LIST=   LOCALSTATEDIR=${LOCALSTATEDIR} \
        PREFIX=${PREFIX}
SUB_FILES=  pkg-install pkg-deinstall

PKGINSTALL= ${WRKDIR}/pkg-install

.include <bsd.port.pre.mk>

.if ${RUBY_VER} == 1.8
BUILD_DEPENDS+= gem:${PORTSDIR}/devel/ruby-gems
.endif

post-patch:
    @${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/web/bin/sipxconfig.sh.in
    @${REINPLACE_CMD} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}/web/bin/sipxconfig.sh.in

pre-install:
    @${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL

post-install:
    @${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL

.include <bsd.port.post.mk>