aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mc/Makefile
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2008-04-10 03:31:16 +0800
committerfjoe <fjoe@FreeBSD.org>2008-04-10 03:31:16 +0800
commitac6ef3f96fac562bfa6caddeba0c70f6b1830cf3 (patch)
tree0e41588bb1d98149265ff953b2a1080b6f020ac0 /misc/mc/Makefile
parent2966117f74d205e3c71094a66865a4b42b7ab438 (diff)
downloadfreebsd-ports-gnome-ac6ef3f96fac562bfa6caddeba0c70f6b1830cf3.tar.gz
freebsd-ports-gnome-ac6ef3f96fac562bfa6caddeba0c70f6b1830cf3.tar.zst
freebsd-ports-gnome-ac6ef3f96fac562bfa6caddeba0c70f6b1830cf3.zip
- Add UTF-8 support [1]
- Add ability to build with glib12 (though it still builds with glib2 if it is installed) [2] PR: 114598 [1] Submitted by: Cristian KLEIN [1], Alexander Zagrebin [2]
Diffstat (limited to 'misc/mc/Makefile')
-rw-r--r--misc/mc/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index 8e8e5a5a32c5..e841a6d625e6 100644
--- a/misc/mc/Makefile
+++ b/misc/mc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mc
PORTVERSION= 4.6.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= misc shells
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= utils/file/managers/mc/
@@ -22,11 +22,16 @@ BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
USE_GETTEXT= yes
USE_ICONV= yes
USE_GMAKE= yes
+.if defined(WITH_GLIB12) || defined(MINIMAL)
+USE_GNOME= glib12
+.else
USE_GNOME= glib20
+.endif
USE_PERL5= yes
GNU_CONFIGURE= yes
-OPTIONS= SLANG "Build with SLang library" on \
+OPTIONS= UTF8 "Build with UTF8 support" on \
+ SLANG "Build with SLang library" on \
ICONV "Build with iconv recoding" on \
NLS "Build with NLS support" on \
EDIT "Build with internal editor" on \
@@ -76,7 +81,11 @@ PLIST_SUB+= EDITOR=""
WITHOUT_SLANG= yes
.endif
-.if !defined(WITH_SLANG) && (defined(WITHOUT_SLANG) || defined(MINIMAL))
+.if defined(WITH_UTF8)
+LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
+CONFIGURE_ARGS+=--with-screen-slang
+CONFIGURE_ENV+= LDFLAGS=-L${PREFIX}/lib
+.elif !defined(WITH_SLANG) && (defined(WITHOUT_SLANG) || defined(MINIMAL))
CONFIGURE_ARGS+=--with-screen=ncurses
.else
CONFIGURE_ARGS+=--with-screen=mcslang
@@ -106,6 +115,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/zip|${LOCALBASE}/bin/zip|' \
-e 's|/usr/bin/unzip|${LOCALBASE}/bin/unzip|' \
${WRKSRC}/configure
+.if defined(WITH_UTF8)
+ cat ${PATCHDIR}/mc-4.6.1-utf8-r2.patch | patch -p1 --silent -d ${WRKSRC}
+.endif
post-install:
@${LN} -sf mc ${PREFIX}/bin/midc