freebsd-ports/net/astfax/Makefile
Renato Botelho 70b7635b3a AstFax provides an outgoing email to fax gateway for the Asterisk PBX package.
Incoming fax to email can also be configured so your Asterisk server can act
as both an outgoing and incoming fax server.

Features

    * Written in C
    * Processes large email messages quickly with the EPS library
    * Easy to use, simply send an email to the fax number
    * Configures easily with Asterisk, and most Unix-based MTAs

WWW: http://www.inter7.com/index.php?page=astfax

PR:		ports/85031
Submitted by:	Filippo Natali <filippo.natali at gmail.com>
2006-07-11 13:30:52 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: astfax
# Date created: 13 Aug 2005
# Whom: Filippo Natali <filippo.natali@gmail.com>
#
# $FreeBSD$
#
PORTNAME= astfax
PORTVERSION= 1.0
CATEGORIES= net
MASTER_SITES= http://www.inter7.com/astfax/
MAINTAINER= filippo.natali@gmail.com
COMMENT= AstFax provides an outgoing email to fax gateway for Asterisk
LIB_DEPENDS= spandsp.0:${PORTSDIR}/comms/spandsp
BUILD_DEPENDS= ${LOCALBASE}/lib/libeps.a:${PORTSDIR}/mail/eps
RUN_DEPENDS= ${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk
PORTDOCS= README testfax.eml testfax.tif
MAKE_ENV+= DEFS="${CFLAGS}"
post-patch:
@${REINPLACE_CMD} -e 's|^CC =|CC \?=|' \
-e 's|^DEFS =|DEFS \?=|' \
-e 's|\/usr\/include\/eps|${LOCALBASE}\/include|' \
-e 's|^LIBS=-leps|LIBS=-leps -L${LOCALBASE}\/lib|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|"\/tmp"|"\/var\/tmp"|' \
-e 's|"\./ast_fax.call"|"${DATADIR}\/ast_fax.call"|' \
${WRKSRC}/ast_fax.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ast_fax ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ast_fax.call ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
for f in ${PORTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$${f} ${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>