6fd5e61155
- Correctly detect overlong file names, especially when multibyte (UTF-8) strings are concerned - Fix off-by-one error in two calls to native_to_wchar() - When changing disk label, ignore any plain file which would match the label - Add missing newlines in error messages about disk geometry - Do not print error message if getting geometry is simply not supported by device type (such as for loop devices) - If full geometry of a device is not available (such as for loop devices), at least make use of the size
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
PORTNAME= mtools
|
|
PORTVERSION= 4.0.49
|
|
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
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
INFO= mtools
|
|
PORTDOCS= NEWS README Release.notes
|
|
|
|
OPTIONS_DEFINE= DOCS 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,${PREFIX}/etc,' \
|
|
${WRKSRC}/mtoolsPaths.h
|
|
@${REINPLACE_CMD} -e '/^SAMPLE FILE/s,^,#,' ${WRKSRC}/mtools.conf
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/mtools.conf \
|
|
${STAGEDIR}${PREFIX}/etc/mtools.conf.sample
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|