1995-07-15 19:43:35 -04:00
|
|
|
# New ports collection makefile for: mc
|
|
|
|
# Date created: 15 Jul 1995
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-07-15 19:43:35 -04:00
|
|
|
#
|
1999-08-25 03:23:21 -04:00
|
|
|
# $FreeBSD$
|
1995-07-15 19:43:35 -04:00
|
|
|
#
|
|
|
|
|
2003-02-09 15:15:46 -05:00
|
|
|
PORTNAME= mc
|
2005-08-30 11:45:52 -04:00
|
|
|
PORTVERSION= 4.6.1
|
2007-07-17 23:59:42 -04:00
|
|
|
PORTREVISION= 5
|
2003-02-09 15:15:46 -05:00
|
|
|
CATEGORIES= misc shells
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= utils/file/managers/mc/
|
1997-06-20 08:22:36 -04:00
|
|
|
|
2002-08-07 15:21:07 -04:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2003-02-18 06:54:56 -05:00
|
|
|
COMMENT= Midnight Commander, a free Norton Commander Clone
|
1995-07-15 19:43:35 -04:00
|
|
|
|
2006-05-28 01:25:50 -04:00
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
|
1999-01-31 13:12:50 -05:00
|
|
|
|
2004-02-03 23:36:30 -05:00
|
|
|
USE_GETTEXT= yes
|
1999-01-31 13:12:50 -05:00
|
|
|
USE_GMAKE= yes
|
2003-12-18 13:48:30 -05:00
|
|
|
USE_GNOME= glib20
|
1999-01-31 13:12:50 -05:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2005-07-12 18:25:50 -04:00
|
|
|
OPTIONS= SLANG "Build with SLang library" on \
|
|
|
|
ICONV "Build with iconv recoding" on \
|
|
|
|
EDIT "Build with internal editor" on \
|
|
|
|
X11 "Build with X11 library" off \
|
|
|
|
SUBSHELL "Build with subshell support" on \
|
|
|
|
SAMBA "Build with Samba support" on
|
|
|
|
|
2004-02-04 00:25:22 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if defined(WITH_SAMBA) || !(defined(WITHOUT_SAMBA) || defined(MINIMAL))
|
2003-10-02 10:28:56 -04:00
|
|
|
CONFIGURE_ARGS+=--with-samba --with-configdir=${LOCALBASE}/etc \
|
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
.endif
|
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if defined(WITH_ICONV) || !(defined(WITHOUT_ICONV) || defined(MINIMAL))
|
2003-02-09 15:15:46 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-charset
|
2004-03-30 14:20:22 -05:00
|
|
|
USE_ICONV= yes
|
2002-08-11 08:00:46 -04:00
|
|
|
PLIST_SUB= CHARSETS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= CHARSETS="@comment "
|
|
|
|
.endif
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if !defined(WITH_X11) || defined(MINIMAL)
|
2003-07-10 06:39:38 -04:00
|
|
|
CONFIGURE_ARGS+=--without-x
|
2005-07-12 18:25:50 -04:00
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
2003-07-10 06:39:38 -04:00
|
|
|
.endif
|
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if !defined(WITH_EDIT) && (defined(WITHOUT_EDIT) || defined(MINIMAL))
|
|
|
|
CONFIGURE_ARGS+=--without-edit
|
|
|
|
PLIST_SUB+= EDITOR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EDITOR=""
|
|
|
|
.endif
|
|
|
|
|
2003-04-09 11:23:26 -04:00
|
|
|
.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
|
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if !defined(WITH_SLANG) && (defined(WITHOUT_SLANG) || defined(MINIMAL))
|
2003-02-09 15:15:46 -05:00
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 08:36:24 -04:00
|
|
|
.else
|
2005-09-13 07:16:16 -04:00
|
|
|
CONFIGURE_ARGS+=--with-screen=mcslang
|
2002-08-07 15:21:07 -04:00
|
|
|
.endif
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if !defined(WITH_SUBSHELL) && (defined(WITHOUT_SUBSHELL) || defined(MINIMAL))
|
2003-02-09 15:15:46 -05:00
|
|
|
CONFIGURE_ARGS+=--without-subshell
|
2002-08-11 08:00:46 -04:00
|
|
|
.endif
|
2002-08-05 17:26:26 -04:00
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if defined(WITH_PERL_MODULES) || !(defined(WITHOUT_PERL_MODULES) || defined(MINIMAL))
|
2004-08-12 08:48:01 -04:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
2005-08-30 11:45:52 -04:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
|
2004-07-11 13:46:01 -04:00
|
|
|
.endif
|
2005-02-08 11:42:33 -05:00
|
|
|
.endif
|
2004-07-11 13:46:01 -04:00
|
|
|
|
2003-02-09 15:15:46 -05:00
|
|
|
MAN1= mc.1 mcedit.1 mcview.1
|
2003-08-11 15:11:29 -04:00
|
|
|
_MAN1= mc.1
|
2005-08-31 12:24:32 -04:00
|
|
|
_MANLANG= es hu it pl ru.KOI8-R sr
|
2003-08-11 15:11:29 -04:00
|
|
|
.for lang in ${_MANLANG}
|
|
|
|
_MANPAGES+= ${_MAN1:S%^%${MAN1PREFIX}/man/${lang}/man1/%}
|
|
|
|
.endfor
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2002-08-05 17:26:26 -04:00
|
|
|
post-patch:
|
2003-02-26 12:06:16 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/zip|${LOCALBASE}/bin/zip|' \
|
2003-02-09 15:15:46 -05:00
|
|
|
-e 's|/usr/bin/unzip|${LOCALBASE}/bin/unzip|' \
|
|
|
|
${WRKSRC}/configure
|
2002-08-05 17:26:26 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${LN} -sf mc ${PREFIX}/bin/midc
|
1999-12-23 13:37:52 -05:00
|
|
|
|
2003-04-09 11:23:26 -04:00
|
|
|
.include <bsd.port.post.mk>
|