git: 8d056b579a48 - main - biology/biosig: Make sure __LITTLE_ENDIAN is defined in include files.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Oct 2022 01:46:06 UTC
The branch main has been updated by stephen:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8d056b579a483362c97d2aa26b8a33fc7a7ea50b
commit 8d056b579a483362c97d2aa26b8a33fc7a7ea50b
Author: Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-27 01:42:44 +0000
Commit: Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-27 01:42:44 +0000
biology/biosig: Make sure __LITTLE_ENDIAN is defined in include files.
Bump port revision.
PR: 267372
Approved by: yuri@freebsd.org
---
biology/biosig/Makefile | 1 +
biology/biosig/files/patch-biosig4c++_biosig-dev.h | 11 +++++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/biology/biosig/Makefile b/biology/biosig/Makefile
index 62d1c621958d..b3ef73bf8f58 100644
--- a/biology/biosig/Makefile
+++ b/biology/biosig/Makefile
@@ -1,5 +1,6 @@
PORTNAME= biosig
DISTVERSION= 2.4.3
+PORTREVISION= 1
CATEGORIES= biology
MASTER_SITES= SF/${PORTNAME}/BioSig%20for%20C_C%2B%2B/src/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
diff --git a/biology/biosig/files/patch-biosig4c++_biosig-dev.h b/biology/biosig/files/patch-biosig4c++_biosig-dev.h
index 39fedc40975c..8a489fdfc0db 100644
--- a/biology/biosig/files/patch-biosig4c++_biosig-dev.h
+++ b/biology/biosig/files/patch-biosig4c++_biosig-dev.h
@@ -1,4 +1,4 @@
---- biosig4c++/biosig-dev.h.orig 2021-08-13 09:17:15 UTC
+--- biosig4c++/biosig-dev.h.orig 2022-10-08 10:54:15 UTC
+++ biosig4c++/biosig-dev.h
@@ -35,6 +35,8 @@
#include <time.h>
@@ -9,13 +9,16 @@
#ifdef __cplusplus
extern "C" {
-@@ -549,6 +551,9 @@ HDRTYPE* sopen_extended(const char* FileName, const ch
+@@ -549,6 +551,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch
#elif defined(__linux__)
# include <endian.h>
# include <byteswap.h>
+
+#elif defined(__FreeBSD__)
+# include <machine/endian.h>
++# define __BIG_ENDIAN _BIG_ENDIAN
++# define __LITTLE_ENDIAN _LITTLE_ENDIAN
++# define __BYTE_ORDER _BYTE_ORDER
- #elif defined(__GLIBC__) // for Hurd
- # include <endian.h>
+ #elif defined(__FreeBSD__)
+ # include <machine/endian.h>