diff --git a/biology/biosig/Makefile b/biology/biosig/Makefile index 62d1c621958d..b3ef73bf8f58 100644 --- a/biology/biosig/Makefile +++ b/biology/biosig/Makefile @@ -1,35 +1,36 @@ 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 MAINTAINER= yuri@FreeBSD.org COMMENT= Library for reading and writing different biosignal data format WWW= http://biosig.sourceforge.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libb64.so:converters/libb64 \ libcholmod.so:math/suitesparse-cholmod \ libiconv.so:converters/libiconv \ libtinyxml.so:textproc/tinyxml USES= gmake iconv localbase:ldflags tar:xz USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} GNU_CONFIGURE= yes CFLAGS+= -D__BYTE_ORDER=BYTE_ORDER -D__LITTLE_ENDIAN=LITTLE_ENDIAN -D__BIG_ENDIAN=BIG_ENDIAN \ -Dbswap_16=bswap16 -Dbswap_32=bswap32 -Dbswap_64=bswap64 LDFLAGS+= -liconv post-install: .for f in bin/biosig_fhir bin/biosig2gdf bin/physicalunits bin/save2gdf lib/libbiosig.so.3 @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f} .endfor .include 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,21 +1,24 @@ ---- 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 #include "physicalunits.h" +#include +#include // for betoh16, etc. #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 # include + +#elif defined(__FreeBSD__) +# include ++# define __BIG_ENDIAN _BIG_ENDIAN ++# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# define __BYTE_ORDER _BYTE_ORDER - #elif defined(__GLIBC__) // for Hurd - # include + #elif defined(__FreeBSD__) + # include