From 97c867a7c33503c37122d002e4f48800ca5ff192 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Wed, 7 Aug 2002 19:21:07 +0000 Subject: [PATCH] - enable --with-charset by default, provide WITHOUT_ICONV knob, bump port revision - do not loose LIB_DEPENDS on gettext (intl.4) - remove superflous whitespace - assign maintainership to myself Submitted by: Andrew Filonov (partially) --- misc/mc/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/misc/mc/Makefile b/misc/mc/Makefile index e83e3e028fe0..b2fae41f33b9 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -7,17 +7,20 @@ PORTNAME= mc PORTVERSION= 4.5.55 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/mc -MAINTAINER= ports@FreeBSD.org +MAINTAINER= fjoe@FreeBSD.org -LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext .if !defined(WITHOUT_SLANG) -LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang +LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang +.endif +.if !defined(WITHOUT_ICONV) +LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv .endif USE_GMAKE= yes @@ -30,6 +33,10 @@ CONFIGURE_ARGS= --with-slang --without-gnome .else CONFIGURE_ARGS= --with-ncurses --without-gnome .endif +.if !defined(WITHOUT_ICONV) +CONFIGURE_ARGS+=--enable-charset --with-libiconv-prefix=${LOCALBASE} +.endif + CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS="-L${LOCALBASE}/lib -lintl" CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} @@ -43,7 +50,7 @@ post-patch: @${REINPLACE_CMD} -e 's|DRAR=/usr/bin|DRAR=${LOCALBASE}/bin|' \ ${WRKSRC}/vfs/extfs/urar.in @${REINPLACE_CMD} -e 's|/usr/bin/\(.*\)zip|${LOCALBASE}/bin/\1zip|' \ - ${WRKSRC}/vfs/extfs/uzip + ${WRKSRC}/vfs/extfs/uzip post-install: @${LN} -sf mc ${PREFIX}/bin/midc