summaryrefslogtreecommitdiff
path: root/media-libs/sbc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
commitabaa75b10f899ada8dd05b23cc03205064394bc6 (patch)
treeeca3dd248b73b92013cba00a0fcc1edf2696e19a /media-libs/sbc
parent24fd814c326e282c4321965c31f341dad77e270d (diff)
gentoo resync : 22.01.2021
Diffstat (limited to 'media-libs/sbc')
-rw-r--r--media-libs/sbc/Manifest3
-rw-r--r--media-libs/sbc/files/sbc-1.5-ifdef-builtin.patch30
-rw-r--r--media-libs/sbc/sbc-1.5.ebuild2
3 files changed, 34 insertions, 1 deletions
diff --git a/media-libs/sbc/Manifest b/media-libs/sbc/Manifest
index a0469caaafa3..be887c8fed0d 100644
--- a/media-libs/sbc/Manifest
+++ b/media-libs/sbc/Manifest
@@ -1,5 +1,6 @@
+AUX sbc-1.5-ifdef-builtin.patch 871 BLAKE2B a63b5d5ce0e00723d8492a83e403d926eb16091b8eaf9c426cc24444a041949a6747fe134020261131f0681448111d2558b85391308157c828a96ea1b046c7d1 SHA512 bc1116ff941c88418e79bb35e1f08828d637e4d2d3192c1e808b1d5adc02e1942f968f49805365cb7a34817f119e24d8d9c3baf2133c77b91ba79a3e4446d249
DIST sbc-1.4.tar.xz 250656 BLAKE2B a5b59a0ac209b44843af49e63f7b6a6b397b3905f0efc52c18a3b92785d297d39dad80f5b124e97c50a9535f892f1451bf0a2945ba223a522eafbcad46eaad9d SHA512 f35250c202034e93ce4046d29883d76b162164d42fb59e6af8ff5e57f197244238f5f8087309cef2d44755c179e7f0869cf096735c8de510b1ac7e0f6c29d84f
DIST sbc-1.5.tar.xz 264472 BLAKE2B 421a4cb5ab0e282255f8bdb810384e0a4d6d66835869489c22d51d2a0cabd7ef834bef3756ff887b9d9166dcfe88f4d661c26cb804e2868fb6106cc4886f9dcc SHA512 0243586188acede595317f2afbfdb41be5850d2a6133c374edbe5cbcf59a2a0fd4570d0b8f2d13ce9637ce48b2f1910c3e4ab1c0354dbf273ee67b09db8c4915
EBUILD sbc-1.4.ebuild 875 BLAKE2B 42fddd2460c78eb9f19ad8d9f8bcbb8c85445aba1047f74e31280650058d30cc8446bcaecca6f2580c0d8645939bcdc858e59e9eefd15d093a0e864a1a633328 SHA512 f079230625d2221aa87ba9ab43ef564052916ed86ca9be200b71739c472818272e497129cc3bfbb351cc49f03731ddaf3baa7a4f0d57e596a6d240fb25e8d45d
-EBUILD sbc-1.5.ebuild 844 BLAKE2B 973696eaeecb53c6c062dbf5c5bde603ea16902d0b7c086fd23cfcb4cd41c0df1587b1fe09e022da75db46b1d180ff60dfe30f0cd0a420357591730c76839a7f SHA512 148764f8f823517a6014520b43a9d2732c67d1f9d939a0f873d457bc91b3c466e82985dfa2914ca6bf267fbc9f95a819e19afd5e563859c0c4d7d73cb9db475c
+EBUILD sbc-1.5.ebuild 896 BLAKE2B 8a531b20a7aa493e4e49e77a81875a4ab0a3fb8bec78ce54055de9f506a3bd1200045fa7d86061a3568196cd502c5ca89d6bfe4a36dd7183d9db89967bb4981d SHA512 bd43e05c8cd616e8bff58a80b84192faa978e57fcfbf2d9ee07dde61bb5453e927ea08f0bb62aafcad4c03efe6a641a77f315c8a1d4cc11299c8d786cc1fbc50
MISC metadata.xml 356 BLAKE2B 37e1eb09d0de357b5f84cc88a36d602c1522fb5e1a80542390297eca08bef82e30a85af697c5bcf1e042b98a63943f49b3e7902ef866207998583ff0c1a96c00 SHA512 c9b1f0a337ecc94fb295f536d18166b9bae68ca96e27f96a17b38b2374203bc6979e9f168e423e2eb87520919ba76c433a6b60c866b82c449b48d84e92165524
diff --git a/media-libs/sbc/files/sbc-1.5-ifdef-builtin.patch b/media-libs/sbc/files/sbc-1.5-ifdef-builtin.patch
new file mode 100644
index 000000000000..cfa89958db10
--- /dev/null
+++ b/media-libs/sbc/files/sbc-1.5-ifdef-builtin.patch
@@ -0,0 +1,30 @@
+diff --git a/sbc/sbc_primitives.c b/sbc/sbc_primitives.c
+index 97a75be..ac79ca5 100644
+--- a/sbc/sbc_primitives.c
++++ b/sbc/sbc_primitives.c
+@@ -591,6 +591,7 @@ static int sbc_calc_scalefactors_j(
+ return joint;
+ }
+
++#if defined(__i386__) || defined(__x86_64__)
+ static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
+ {
+ __builtin_cpu_init();
+@@ -605,6 +606,7 @@ static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
+ sbc_init_primitives_sse(state);
+ #endif
+ }
++#endif
+
+ /*
+ * Detect CPU features and setup function pointers
+@@ -630,7 +632,9 @@ void sbc_init_primitives(struct sbc_encoder_state *state)
+ state->implementation_info = "Generic C";
+
+ /* X86/AMD64 optimizations */
++#if defined(__i386__) || defined(__x86_64__)
+ sbc_init_primitives_x86(state);
++#endif
+
+ /* ARM optimizations */
+ #ifdef SBC_BUILD_WITH_ARMV6_SUPPORT
diff --git a/media-libs/sbc/sbc-1.5.ebuild b/media-libs/sbc/sbc-1.5.ebuild
index 65d68e49819c..91d43e28d957 100644
--- a/media-libs/sbc/sbc-1.5.ebuild
+++ b/media-libs/sbc/sbc-1.5.ebuild
@@ -20,6 +20,8 @@ RESTRICT="test"
RDEPEND=""
DEPEND="virtual/pkgconfig"
+PATCHES=( "${FILESDIR}/${P}-ifdef-builtin.patch" )
+
multilib_src_configure() {
ECONF_SOURCE=${S} \
econf \