freebsd-ports/net/sipxcommserverlib/Makefile
Martin Wilke c9f4c4d5ee sipxcommserverlib should change the ownership, if necessary, of files and
directories it installs.  Perviously, the toplevel port, sipxpbx, changed
ownership for not only its files, but all the dependant ports too.
- Bump PORTREVISION

Submitted by:   Mike Durian <durian@shadetreesoftware.com> (maintainer)
2007-03-27 08:29:50 +00:00

66 lines
2.1 KiB
Makefile

# Ports collection makefile for: sipxcommserverlib
# Date created: Jan 8, 2007
# Whom: Michael Durian <durian@shadetreesoftware.com>
#
# $FreeBSD$
#
PORTNAME= sipxcommserverlib
PORTVERSION= 3.6.0
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.sipfoundry.org/pub/sipX/3.6/SRC/
MAINTAINER= durian@shadetreesoftware.com
COMMENT= sipX library for communications between components
LIB_DEPENDS= sipXport:${PORTSDIR}/net/sipxportlib \
sipXtack:${PORTSDIR}/net/sipxtacklib \
wwwssl:${PORTSDIR}/www/libwww \
xerces-c:${PORTSDIR}/textproc/xerces-c2 \
odbc:${PORTSDIR}/databases/unixODBC \
pcre.0:${PORTSDIR}/devel/pcre
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed \
ginstall:${PORTSDIR}/sysutils/coreutils \
cppunit-config:${PORTSDIR}/devel/cppunit
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
postmaster:${PORTSDIR}/databases/postgresql81-server
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:259:env automake:19:env
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_PERL5_RUN= yes
LOCALSTATEDIR=${DESTDIR}/var
CONFIGURE_ENV+= wwwdir=${PREFIX}/www/sipX \
INSTALL=`which ginstall`
CONFIGURE_ARGS+= --enable-sip-tls \
--prefix=${PREFIX} \
--localstatedir=${LOCALSTATEDIR}
SUB_LIST= LOCALSTATEDIR=${LOCALSTATEDIR} \
PREFIX=${PREFIX}
SUB_FILES= pkg-install pkg-deinstall
PKGINSTALL= ${WRKDIR}/pkg-install
post-patch:
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/configpp
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/sipx-validate-xml.in
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/pgpatch.sh
@${REINPLACE_CMD} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}/bin/pgpatch.sh
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/src/sipdbtest/sipdbtest.sh.in
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
.if !defined(NOPORTDOCS)
${SED} -e "s,@bindir@,${PREFIX}/bin,g" < ${WRKSRC}/doc/INSTALL.ssl.in \
> ${WRKSRC}/doc/INSTALL.ssl
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/INSTALL.ssl ${DOCSDIR}
.endif
@${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
.include <bsd.port.mk>