freebsd-ports/emulators/mtools/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

62 lines
1.3 KiB
Makefile

# Created by: jmz
# $FreeBSD$
PORTNAME= mtools
PORTVERSION= 4.0.10
PORTREVISION= 6
CATEGORIES= emulators
MASTER_SITES= GNU
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Collection of tools for manipulating MS-DOS files
LICENSE= GPLv3
CONFLICTS_INSTALL= multimarkdown-*
USES= gmake makeinfo tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_header_malloc_h=no
CONFIGURE_ARGS= --enable-xdf
SUB_FILES= pkg-message
INFO= mtools
OPTIONS_DEFINE= ICONV X11
OPTIONS_DEFAULT=ICONV X11
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MICONV}
USES+= iconv
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
.else
CONFIGURE_ENV+= ac_cv_header_iconv_h=no
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 sm ice xau
PLIST_SUB+= X11=""
.else
CONFIGURE_ARGS+= --without-x
PLIST_SUB+= X11="@comment "
MAKE_ENV+= WITHOUT_X11=yes
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^#define MT_SIZE_T size_t|#define MT_SIZE_T off_t|g' \
${WRKSRC}/llong.h
@${REINPLACE_CMD} -e 's|/etc/mtools.conf|${PREFIX}/etc/mtools.conf|g' \
${WRKSRC}/mformat.c
.for f in mtools.5 mtools.texi
@${REINPLACE_CMD} -e 's|/usr/local/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/${f}
.endfor
post-install:
${INSTALL_DATA} ${WRKSRC}/mtools.conf ${STAGEDIR}${PREFIX}/etc/mtools.conf.sample
.include <bsd.port.mk>