mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-07 11:23:23 +00:00
new package: libaom
This commit is contained in:
26
packages/libaom/arm_cpudetect-always-neon.patch
Normal file
26
packages/libaom/arm_cpudetect-always-neon.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/aom_ports/arm_cpudetect.c b/aom_ports/arm_cpudetect.c
|
||||
index 1696f15bf..b0b011bcc 100644
|
||||
--- a/aom_ports/arm_cpudetect.c
|
||||
+++ b/aom_ports/arm_cpudetect.c
|
||||
@@ -88,20 +88,17 @@ int aom_arm_cpu_caps(void) {
|
||||
}
|
||||
|
||||
#elif defined(__ANDROID__) /* end _MSC_VER */
|
||||
-#include <cpu-features.h>
|
||||
|
||||
int aom_arm_cpu_caps(void) {
|
||||
int flags;
|
||||
int mask;
|
||||
- uint64_t features;
|
||||
if (!arm_cpu_env_flags(&flags)) {
|
||||
return flags;
|
||||
}
|
||||
mask = arm_cpu_env_mask();
|
||||
- features = android_getCpuFeatures();
|
||||
|
||||
#if HAVE_NEON
|
||||
- if (features & ANDROID_CPU_ARM_FEATURE_NEON) flags |= HAS_NEON;
|
||||
+ flags |= HAS_NEON;
|
||||
#endif /* HAVE_NEON */
|
||||
return flags & mask;
|
||||
}
|
||||
7
packages/libaom/build.sh
Normal file
7
packages/libaom/build.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://aomedia.org/
|
||||
TERMUX_PKG_DESCRIPTION="AV1 Video Codec Library"
|
||||
TERMUX_PKG_LICENSE="BSD 2-Clause, custom"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSE, PATENTS"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=3.1.2
|
||||
TERMUX_PKG_SRCURL=https://aomedia.googlesource.com/aom.git
|
||||
Reference in New Issue
Block a user