direwolf: disable NEON on armv6
This commit is contained in:
parent
4618718822
commit
f10e78710b
@ -1,9 +1,8 @@
|
||||
# Template file for 'direwolf'
|
||||
pkgname=direwolf
|
||||
version=1.7
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
configure_args="-DFORCE_SSE=1 -DRUN_NEON=advanced"
|
||||
makedepends="alsa-lib-devel hamlib-devel eudev-libudev-devel"
|
||||
short_desc="AX.25 packet modem/TNC and APRS encoder/decoder"
|
||||
maintainer="classabbyamp <void@placeviolette.net>"
|
||||
@ -13,3 +12,18 @@ changelog="https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md"
|
||||
distfiles="https://github.com/wb2osz/direwolf/archive/refs/tags/${version}.tar.gz"
|
||||
checksum=6301f6a43e5db9ef754765875592a58933f6b78585e9272afc850acf7c5914be
|
||||
python_version=3
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64*|i686*) configure_args+=" -DFORCE_SSE=ON" ;;
|
||||
esac
|
||||
|
||||
post_patch() {
|
||||
# rpi armv6 doesn't support neon, impossible to disable properly on cross
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
armv6*)
|
||||
vsed -i cmake/modules/FindCPUflags.cmake \
|
||||
-e 's/HAS_NEON ON/HAS_NEON OFF/g' \
|
||||
-e '/STATUS "Use NEON/d'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user