aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorSteven Kreuzer <skreuzer@FreeBSD.org>2021-02-23 16:09:20 +0000
committerSteven Kreuzer <skreuzer@FreeBSD.org>2021-02-23 16:09:20 +0000
commitf7926d38c38ddaadcb28f02c57bf43adb3431095 (patch)
treef0d1dc9671d278f19a3bfdc31879ba57bfed71be /emulators
parentfff33c01b2e9cb6617079bd3b107317ab16c305a (diff)
downloadports-f7926d38c38ddaadcb28f02c57bf43adb3431095.tar.gz
ports-f7926d38c38ddaadcb28f02c57bf43adb3431095.zip
Add libiconv as a dependancy
* Prefer to use libiconv from ports * Comment out the SAMPLE FILE line in mtools.conf to avoid breakng other ports PR: 252928 Submitted by: John Kennedy <warlock@phouka.net>
Notes
Notes: svn path=/head/; revision=566407
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mtools/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/emulators/mtools/Makefile b/emulators/mtools/Makefile
index 9cec730b4ac8..0d78acbba9ea 100644
--- a/emulators/mtools/Makefile
+++ b/emulators/mtools/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mtools
PORTVERSION= 4.0.26
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= GNU
@@ -31,6 +32,7 @@ OPTIONS_DEFAULT=ICONV X11
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
@@ -51,6 +53,8 @@ post-patch:
${WRKSRC}/llong.h
@${REINPLACE_CMD} -e 's|/etc/mtools.conf|${PREFIX}/etc/mtools.conf|g' \
${WRKSRC}/mformat.c
+ @${REINPLACE_CMD} -e 's|^\(SAMPLE FILE\)$$|#\1|' \
+ ${WRKSRC}/mtools.conf
.for f in mtools.5 mtools.texi
@${REINPLACE_CMD} -e 's|/usr/local/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/${f}