git: bd2dda551041 - main - comms/sdr++: fix packaging on non-x86

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 03 Jul 2022 16:10:14 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bd2dda5510416ee34f5566d3739ff1b18f9bc5fe

commit bd2dda5510416ee34f5566d3739ff1b18f9bc5fe
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-07-03 16:09:14 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-07-03 16:10:03 +0000

    comms/sdr++: fix packaging on non-x86
    
    pkg-static: Unable to access file /wrkdirs/usr/ports/comms/sdr++/work/stage/usr/local/include/correct-sse.h:No such file or directory
---
 comms/sdr++/Makefile  | 10 +++++++++-
 comms/sdr++/pkg-plist |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/comms/sdr++/Makefile b/comms/sdr++/Makefile
index fd3c279512bf..c8b9133bccb0 100644
--- a/comms/sdr++/Makefile
+++ b/comms/sdr++/Makefile
@@ -42,4 +42,12 @@ RTAUDIO_DESC=			RtAudio support
 RTAUDIO_CMAKE_BOOL=		OPT_BUILD_AUDIO_SINK
 RTAUDIO_LIB_DEPENDS=		librtaudio.so:audio/rtaudio
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+PLIST_SUB+=     SSE=""
+.else
+PLIST_SUB+=     SSE="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/comms/sdr++/pkg-plist b/comms/sdr++/pkg-plist
index f54403e8e57c..4bdcea04c8bf 100644
--- a/comms/sdr++/pkg-plist
+++ b/comms/sdr++/pkg-plist
@@ -1,5 +1,5 @@
 bin/sdrpp
-include/correct-sse.h
+%%SSE%%include/correct-sse.h
 include/correct.h
 lib/libcorrect.a
 lib/libcorrect.so