mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
multimedia/zoneminder: add armv7 support
Requires replacing getauxval with elf_aux_info.
This commit is contained in:
parent
e27fa2bbe1
commit
50946628c3
2 changed files with 15 additions and 1 deletions
|
@ -7,7 +7,7 @@ COMMENT= Complete security camera solution, fully web based with image analysis
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 powerpc powerpc64 powerpc64le
|
||||
|
||||
ZM_DEPENDS= p5-DBI>=0:databases/p5-DBI \
|
||||
p5-DBD-mysql>=0:databases/p5-DBD-mysql \
|
||||
|
|
14
multimedia/zoneminder/files/patch-src_zm__utils.cpp
Normal file
14
multimedia/zoneminder/files/patch-src_zm__utils.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- src/zm_utils.cpp.orig 2021-11-28 23:56:36 UTC
|
||||
+++ src/zm_utils.cpp
|
||||
@@ -224,8 +224,9 @@ void HwCapsDetect() {
|
||||
#elif defined(__arm__)
|
||||
// ARM processor in 32bit mode
|
||||
// To see if it supports NEON, we need to get that information from the kernel
|
||||
- unsigned long auxval = getauxval(AT_HWCAP);
|
||||
- if (auxval & HWCAP_ARM_NEON) {
|
||||
+ unsigned long auxval = 0;
|
||||
+ elf_aux_info(AT_HWCAP, &auxval, sizeof(auxval));
|
||||
+ if (auxval & HWCAP_NEON) {
|
||||
Debug(1,"Detected ARM (AArch32) processor with Neon");
|
||||
neonversion = 1;
|
||||
} else {
|
Loading…
Add table
Reference in a new issue