mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
fae8e0f615
- Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer) Tested by: ports@
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# Ports collection makefile for: sipxproxy
|
|
# Date created: Jan 8, 2007
|
|
# Whom: Michael Durian <durian@shadetreesoftware.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sipxproxy
|
|
PORTVERSION= 3.6.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.sipfoundry.org/pub/sipX/3.6/SRC/
|
|
|
|
MAINTAINER= durian@shadetreesoftware.com
|
|
COMMENT= sipX server for handling SIP authorization and call records
|
|
|
|
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
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
|
|
ginstall:${PORTSDIR}/sysutils/coreutils \
|
|
cppunit-config:${PORTSDIR}/devel/cppunit
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_RUBY= yes
|
|
USE_AUTOTOOLS= autoconf:261:env automake:19:env
|
|
GNU_CONFIGURE= yes
|
|
LOCALSTATEDIR= /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
|
|
|
|
.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}/bin/sipxcallresolver.sh.in
|
|
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/sipproxy.sh.in
|
|
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/sipauthproxy.sh.in
|
|
@${REINPLACE_CMD} -e "s,/bin/bash,${PREFIX}/bin/bash," ${WRKSRC}/bin/sipxha-distrib.sh.in
|
|
|
|
pre-install:
|
|
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
@${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|