summaryrefslogtreecommitdiff
path: root/net/asterisk-chan_sccp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-chan_sccp/Makefile')
-rw-r--r--net/asterisk-chan_sccp/Makefile34
1 files changed, 13 insertions, 21 deletions
diff --git a/net/asterisk-chan_sccp/Makefile b/net/asterisk-chan_sccp/Makefile
index a9efae0693e4..991dd2eb0291 100644
--- a/net/asterisk-chan_sccp/Makefile
+++ b/net/asterisk-chan_sccp/Makefile
@@ -1,7 +1,6 @@
PORTNAME= chan_sccp
DISTVERSIONPREFIX= v
-DISTVERSION= 4.3.3
-PORTREVISION= 2
+DISTVERSION= 4.3.5.20231205
CATEGORIES= net
PKGNAMEPREFIX= asterisk-
@@ -12,38 +11,35 @@ WWW= https://sourceforge.net/projects/chan-sccp-b/
LICENSE= GPLv1
LICENSE_FILE= ${WRKSRC}/COPYING
-FLAVORS= asterisk18
-FLAVOR?= ${FLAVORS:[1]}
-
LIB_DEPENDS= libltdl.so:devel/libltdl
-USES= autoreconf:2.69 compiler:c11 gettext-tools iconv libtool \
- localbase ssl
+FLAVORS= asterisk18 asterisk20 asterisk22
+FLAVOR?= ${FLAVORS:[3]}
+
+${FLAVOR}_PKGNAMEPREFIX= ${FLAVOR}-
+${FLAVOR}_BUILD_DEPENDS= asterisk:net/${FLAVOR}
+${FLAVOR}_RUN_DEPENDS= asterisk:net/${FLAVOR}
+USES= autoreconf:2.69 compiler:c11 gettext-tools iconv:wchar_t \
+ libtool ssl
USE_GITHUB= yes
GH_ACCOUNT= chan-sccp
GH_PROJECT= chan-sccp
+GH_TAGNAME= 2e2105182824dc0ffda40f607290eb309d03a963
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-advanced-functions \
- --with-hash-size=3001 \
- ${ICONV_CONFIGURE_ARG}
+ --with-hash-size=3001
INSTALL_TARGET= install-strip
+CFLAGS+= -D_ASTERISK_VERSION=${FLAVOR:C|([a-zA-Z]+)||}
-CPPFLAGS+= -I${ICONV_INCLUDE_PATH}
-LDFLAGS+= -L${LOCALBASE}/lib \
- ${ICONV_LIB}
+CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:C|(.+)|\1-${PORTNAME}|}
PLIST_FILES= etc/asterisk/sccp.conf.annotated \
"@sample etc/asterisk/sccp.conf.sample" \
lib/asterisk/modules/chan_sccp.so \
share/asterisk/documentation/thirdparty/chan_sccp-en_US.xml
-asterisk18_PKGNAMEPREFIX= asterisk18-
-asterisk18_CONFLICTS_INSTALL= asterisk13-chan_sccp asterisk16-chan_sccp
-asterisk18_BUILD_DEPENDS= asterisk:net/asterisk18
-asterisk18_RUN_DEPENDS= asterisk:net/asterisk18
-
OPTIONS_DEFINE= CONFERENCE VIDEO
OPTIONS_DEFAULT= CONFERENCE VIDEO
CONFERENCE_DESC= Enable Conference Support
@@ -52,10 +48,6 @@ VIDEO_DESC= Enable Video Support
CONFERENCE_CONFIGURE_ENABLE= conference
VIDEO_CONFIGURE_ENABLE= video
-.if ${FLAVOR} == asterisk18
-CONFIGURE_ARGS+= --with-asterisk-version=18
-.endif
-
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
${INSTALL_DATA} ${WRKSRC}/conf/sccp.conf \