ports/filesystems/mtools/Makefile
Robert Clausecker 6e2da9672f filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.

Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.

Approved by:	portmgr (rene)
Reviewed by:	mat
Pull Request:	https://github.com/freebsd/freebsd-ports/pull/302
PR:		281988
2024-11-06 16:17:35 +01:00

58 lines
1.3 KiB
Makefile

PORTNAME= mtools
PORTVERSION= 4.0.43
PORTREVISION= 1
CATEGORIES= filesystems emulators
MASTER_SITES= GNU
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Tools for manipulating MS-DOS disks and images
WWW= https://www.gnu.org/software/mtools/intro.html
LICENSE= GPLv3
CONFLICTS_INSTALL= multimarkdown
USES= gmake makeinfo tar:lz
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_header_malloc_h=no
CONFIGURE_ARGS= --enable-xdf
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
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}
LIB_DEPENDS+= libiconv.so:converters/libiconv
.else
CONFIGURE_ENV+= ac_cv_header_iconv_h=no
.endif
.if ${PORT_OPTIONS:MX11}
USES+= xorg
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 '/LOCAL_CONF_FILE/s,/etc/default,${LOCALBASE}/etc,' \
${WRKSRC}/mtoolsPaths.h
@${REINPLACE_CMD} -e 's|^\(SAMPLE FILE\)$$|#\1|' \
${WRKSRC}/mtools.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/mtools.conf ${STAGEDIR}${PREFIX}/etc/mtools.conf.sample
.include <bsd.port.mk>