svn commit: r562227 - in head/misc: . edflib edflib/files
Yuri Victorovich
yuri at FreeBSD.org
Thu Jan 21 18:25:01 UTC 2021
Author: yuri
Date: Thu Jan 21 18:25:00 2021
New Revision: 562227
URL: https://svnweb.freebsd.org/changeset/ports/562227
Log:
New port: misc/edflib: C library to read/write EDF+/BDF+ (medical data series) files
Added:
head/misc/edflib/
head/misc/edflib/Makefile (contents, props changed)
head/misc/edflib/distinfo (contents, props changed)
head/misc/edflib/files/
head/misc/edflib/files/patch-edflib.c (contents, props changed)
head/misc/edflib/pkg-descr (contents, props changed)
Modified:
head/misc/Makefile
Modified: head/misc/Makefile
==============================================================================
--- head/misc/Makefile Thu Jan 21 17:47:55 2021 (r562226)
+++ head/misc/Makefile Thu Jan 21 18:25:00 2021 (r562227)
@@ -84,6 +84,7 @@
SUBDIR += dynomite
SUBDIR += e2fsprogs-libblkid
SUBDIR += e2fsprogs-libuuid
+ SUBDIR += edflib
SUBDIR += elixir-mime
SUBDIR += elixir-uuid
SUBDIR += elki
Added: head/misc/edflib/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/edflib/Makefile Thu Jan 21 18:25:00 2021 (r562227)
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= edflib
+DISTVERSION= 1.19
+CATEGORIES= misc # medicine
+MASTER_SITES= https://www.teuniz.net/edflib/
+DISTNAME= ${PORTNAME}_${DISTVERSION:S/.//}
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= C library to read/write EDF+/BDF+ (medical data series) files
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake
+USE_LDCONFIG= yes
+
+MAKE_ARGS= CC=${CC} CFLAGS="${CFLAGS}"
+
+PLIST_FILES= bin/sine_generator \
+ bin/sweep_generator \
+ bin/test_edflib \
+ bin/test_generator \
+ include/edflib.h \
+ lib/libedflib.so
+
+post-build: # https://gitlab.com/Teuniz/EDFlib/-/issues/6
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -o lib${PORTNAME}.so ${PORTNAME}.c
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include
+.for p in sine_generator sweep_generator test_edflib test_generator
+ ${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin
+.endfor
+
+.include <bsd.port.mk>
Added: head/misc/edflib/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/edflib/distinfo Thu Jan 21 18:25:00 2021 (r562227)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1611252122
+SHA256 (edflib_119.tar.gz) = 2c891801eaeca96894cff1cf726634a9f59a1ba513ffc33308e494350a06d242
+SIZE (edflib_119.tar.gz) = 53773
Added: head/misc/edflib/files/patch-edflib.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/edflib/files/patch-edflib.c Thu Jan 21 18:25:00 2021 (r562227)
@@ -0,0 +1,11 @@
+--- edflib.c.orig 2021-01-21 18:05:07 UTC
++++ edflib.c
+@@ -46,7 +46,7 @@
+ #define EDFLIB_MAXFILES (64)
+
+
+-#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__)
++#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__) || defined(__FreeBSD__)
+
+ #define fopeno fopen
+
Added: head/misc/edflib/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/edflib/pkg-descr Thu Jan 21 18:25:00 2021 (r562227)
@@ -0,0 +1,14 @@
+EDFlib is a programming library for C/C++ to read/write EDF+/BDF+ files.
+It also reads old-type EDF/BDF files.
+EDF means European Data Format. BDF is the 24-bits version of EDF.
+
+Features:
+* supports reading and writing of 16-bit (EDF) and 24-bit (BDF) resolution
+* supports annotations (events)
+* strives for strict standard compliance, generated files adheres
+ to the standard
+* API supports wide range of sample formats
+* supports multiple annotation channels
+* supports wide range of samplerate combinations
+
+WWW: https://www.teuniz.net/edflib/
More information about the svn-ports-all
mailing list