summaryrefslogtreecommitdiff
path: root/misc/mc
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2002-08-07 19:21:07 +0000
committerMax Khon <fjoe@FreeBSD.org>2002-08-07 19:21:07 +0000
commit97c867a7c33503c37122d002e4f48800ca5ff192 (patch)
treeae9ee8369fc5e31a5c01553c90a820762484cb97 /misc/mc
parent- Update to 0.48 (diff)
- 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 <aef@antar.bryansk.ru> (partially)
Notes
Notes: svn path=/head/; revision=64165
Diffstat (limited to 'misc/mc')
-rw-r--r--misc/mc/Makefile17
1 files 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