diff options
author | madpilot <madpilot@FreeBSD.org> | 2019-11-24 18:10:30 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2019-11-24 18:10:30 +0800 |
commit | 67e105164203f4982ad4910998c50bba3b65a501 (patch) | |
tree | 7f89a2b5ace9ff447f9e52cda9dc8ff537e08bdb /net | |
parent | 91c7e943d028994bccac6f8afcbc05a2077e3fb2 (diff) | |
download | freebsd-ports-gnome-67e105164203f4982ad4910998c50bba3b65a501.tar.gz freebsd-ports-gnome-67e105164203f4982ad4910998c50bba3b65a501.tar.zst freebsd-ports-gnome-67e105164203f4982ad4910998c50bba3b65a501.zip |
- Update asterisk-chan_sccp to 4.3.2_delta
- Convert asterisk version OPTIONS to FLAVORS
PR: 238252
Submitted by: Diederik de Groot <ddegroot@talon.nl> (maintainer)
Approved by: portmgr (mat)
Differential Revision: https://reviews.freebsd.org/D21485
Diffstat (limited to 'net')
-rw-r--r-- | net/asterisk-chan_sccp/Makefile | 36 | ||||
-rw-r--r-- | net/asterisk-chan_sccp/distinfo | 6 | ||||
-rw-r--r-- | net/asterisk-chan_sccp/files/patch-fix-new-asterisk-include | 85 |
3 files changed, 22 insertions, 105 deletions
diff --git a/net/asterisk-chan_sccp/Makefile b/net/asterisk-chan_sccp/Makefile index a1c99e7d1fa8..07b11b5f7212 100644 --- a/net/asterisk-chan_sccp/Makefile +++ b/net/asterisk-chan_sccp/Makefile @@ -4,8 +4,8 @@ PORTNAME= chan_sccp DISTVERSIONPREFIX= v DISTVERSION= 4.3.2 -PORTREVISION= 1 -DISTVERSIONSUFFIX= -gamma +DISTVERSIONSUFFIX= -delta +PORTREVISION= 2 CATEGORIES= net PKGNAMEPREFIX= asterisk- @@ -15,7 +15,11 @@ COMMENT= Replacement for the SCCP channel driver in Asterisk LICENSE= GPLv1 LICENSE_FILE= ${WRKSRC}/COPYING -USES= autoreconf gettext-tools iconv libtool +FLAVORS= asterisk13 asterisk16 +FLAVOR?= ${FLAVORS:[1]} + +USES= autoreconf gettext-tools iconv libtool localbase + USE_GITHUB= yes GH_ACCOUNT= chan-sccp GH_PROJECT= chan-sccp @@ -35,22 +39,20 @@ PLIST_FILES= etc/asterisk/sccp.conf.annotated \ lib/asterisk/modules/chan_sccp.so \ share/asterisk/documentation/thirdparty/chan_sccp-en_US.xml -OPTIONS_DEFINE= CONFERENCE VIDEO -OPTIONS_DEFAULT= AST16 CONFERENCE VIDEO -OPTIONS_SINGLE= ASTVER -OPTIONS_SINGLE_ASTVER= AST13 AST16 - -ASTVER_DESC= Which asterisk to build for -AST13_DESC= Asterisk 13 -AST16_DESC= Asterisk 16 -CONFERENCE_DESC= Enable Conference Support -VIDEO_DESC= Enable Video Support +asterisk13_PKGNAMEPREFIX= asterisk13- +asterisk13_CONFLICTS_INSTALL= asterisk16-chan_sccp +asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13 +asterisk13_RUN_DEPENDS= asterisk:net/asterisk13 -AST13_BUILD_DEPENDS= asterisk13>0:net/asterisk13 -AST13_RUN_DEPENDS= asterisk13>0:net/asterisk13 +asterisk16_PKGNAMEPREFIX= asterisk16- +asterisk16_CONFLICTS_INSTALL= asterisk13-chan_sccp +asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16 +asterisk16_RUN_DEPENDS= asterisk:net/asterisk16 -AST16_BUILD_DEPENDS= asterisk16>0:net/asterisk16 -AST16_RUN_DEPENDS= asterisk16>0:net/asterisk16 +OPTIONS_DEFINE= CONFERENCE VIDEO +OPTIONS_DEFAULT= CONFERENCE VIDEO +CONFERENCE_DESC= Enable Conference Support +VIDEO_DESC= Enable Video Support CONFERENCE_CONFIGURE_ENABLE= conference VIDEO_CONFIGURE_ENABLE= video diff --git a/net/asterisk-chan_sccp/distinfo b/net/asterisk-chan_sccp/distinfo index 4e251c65f183..0f1fb2d64c38 100644 --- a/net/asterisk-chan_sccp/distinfo +++ b/net/asterisk-chan_sccp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1550622097 -SHA256 (chan-sccp-chan-sccp-v4.3.2-gamma_GH0.tar.gz) = e18971fdd131d60e543bce0d1f86c8e7243147ea4a5fdc35bb1aad77ac3577aa -SIZE (chan-sccp-chan-sccp-v4.3.2-gamma_GH0.tar.gz) = 1957293 +TIMESTAMP = 1567327968 +SHA256 (chan-sccp-chan-sccp-v4.3.2-delta_GH0.tar.gz) = 34d859768458ed2696c455a44a0ef06774e4f77669b3f6fbdc74423a87aa2d03 +SIZE (chan-sccp-chan-sccp-v4.3.2-delta_GH0.tar.gz) = 1998749 diff --git a/net/asterisk-chan_sccp/files/patch-fix-new-asterisk-include b/net/asterisk-chan_sccp/files/patch-fix-new-asterisk-include deleted file mode 100644 index b094ac722700..000000000000 --- a/net/asterisk-chan_sccp/files/patch-fix-new-asterisk-include +++ /dev/null @@ -1,85 +0,0 @@ -From 9684efb7709c1be23c99f555f61b5a3ad15b0675 Mon Sep 17 00:00:00 2001 -From: Diederik de Groot <dkgroot@talon.nl> -Date: Thu, 16 May 2019 17:48:55 +0200 -Subject: [PATCH] Add support for new asterisk mwi.h header file - ---- - autoconf/asterisk.m4 | 6 ++++++ - configure | 13 +++++++++++++ - src/config.h.in | 3 +++ - src/sccp_mwi.c | 4 ++++ - 4 files changed, 26 insertions(+) - -diff --git a/autoconf/asterisk.m4 b/autoconf/asterisk.m4 -index 52c6ef70e..67969940a 100644 ---- autoconf/asterisk.m4 -+++ autoconf/asterisk.m4 -@@ -1120,6 +1120,12 @@ dnl CFLAGS="${CFLAGS_saved} -Werror=implicit-function-declaration" - ],,[ - $HEADER_INCLUDE - ]) -+ AC_CHECK_HEADER([asterisk/mwi.h], -+ [ -+ AC_DEFINE([HAVE_PBX_MWI_H],1,[Found 'asterisk/mwi.h']) -+ ],,[ -+ $HEADER_INCLUDE -+ ]) - AC_CHECK_HEADER([asterisk/utils.h], - [ - AC_DEFINE([HAVE_PBX_UTILS_H],1,[Found 'asterisk/utils.h']) -diff --git a/configure b/configure -index 8cff697c7..182f27ac4 100755 ---- configure -+++ configure -@@ -28852,6 +28852,19 @@ if test "x$ac_cv_header_asterisk_message_h" = xyes; then : - $as_echo "#define HAVE_PBX_MESSAGE_H 1" >>confdefs.h - - -+fi -+ -+ -+ ac_fn_c_check_header_compile "$LINENO" "asterisk/mwi.h" "ac_cv_header_asterisk_mwi_h" " -+ $HEADER_INCLUDE -+ -+" -+if test "x$ac_cv_header_asterisk_mwi_h" = xyes; then : -+ -+ -+$as_echo "#define HAVE_PBX_MWI_H 1" >>confdefs.h -+ -+ - fi - - -diff --git a/src/config.h.in b/src/config.h.in -index e5ba1bfec..ad7d25efc 100644 ---- src/config.h.in -+++ src/config.h.in -@@ -583,6 +583,9 @@ - /* Found 'asterisk/message.h' */ - #undef HAVE_PBX_MESSAGE_H - -+/* Found 'asterisk/mwi.h' */ -+#undef HAVE_PBX_MWI_H -+ - /* Found 'asterisk/pbx.h' */ - #undef HAVE_PBX_PBX_H - -diff --git a/src/sccp_mwi.c b/src/sccp_mwi.c -index d21c43c7f..5238f506c 100644 ---- src/sccp_mwi.c -+++ src/sccp_mwi.c -@@ -25,9 +25,13 @@ SCCP_FILE_VERSION(__FILE__, ""); - #elif HAVE_PBX_STASIS_H - #include <asterisk/stasis.h> - #endif -+#ifdef HAVE_PBX_MWI_H // ast_mwi_state_type -+#include <asterisk/mwi.h> -+#else - #ifdef HAVE_PBX_APP_H // ast_mwi_state_type - #include <asterisk/app.h> - #endif -+#endif - #include <asterisk/cli.h> - - pbx_mutex_t subscriptions_lock; |