e4307343f5
an IAX channel (commonly provided by an Asterisk PBX system) instead of a traditional phone line and uses a DSP library instead of DSP hardware chipsets. WWW: http://sourceforge.net/projects/iaxmodem PR: ports/99238 Submitted by: Filippo Natali <filippo.natali@gmail.com>
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# New ports collection makefile for: iaxmodem
|
|
# Date created: 15 Jun 2006
|
|
# Whom: Filippo Natali <filippo.natali@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= iaxmodem
|
|
PORTVERSION= 0.1.9
|
|
CATEGORIES= comms
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= filippo.natali@gmail.com
|
|
COMMENT= Software modem that connects ta IAX channel
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
MAN1= iaxmodem.1
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
MAKE_ENV= LDFLAGS="${LDFLAGS}"
|
|
|
|
SUB_FILES= pkg-message
|
|
USE_RC_SUBR= iaxmodem.sh
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/usr/local/etc|${PREFIX}/etc|g" ${WRKSRC}/iaxmodem.1
|
|
@${REINPLACE_CMD} -e "s|/etc/iaxmodem|${PREFIX}/etc/iaxmodem|g" ${WRKSRC}/iaxmodem.c
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build static
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/iaxmodem ${PREFIX}/sbin/ && \
|
|
${MKDIR} ${PREFIX}/etc/iaxmodem && \
|
|
${MKDIR} /var/log/iaxmodem && \
|
|
${MKDIR} ${EXAMPLESDIR} && \
|
|
${INSTALL_DATA} ${WRKSRC}/config.ttyIAX ${EXAMPLESDIR}/ && \
|
|
${INSTALL_DATA} ${WRKSRC}/iaxmodem-cfg.ttyIAX ${EXAMPLESDIR}/
|
|
${INSTALL_MAN} ${WRKSRC}/iaxmodem.1 ${MAN1PREFIX}/man/man1
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR} && \
|
|
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO ${WRKSRC}/FAQ ${WRKSRC}/CHANGES ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(BATCH)
|
|
@${CAT} ${PKGMESSAGE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|