diff --git a/audio/opus/Makefile b/audio/opus/Makefile index 7bc8b0577dfc..70e5a94f2c86 100644 --- a/audio/opus/Makefile +++ b/audio/opus/Makefile @@ -1,7 +1,10 @@ PORTNAME= opus -PORTVERSION= 1.3.1 +DISTVERSION= 1.4 CATEGORIES= audio -MASTER_SITES= MOZILLA/opus +MASTER_SITES= https://github.com/xiph/${PORTNAME}/releases/download/v${DISTVERSION}/ + +PATCH_SITES= https://github.com/xiph/${PORTNAME}/commit/ +PATCHFILES= d94583359bcf8f1b52cc93b7ca6ced9664fb2a7e.patch:-p1 MAINTAINER= naddy@FreeBSD.org COMMENT= IETF audio codec @@ -10,20 +13,15 @@ WWW= https://opus-codec.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -USES= cpe gmake libtool pathfix +USES= cpe meson python:env shebangfix CPE_VENDOR= opus-codec +SHEBANG_FILES= meson/*.py USE_LDCONFIG= yes +WITH_LTO= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-custom-modes \ - --disable-doc # requires doxygen -INSTALL_TARGET= install-strip -TEST_TARGET= check - -.include - -.if ${ARCH} == "arm" -CONFIGURE_ARGS+=--enable-fixed-point -.endif +MESON_ARGS= -Ddefault_library=both -Dasm=disabled -Ddocs=disabled \ + -Dcustom-modes=true ${MESON_ARGS_${ARCH}} +MESON_ARGS_armv6= -Dintrinsics=disabled +MESON_ARGS_armv7= -Dintrinsics=disabled .include diff --git a/audio/opus/distinfo b/audio/opus/distinfo index 9aa455b04035..cbd5791bd63d 100644 --- a/audio/opus/distinfo +++ b/audio/opus/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1555874048 -SHA256 (opus-1.3.1.tar.gz) = 65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d -SIZE (opus-1.3.1.tar.gz) = 1040054 +TIMESTAMP = 1682117243 +SHA256 (opus-1.4.tar.gz) = c9b32b4253be5ae63d1ff16eea06b94b5f0f2951b7a02aceef58e3a3ce49c51f +SIZE (opus-1.4.tar.gz) = 1063408 +SHA256 (d94583359bcf8f1b52cc93b7ca6ced9664fb2a7e.patch) = 39bcf3085978f1c113f6e2c60f39ccff638d2f5e1e0192ca603883e35632997c +SIZE (d94583359bcf8f1b52cc93b7ca6ced9664fb2a7e.patch) = 926 diff --git a/audio/opus/files/patch-configure b/audio/opus/files/patch-configure deleted file mode 100644 index 867efc968d0a..000000000000 --- a/audio/opus/files/patch-configure +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig 2016-01-12 18:17:49 UTC -+++ configure -@@ -13251,7 +13251,7 @@ $as_echo "$as_me: WARNING: Compiler does - - fi - ;; #( -- i?86|x86_64) : -+ i?86|x86_64|amd64) : - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5 diff --git a/audio/opus/pkg-plist b/audio/opus/pkg-plist index dc3d66e6105e..fa5993fd4736 100644 --- a/audio/opus/pkg-plist +++ b/audio/opus/pkg-plist @@ -7,6 +7,5 @@ include/opus/opus_types.h lib/libopus.a lib/libopus.so lib/libopus.so.0 -lib/libopus.so.0.8.0 +lib/libopus.so.0.9.0 libdata/pkgconfig/opus.pc -share/aclocal/opus.m4