freebsd-ports/comms/mgetty+sendfax/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

52 lines
1.5 KiB
Makefile

# Created by: rkw
# $FreeBSD$
PORTNAME= mgetty
PORTVERSION= 1.1.37
PORTREVISION= 2
CATEGORIES= comms
MASTER_SITES= ftp://mgetty.greenie.net/pub/mgetty/source/1.1/
DISTNAME= ${PORTNAME}${PORTVERSION}-Jun05
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Handle external logins, send and receive faxes
LICENSE= GPLv2
USE_CSTD= gnu89
USES= makeinfo perl5 shebangfix
SHEBANG_FILES= samples/fax samples/new_fax.all/new_fax samples/new_fax.mime1 \
samples/new_fax.th samples/coverpg-pl.ps samples/faxview.th
SUB_FILES= pkg-message mgettycfg
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS= INFODIR=${PREFIX}/${INFO_PATH}
MAKE_FLAGS= CFLAGS="${CFLAGS}" prefix=${PREFIX} LOCALBASE=${LOCALBASE}\
STAGEDIR=${STAGEDIR} -f
ALL_TARGET= noident all
INFO= mgetty
CFLAGS+= -DAUTO_PPP
MAKE_JOBS_UNSAFE= yes
BROKEN_aarch64= Fails to compile: error: initializer element is not a compile-time constant
BROKEN_mips64= Fails to compile: error: initializer element is not a compile-time constant
OPTIONS_DEFINE= FIDO
FIDO_DESC= Enable FIDO EMSI support
FIDO_CFLAGS= -DFIDO
pre-install:
@(cd ${WRKSRC}/doc; ${MAKE} manpages)
post-install:
.for a in dialin.config faxheader faxrunq.config login.config
cd ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/ && ${MV} ${a} ${a}.sample
.endfor
${INSTALL_DATA} -m 600 ${WRKSRC}/voice/voice.conf-dist \
${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/voice.conf.sample
cd ${WRKSRC} && ${COPYTREE_BIN} samples\
${STAGEDIR}${PREFIX}/lib/mgetty+sendfax
${INSTALL_SCRIPT} ${WRKDIR}/mgettycfg ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>