1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/net/iaxmodem/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Filippo Natali <filippo.natali@gmail.com>
# $FreeBSD$
PORTNAME= iaxmodem
PORTVERSION= 1.2.0
PORTREVISION= 8
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>