blob: 857aaab1f97db5735b90392ca2b82d6a35aeecb3 (
plain) (
blame)
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
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= libfec
PORTVERSION= 3.0.1
PORTREVISION= 4
CATEGORIES= comms astro hamradio math
MASTER_SITES= http://www.ka9q.net/code/fec/ \
LOCAL/db
DISTNAME= fec-${PORTVERSION}
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Several forward error correction (FEC) decoders
LICENSE= LGPL21
BUILD_DEPENDS= as:devel/binutils
MAKEFILE= makefile
GNU_CONFIGURE= yes
USES= autoreconf compiler:c11 gmake tar:bzip2
USE_LDCONFIG= yes
PLIST_FILES= include/fec.h \
lib/libfec.so \
lib/libfec.a \
man/man3/dsp.3.gz \
man/man3/rs.3.gz \
man/man3/simd-viterbi.3.gz
# makefile tries to create libfec.so from object files compiled without -fPIC.
CFLAGS+= -fPIC
CONFLICTS_INSTALL= reed-solomon simd-viterbi # man/man3/rs.3.gz man/man3/simd-viterbi.3.gz
post-patch:
@${CP} ${FILESDIR}/cpu_mode.c ${WRKSRC}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include
@${MKDIR} ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${MAN3PREFIX}/man/man3
${INSTALL_DATA} ${WRKSRC}/fec.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libfec.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libfec.so ${STAGEDIR}${PREFIX}/lib
.for _man in dsp.3 simd-viterbi.3 rs.3
${INSTALL_MAN} ${WRKSRC}/${_man} ${STAGEDIR}${MAN3PREFIX}/man/man3
.endfor
.include <bsd.port.mk>
|