blob: 151efd52533f965c02e7be38208e83b992d80c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
PORTNAME= edflib
DISTVERSION= 1.19
CATEGORIES= misc # medicine
MASTER_SITES= https://www.teuniz.net/edflib/
DISTNAME= ${PORTNAME}_${DISTVERSION:S/.//}
MAINTAINER= yuri@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>
|