git: 54e5d5211ba6 - 2022Q3 - comms/snap7: port to armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Jul 2022 21:38:19 UTC
The branch 2022Q3 has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=54e5d5211ba6ce9e7ecd20c98175e7a2135cb152
commit 54e5d5211ba6ce9e7ecd20c98175e7a2135cb152
Author: Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-06-20 02:42:56 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-07-04 21:38:04 +0000
comms/snap7: port to armv7
Same pattern as the armv7 patch.
PR: 264780
Approved by: vova@fbsd.ru (maintainer timeout)
(cherry picked from commit 4dc727ddf3ec09f0508ec71031430e473c68c57b)
---
comms/snap7/Makefile | 2 +-
comms/snap7/files/patch-arm__v7__bsd.mk | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/comms/snap7/Makefile b/comms/snap7/Makefile
index c21a04fb1ed0..c513b0afd58d 100644
--- a/comms/snap7/Makefile
+++ b/comms/snap7/Makefile
@@ -23,7 +23,7 @@ MAKE_ARGS= CC=${CC} CXX=${CXX} LinkerName=${CXX} SharedObjectLinkerName="${CXX}
PLIST_FILES= lib/libsnap7.so include/snap7.h share/examples/snap7/c-cpp/snap7.cpp
-SNAP_ARCH= ${ARCH:S/amd64/x86_64/:S/armv6/arm_v6/}
+SNAP_ARCH= ${ARCH:S/amd64/x86_64/:S/armv/arm_v/}
MAKEFILE= ${SNAP_ARCH}_bsd.mk
post-install:
diff --git a/comms/snap7/files/patch-arm__v7__bsd.mk b/comms/snap7/files/patch-arm__v7__bsd.mk
new file mode 100644
index 000000000000..7b2661dec3ef
--- /dev/null
+++ b/comms/snap7/files/patch-arm__v7__bsd.mk
@@ -0,0 +1,18 @@
+--- arm_v7_bsd.mk.orig 2016-12-20 09:52:10 UTC
++++ arm_v7_bsd.mk
+@@ -0,0 +1,15 @@
++##
++## ARMHF V7 tested on
++## - Raspberry board -
++##
++## To improve the build speed in small systems disable -pedantic
++## switch in CXXFLAGS
++##
++TargetCPU :=arm_v7
++OS :=bsd
++CXXFLAGS := -O3 -g -fPIC -pedantic
++
++# Standard part
++
++include common.mk
++