mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
audio/libopusenc: maintenance update to 0.3
PR: 292210
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
PORTNAME= libopusenc
|
||||
PORTVERSION= 0.2.1
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= MOZILLA/opus
|
||||
MASTER_SITES= https://downloads.xiph.org/releases/opus/
|
||||
|
||||
MAINTAINER= naddy@FreeBSD.org
|
||||
COMMENT= High-level API for encoding .opus files
|
||||
@@ -13,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libopus.so:audio/opus
|
||||
|
||||
USES= gmake libtool pkgconfig
|
||||
USES= libtool pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1540058989
|
||||
SHA256 (libopusenc-0.2.1.tar.gz) = 8298db61a8d3d63e41c1a80705baa8ce9ff3f50452ea7ec1c19a564fe106cbb9
|
||||
SIZE (libopusenc-0.2.1.tar.gz) = 388071
|
||||
TIMESTAMP = 1767999351
|
||||
SHA256 (libopusenc-0.3.tar.gz) = f616d3aff9b2034547894ccb8ab56c36cf1a4acb0d922c5d7119f97bbe58642c
|
||||
SIZE (libopusenc-0.3.tar.gz) = 408391
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
https://gitlab.xiph.org/xiph/libopusenc/-/commit/04c6172ffbbd5c7f7f2e170cf843872113f33b05
|
||||
|
||||
--- include/opusenc.h.orig 2018-09-14 17:12:05 UTC
|
||||
+++ include/opusenc.h
|
||||
@@ -121,6 +121,13 @@ extern "C" {
|
||||
#define OPE_GET_NB_STREAMS_REQUEST 14013
|
||||
#define OPE_GET_NB_COUPLED_STREAMS_REQUEST 14015
|
||||
|
||||
+/* Macros to trigger compilation errors when the wrong types are provided to a CTL. */
|
||||
+/* These macros are not part of the API and are only for use within the macros below. */
|
||||
+#define ope_check_int(x) (((void)((x) == (opus_int32)0)), (opus_int32)(x))
|
||||
+#define ope_check_int_ptr(ptr) ((ptr) + ((ptr) - (opus_int32*)(ptr)))
|
||||
+#define ope_check_packet_func(x) ((void)((void (*)(void *, const unsigned char *, opus_int32, opus_uint32))0 == (x)), (x))
|
||||
+#define ope_check_void_ptr(x) ((void)((void *)0 == (x)), (x))
|
||||
+
|
||||
/**\defgroup encoder_ctl Encoding Options*/
|
||||
/*@{*/
|
||||
|
||||
@@ -129,21 +136,20 @@ extern "C" {
|
||||
Macros for setting encoder options.*/
|
||||
/*@{*/
|
||||
|
||||
-#define OPE_SET_DECISION_DELAY(x) OPE_SET_DECISION_DELAY_REQUEST, __opus_check_int(x)
|
||||
-#define OPE_GET_DECISION_DELAY(x) OPE_GET_DECISION_DELAY_REQUEST, __opus_check_int_ptr(x)
|
||||
-#define OPE_SET_MUXING_DELAY(x) OPE_SET_MUXING_DELAY_REQUEST, __opus_check_int(x)
|
||||
-#define OPE_GET_MUXING_DELAY(x) OPE_GET_MUXING_DELAY_REQUEST, __opus_check_int_ptr(x)
|
||||
-#define OPE_SET_COMMENT_PADDING(x) OPE_SET_COMMENT_PADDING_REQUEST, __opus_check_int(x)
|
||||
-#define OPE_GET_COMMENT_PADDING(x) OPE_GET_COMMENT_PADDING_REQUEST, __opus_check_int_ptr(x)
|
||||
-#define OPE_SET_SERIALNO(x) OPE_SET_SERIALNO_REQUEST, __opus_check_int(x)
|
||||
-#define OPE_GET_SERIALNO(x) OPE_GET_SERIALNO_REQUEST, __opus_check_int_ptr(x)
|
||||
-/* FIXME: Add type-checking macros to these. */
|
||||
-#define OPE_SET_PACKET_CALLBACK(x,u) OPE_SET_PACKET_CALLBACK_REQUEST, (x), (u)
|
||||
+#define OPE_SET_DECISION_DELAY(x) OPE_SET_DECISION_DELAY_REQUEST, ope_check_int(x)
|
||||
+#define OPE_GET_DECISION_DELAY(x) OPE_GET_DECISION_DELAY_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_SET_MUXING_DELAY(x) OPE_SET_MUXING_DELAY_REQUEST, ope_check_int(x)
|
||||
+#define OPE_GET_MUXING_DELAY(x) OPE_GET_MUXING_DELAY_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_SET_COMMENT_PADDING(x) OPE_SET_COMMENT_PADDING_REQUEST, ope_check_int(x)
|
||||
+#define OPE_GET_COMMENT_PADDING(x) OPE_GET_COMMENT_PADDING_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_SET_SERIALNO(x) OPE_SET_SERIALNO_REQUEST, ope_check_int(x)
|
||||
+#define OPE_GET_SERIALNO(x) OPE_GET_SERIALNO_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_SET_PACKET_CALLBACK(x,u) OPE_SET_PACKET_CALLBACK_REQUEST, ope_check_packet_func(x), ope_check_void_ptr(u)
|
||||
/*#define OPE_GET_PACKET_CALLBACK(x,u) OPE_GET_PACKET_CALLBACK_REQUEST, (x), (u)*/
|
||||
-#define OPE_SET_HEADER_GAIN(x) OPE_SET_HEADER_GAIN_REQUEST, __opus_check_int(x)
|
||||
-#define OPE_GET_HEADER_GAIN(x) OPE_GET_HEADER_GAIN_REQUEST, __opus_check_int_ptr(x)
|
||||
-#define OPE_GET_NB_STREAMS(x) OPE_GET_NB_STREAMS_REQUEST, __opus_check_int_ptr(x)
|
||||
-#define OPE_GET_NB_COUPLED_STREAMS(x) OPE_GET_NB_COUPLED_STREAMS_REQUEST, __opus_check_int_ptr(x)
|
||||
+#define OPE_SET_HEADER_GAIN(x) OPE_SET_HEADER_GAIN_REQUEST, ope_check_int(x)
|
||||
+#define OPE_GET_HEADER_GAIN(x) OPE_GET_HEADER_GAIN_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_GET_NB_STREAMS(x) OPE_GET_NB_STREAMS_REQUEST, ope_check_int_ptr(x)
|
||||
+#define OPE_GET_NB_COUPLED_STREAMS(x) OPE_GET_NB_COUPLED_STREAMS_REQUEST, ope_check_int_ptr(x)
|
||||
/*@}*/
|
||||
/*@}*/
|
||||
|
||||
@@ -2,7 +2,7 @@ include/opus/opusenc.h
|
||||
lib/libopusenc.a
|
||||
lib/libopusenc.so
|
||||
lib/libopusenc.so.0
|
||||
lib/libopusenc.so.0.4.2
|
||||
lib/libopusenc.so.0.4.3
|
||||
libdata/pkgconfig/libopusenc.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
|
||||
Reference in New Issue
Block a user