1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

- added openssl

- disable dahdi
- New port options: Stream Control Transmission Protocol, AMR Narrow Band encoder (opencore), iLBC codec

PR:		ports/164398
Approved by:	gabor (mentor)
This commit is contained in:
Michael Scheidell 2012-01-24 12:03:17 +00:00
parent 8417519cc6
commit afcf4ba1c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289732
4 changed files with 57 additions and 8 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= yate
PORTVERSION= 3.3.2.p1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://yate.null.ro/tarballs/yate3/
DISTNAME= yate-3.3.2-1
@ -18,7 +19,7 @@ LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \
ONLY_FOR_ARCHS= i386 amd64 sparc64
USE_AUTOTOOLS= autoconf:env
USE_AUTOTOOLS= autoconf
USE_GMAKE= yes
USE_BISON= build
USE_LDCONFIG= yes
@ -28,6 +29,7 @@ GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/yate
CONFIGURE_ARGS= --without-fdsize \
--without-libqt4 \
--with-zlib=/usr
LDFLAGS+= -L${LOCALBASE}/lib
@ -43,6 +45,9 @@ MAN8= yate-config.8 yate.8
OPTIONS= MYSQL "MySQL Database support" off \
PGSQL "PostgreSQL Database support" off \
SCTP "Stream Control Transmission Protocol" on \
AMR_NB "AMR Narrow Band encoder (opencore)" off \
ILBC "Enable iLBC codec" off \
SPANDSP "Enable Spandsp faxing support" off \
DAHDI "Dahdi driver" off \
H323 "H323 software channel/protocol support" off \
@ -77,6 +82,32 @@ CONFIGURE_ARGS+= --without-libpq
PLIST_SUB+= WITH_PGSQL="@comment "
.endif
.if !defined(WITHOUT_SCTP)
CONFIGURE_ARGS+= --enable-sctp
MAKE_ENV+= WITH_SCTP=1
PLIST_SUB+= WITH_SCTP=""
.else
PLIST_SUB+= WITH_SCTP="@comment "
.endif
.if !defined(WITHOUT_AMR_NB)
LIB_DEPENDS+= opencore-amrnb.0:${PORTSDIR}/audio/opencore-amr
CONFIGURE_ARGS+= --with-amrnb=${LOCALBASE}
PLIST_SUB+= WITH_AMR_NB=""
.else
CONFIGURE_ARGS+= --without-amrnb
PLIST_SUB+= WITH_AMR_NB="@comment "
.endif
.if !defined(WITHOUT_ILBC)
LIB_DEPENDS+= ilbc.0:${PORTSDIR}/net/ilbc
CONFIGURE_ARGS+= --enable-ilbc
PLIST_SUB+= WITH_ILBC=""
.else
CONFIGURE_ARGS+= --disable-ilbc
PLIST_SUB+= WITH_ILBC="@comment "
.endif
.if !defined(WITHOUT_SPANDSP)
CONFIGURE_ARGS+= --with-spandsp=${LOCALBASE}/include
LIB_DEPENDS+= spandsp.2:${PORTSDIR}/comms/spandsp-devel
@ -93,7 +124,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/include/dahdi/user.h:${PORTSDIR}/misc/dahdi
MAKE_ENV+= WITH_DAHDI=1
PLIST_SUB+= WITH_DAHDI=""
.else
CONFIGURE_ARGS+= --without-dahdi
CONFIGURE_ARGS+= --disable-dahdi
PLIST_SUB+= WITH_DAHDI="@comment "
.endif
@ -110,9 +141,8 @@ PLIST_SUB+= WITH_H323="@comment "
.endif
.if !defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --with-openssl
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS+= ssl.7:${PORTSDIR}/security/openssl
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
MAKE_ENV+= WITH_SSL=1
PLIST_SUB+= WITH_SSL=""
.else

View File

@ -1,5 +1,5 @@
--- ./configure.in.orig 2011-04-12 18:04:04.000000000 +0400
+++ ./configure.in 2011-04-13 15:25:28.000000000 +0400
+++ ./configure.in 2012-01-17 00:54:49.000000000 +0400
@@ -476,7 +476,7 @@
AC_SUBST(MYSQL_VER)
@ -45,3 +45,12 @@
if [[ "$vpw" '<' "01.06.00" ]]; then
# Very old pwlib needs more includes.
PWLIB_INC="$PWLIB_INC/unix/ptlib $PWLIB_INC/unix $PWLIB_INC"
@@ -1036,7 +1036,7 @@
AC_MSG_CHECKING([for OpenSSL in $ac_cv_use_openssl])
verssl=no
if [[ -f "$ac_cv_use_openssl/include/openssl/opensslconf.h" ]]; then
- verssl=`sed -n 's/^#define SHLIB_VERSION_NUMBER "\([0-9.]\+\)".*/\1/p' <$ac_cv_use_openssl/include/openssl/opensslv.h 2>/dev/null`
+ verssl=`sed -n 's/^#define SHLIB_VERSION_NUMBER "\([0-9.]*\)"/\1/p' <$ac_cv_use_openssl/include/openssl/opensslv.h 2>/dev/null`
if [[ "x$verssl" != "x" ]]; then
HAVE_OPENSSL=yes
OPENSSL_VER="$verssl"

View File

@ -1,5 +1,5 @@
--- ./modules/Makefile.in.orig 2011-03-03 17:48:39.000000000 +0300
+++ ./modules/Makefile.in 2011-04-13 15:26:16.000000000 +0400
+++ ./modules/Makefile.in 2012-01-17 00:53:04.000000000 +0400
@@ -32,7 +32,7 @@
ZLIB_LIB := @ZLIB_LIB@
SED := sed
@ -9,3 +9,12 @@
CFLAGS := @CFLAGS@ @MODULE_CFLAGS@ @INLINE_FLAGS@
CPPFLAGS := @CFLAGS@ @MODULE_CPPFLAGS@ @INLINE_FLAGS@
LDFLAGS:= @LDFLAGS@
@@ -316,7 +316,7 @@
server/mgcpgw.yate: LOCALLIBS = -lyatemgcp
server/lksctp.yate: LOCALFLAGS = @SCTP_FLAGS@
-server/lksctp.yate: LOCALLIBS = -lsctp
+server/lksctp.yate: LOCALLIBS =
ilbccodec.yate: ../libs/ilbc/libilbc.a
ilbccodec.yate: LOCALFLAGS = @ILBC_INC@

View File

@ -211,7 +211,7 @@ lib/yate/extmodule.yate
lib/yate/filetransfer.yate
lib/yate/gsmcodec.yate
%%WITH_H323%%lib/yate/h323chan.yate
lib/yate/ilbccodec.yate
%%WITH_ILBC%%lib/yate/ilbccodec.yate
lib/yate/jabber/jabberserver.yate
lib/yate/jabber/jbfeatures.yate
lib/yate/moh.yate
@ -234,6 +234,7 @@ lib/yate/server/dbwave.yate
lib/yate/server/heartbeat.yate
lib/yate/server/isupmangler.yate
lib/yate/server/lateroute.yate
%%WITH_SCTP%%lib/yate/server/lksctp.yate
lib/yate/server/mgcpca.yate
lib/yate/server/mgcpgw.yate
lib/yate/server/monitoring.yate