1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/comms/mgetty+sendfax/Makefile
Antoine Brodin 79cee04bec Allow to build with texinfo from ports
With hat:	portmgr
2014-06-26 07:32:36 +00:00

60 lines
1.7 KiB
Makefile

# Created by: rkw
# $FreeBSD$
PORTNAME= mgetty
PORTVERSION= 1.1.35
PORTREVISION= 7
CATEGORIES= comms
MASTER_SITES= ftp://mgetty.greenie.net/pub/mgetty/source/1.1/
DISTNAME= ${PORTNAME}${PORTVERSION}-Feb22
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Handle external logins, send and receive faxes
LICENSE= GPLv2
USE_CSTD= gnu89
USES= makeinfo perl5
SUB_FILES= pkg-message mgettycfg
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_FLAGS= CFLAGS="${CFLAGS}" prefix=${PREFIX} LOCALBASE=${LOCALBASE} STAGEDIR=${STAGEDIR} -f
ALL_TARGET= noident all
INFO= mgetty
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= FIDO
FIDO_DESC= Enable FIDO EMSI support
.include <bsd.port.options.mk>
CFLAGS+= -DAUTO_PPP
.if ${PORT_OPTIONS:MFIDO}
CFLAGS+= -DFIDO
.endif
.include <bsd.port.pre.mk>
pre-install:
@(cd ${WRKSRC}/doc; ${MAKE} manpages)
post-install:
@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/dialin.config \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/dialin.config.sample
@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxheader \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxheader.sample
@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxrunq.config \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxrunq.config.sample
@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/login.config \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/login.config.sample
${INSTALL_DATA} -m 600 ${WRKSRC}/voice/voice.conf-dist \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/voice.conf.sample
${TAR} -cf - -C ${WRKSRC} samples | ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/lib/mgetty+sendfax/
${INSTALL_SCRIPT} ${WRKDIR}/mgettycfg ${STAGEDIR}${PREFIX}/bin
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mgetty+sendfax/faxq-helper
.include <bsd.port.post.mk>