On 2023/11/11 13:48, Jeremie Courreges-Anglas wrote:
>   44 telephony/spandsp
> 
> The next biggest offender.

It's not as bad as it looks; a bunch of these are various asterisk
versions and subpackages. I've tweaked things in asterisk so spandsp
can be disabled there if needed.

The other affected ports are wireshark and baresip.

I started looking at newer code in freeswitch's git repo but haven't
got it building yet (probably just needs some -I/usr/local/include
bodging in somewhere but I haven't found a good place to do it
"nicely").

This is from a commit slightly behind head - newer ones fail
earlier when trying to build with llvm.

Index: Makefile
===================================================================
RCS file: /cvs/ports/telephony/spandsp/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    27 Sep 2023 17:20:40 -0000      1.22
+++ Makefile    11 Nov 2023 22:50:47 -0000
@@ -1,13 +1,15 @@
 COMMENT=       DSP library for telephony
 
-DISTNAME=      spandsp-0.0.6
-REVISION=      0
+GH_ACCOUNT=    freeswitch
+GH_PROJECT=    spandsp
+GH_COMMIT=     df1282eb9af538ab1aadb6d66146e258451d4fe4
+
+DISTNAME=      spandsp-3.0.0pre20230924
 CATEGORIES=    telephony
-SITES=         ${HOMEPAGE}downloads/spandsp/
 
 SHARED_LIBS=   spandsp 7.0
 
-HOMEPAGE=      http://www.soft-switch.org/
+HOMEPAGE=      https://www.soft-switch.org/
 
 MAINTAINER=    Brad Smith <[email protected]>
 
@@ -18,7 +20,11 @@ WANTLIB=     c jpeg lzma m pthread tiff z zs
 
 LIB_DEPENDS+=  graphics/tiff
 
-CONFIGURE_STYLE= gnu
+CONFIGURE_STYLE=  autoreconf
+AUTORECONF=      ./autogen.sh
+AUTOCONF_VERSION= 2.71
+AUTOMAKE_VERSION= 1.16
+
 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib"
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/telephony/spandsp/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo    5 May 2015 17:19:57 -0000       1.10
+++ distinfo    11 Nov 2023 22:50:47 -0000
@@ -1,2 +1,2 @@
-SHA256 (spandsp-0.0.6.tar.gz) = zAU6xn6KxLuZLyWP2U8nWnhy35Wfaod2OWX+q/3MlGU=
-SIZE (spandsp-0.0.6.tar.gz) = 3309837
+SHA256 (spandsp-3.0.0pre20230924-df1282eb.tar.gz) = 
rj5Utp9ahs66glvyYF50BiiLvN36lzuO3U5NdKKb4Jo=
+SIZE (spandsp-3.0.0pre20230924-df1282eb.tar.gz) = 5058229
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure     14 Jul 2023 09:13:57 -0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-our gnu C has not this option!
-
-Index: configure
---- configure.orig
-+++ configure
-@@ -19658,7 +19658,7 @@ fi
- 
- case "${ax_cv_c_compiler_vendor}" in
- gnu)
--    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable 
-Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes $COMP_VENDOR_CFLAGS"
-+    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
-     if test "$enable_avx" = "yes" ; then
-         COMP_VENDOR_CFLAGS="-mavx $COMP_VENDOR_CFLAGS"
-     fi

Reply via email to