View | Details | Raw Unified | Return to bug 252928 | Differences between
and this patch

Collapse All | Expand All

(-)b/emulators/mtools/Makefile (+4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mtools
4
PORTNAME=	mtools
5
PORTVERSION=	4.0.26
5
PORTVERSION=	4.0.26
6
PORTREVISION=	1
6
CATEGORIES=	emulators
7
CATEGORIES=	emulators
7
MASTER_SITES=	GNU
8
MASTER_SITES=	GNU
8
9
Lines 31-36 OPTIONS_DEFAULT=ICONV X11 Link Here
31
USES+=		iconv
32
USES+=		iconv
32
CPPFLAGS+=	-I${LOCALBASE}/include
33
CPPFLAGS+=	-I${LOCALBASE}/include
33
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
34
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
35
LIB_DEPENDS+=	libiconv.so:converters/libiconv
34
.else
36
.else
35
CONFIGURE_ENV+=	ac_cv_header_iconv_h=no
37
CONFIGURE_ENV+=	ac_cv_header_iconv_h=no
36
.endif
38
.endif
Lines 51-56 post-patch: Link Here
51
		${WRKSRC}/llong.h
53
		${WRKSRC}/llong.h
52
	@${REINPLACE_CMD} -e 's|/etc/mtools.conf|${PREFIX}/etc/mtools.conf|g' \
54
	@${REINPLACE_CMD} -e 's|/etc/mtools.conf|${PREFIX}/etc/mtools.conf|g' \
53
		${WRKSRC}/mformat.c
55
		${WRKSRC}/mformat.c
56
	@${REINPLACE_CMD} -e 's|^\(SAMPLE FILE\)$$|#\1|' \
57
		${WRKSRC}/mtools.conf
54
.for f in mtools.5 mtools.texi
58
.for f in mtools.5 mtools.texi
55
	@${REINPLACE_CMD} -e 's|/usr/local/etc/|${PREFIX}/etc/|g' \
59
	@${REINPLACE_CMD} -e 's|/usr/local/etc/|${PREFIX}/etc/|g' \
56
		${WRKSRC}/${f}
60
		${WRKSRC}/${f}

Return to bug 252928