1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/emulators/mtools/Makefile
Niclas Zeising d52303ea80 Add USES=xorg USES=gl, ports categories e
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'e'.
2019-11-05 15:48:40 +00:00

64 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}
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 \
'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>