blob: a71a7ae4c1c287d9a4d296e500ae865d035d1fa5 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Filippo Natali <filippo.natali@gmail.com>
# $FreeBSD$
PORTNAME= iaxmodem
PORTVERSION= 1.2.0
PORTREVISION= 10
CATEGORIES= net comms
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= stucchi@gufi.org
COMMENT= Software modem that connects to IAX channel
LIB_DEPENDS= libtiff.so:graphics/tiff
USES= compiler:features perl5
USE_PERL5= patch
HAS_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= sbin/${PORTNAME} man/man1/${PORTNAME}.1.gz
PORTDOCS= CHANGES FAQ README
PORTEXAMPLES= config.ttyIAX iaxmodem-cfg.ttyIAX
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == clang
# gsm0610_rpe.c:81:10: error: invalid operand for instruction
USE_GCC= yes
.endif
post-patch:
@${PERL} -0pi.bak -e "s|for ac_header in tgmath\.h.*?done||s" \
${WRKSRC}/lib/spandsp/configure
@${REINPLACE_CMD} -e "s|/etc/iaxmodem|${PREFIX}&|" \
${WRKSRC}/iaxmodem.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iaxmodem ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/iaxmodem.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
|