summaryrefslogtreecommitdiff
path: root/misc/mc/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-04-09 15:23:26 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-04-09 15:23:26 +0000
commit28b97f62bc5b7a2d00749e23133c5dddff7d8a03 (patch)
tree198405cbc3ba445e3b7f6ef77319fb2232c276f7 /misc/mc/Makefile
parentFix build on alpha. (diff)
do not build with slang on alpha (otherwise mc hangs in has_colors())
PR: 50555
Diffstat (limited to '')
-rw-r--r--misc/mc/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index b633c0436755..8bbd28962d10 100644
--- a/misc/mc/Makefile
+++ b/misc/mc/Makefile
@@ -15,6 +15,8 @@ MASTER_SITE_SUBDIR= utils/file/managers/mc/
MAINTAINER= fjoe@FreeBSD.org
COMMENT= Midnight Commander, a free Norton Commander Clone
+.include <bsd.port.pre.mk>
+
LIB_DEPENDS= glib-2.0.200:${PORTSDIR}/devel/glib20 \
intl.4:${PORTSDIR}/devel/gettext
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
@@ -34,6 +36,13 @@ PLIST_SUB= CHARSETS=""
PLIST_SUB= CHARSETS="@comment "
.endif
+.if ${ARCH} == "alpha"
+#
+# something is wrong with slang on alpha: mc enters an infinite loop
+# when calling has_colors() during terminal init (colors.c:250)
+WITHOUT_SLANG= yes
+.endif
+
.if defined(WITHOUT_SLANG)
CONFIGURE_ARGS+=--with-screen=ncurses
.else
@@ -57,4 +66,4 @@ post-patch:
post-install:
@${LN} -sf mc ${PREFIX}/bin/midc
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>