2013-04-23 16:20:25 +02:00
|
|
|
# Created by: torstenb@FreeBSD.org
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1995-07-16 01:43:35 +02:00
|
|
|
|
2003-02-09 21:15:46 +01:00
|
|
|
PORTNAME= mc
|
2013-01-26 07:38:17 +01:00
|
|
|
PORTVERSION= 4.8.1.7
|
2012-11-03 12:02:46 +01:00
|
|
|
PORTREVISION= 0
|
2003-02-09 21:15:46 +01:00
|
|
|
CATEGORIES= misc shells
|
2009-02-04 10:40:12 +01:00
|
|
|
MASTER_SITES= http://www.midnight-commander.org/downloads/ \
|
|
|
|
${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= utils/file/managers/mc
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
1997-06-20 14:22:36 +02:00
|
|
|
|
2002-08-07 21:21:07 +02:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2003-02-18 12:54:56 +01:00
|
|
|
COMMENT= Midnight Commander, a free Norton Commander Clone
|
1995-07-16 01:43:35 +02:00
|
|
|
|
2012-11-05 13:50:25 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2007-08-23 16:30:57 +02:00
|
|
|
CONFLICTS= mc-light-4*
|
|
|
|
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= pkgconfig
|
1999-01-31 19:12:50 +01:00
|
|
|
USE_GMAKE= yes
|
2003-12-18 19:48:30 +01:00
|
|
|
USE_GNOME= glib20
|
2007-09-08 03:12:10 +02:00
|
|
|
USE_PERL5= yes
|
2010-06-04 10:09:20 +02:00
|
|
|
USE_XZ= yes
|
1999-01-31 19:12:50 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-11-03 01:38:47 +01:00
|
|
|
CONFIGURE_ENV= ZIP=${UNZIP_CMD} UNZIP=${UNZIP_CMD}
|
2011-10-06 15:43:24 +02:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2009-12-14 19:54:05 +01:00
|
|
|
OPTIONS= SLANG "Build with SLang library" on \
|
2005-07-13 00:25:50 +02:00
|
|
|
ICONV "Build with iconv recoding" on \
|
2007-08-23 16:30:57 +02:00
|
|
|
NLS "Build with NLS support" on \
|
2005-07-13 00:25:50 +02:00
|
|
|
EDIT "Build with internal editor" on \
|
|
|
|
X11 "Build with X11 library" off \
|
|
|
|
SUBSHELL "Build with subshell support" on \
|
|
|
|
SAMBA "Build with Samba support" on
|
|
|
|
|
2010-01-24 09:55:47 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's/SUBDIRS = intl/SUBDIRS =/' ${WRKSRC}/Makefile.in
|
2012-10-02 12:58:22 +02:00
|
|
|
${REINPLACE_CMD} -e 's/saved_CPPFLAGS="-ltermcap/saved_CPPFLAGS="/' ${WRKSRC}/configure
|
2010-01-24 09:55:47 +01:00
|
|
|
|
2004-02-04 06:25:22 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-02-08 17:42:33 +01:00
|
|
|
.if defined(WITH_SAMBA) || !(defined(WITHOUT_SAMBA) || defined(MINIMAL))
|
2010-10-04 18:08:01 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-vfs-smb --with-configdir=${LOCALBASE}/etc\
|
2003-10-02 16:28:56 +02:00
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
.endif
|
|
|
|
|
2005-02-08 17:42:33 +01:00
|
|
|
.if defined(WITH_ICONV) || !(defined(WITHOUT_ICONV) || defined(MINIMAL))
|
2009-12-14 19:54:05 +01:00
|
|
|
USE_ICONV= yes
|
2002-08-11 14:00:46 +02:00
|
|
|
PLIST_SUB= CHARSETS=""
|
|
|
|
.else
|
2009-12-14 19:54:05 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-charset
|
2002-08-11 14:00:46 +02:00
|
|
|
PLIST_SUB= CHARSETS="@comment "
|
|
|
|
.endif
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2007-08-23 16:30:57 +02:00
|
|
|
.if !defined(WITH_NLS) && (defined(WITHOUT_NLS) || defined(MINIMAL))
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-12-14 19:54:05 +01:00
|
|
|
USE_GETTEXT= yes
|
2007-08-23 16:30:57 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2009-02-04 10:40:12 +01:00
|
|
|
_MANLANG= es hu it pl ru sr
|
2007-08-23 16:30:57 +02:00
|
|
|
.endif
|
|
|
|
|
2011-01-20 09:55:15 +01:00
|
|
|
.if !defined(WITH_X11) || (defined(WITHOUT_X11) || defined(MINIMAL))
|
2003-07-10 12:39:38 +02:00
|
|
|
CONFIGURE_ARGS+=--without-x
|
2005-07-13 00:25:50 +02:00
|
|
|
.else
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xext
|
2003-07-10 12:39:38 +02:00
|
|
|
.endif
|
|
|
|
|
2005-02-08 17:42:33 +01:00
|
|
|
.if !defined(WITH_EDIT) && (defined(WITHOUT_EDIT) || defined(MINIMAL))
|
|
|
|
CONFIGURE_ARGS+=--without-edit
|
|
|
|
PLIST_SUB+= EDITOR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EDITOR=""
|
|
|
|
.endif
|
|
|
|
|
2009-12-15 13:06:29 +01:00
|
|
|
.if !defined(WITH_SLANG) && (defined(WITHOUT_SLANG) || defined(MINIMAL))
|
2003-02-09 21:15:46 +01:00
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 14:36:24 +02:00
|
|
|
.else
|
2009-12-15 13:06:29 +01:00
|
|
|
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
|
2010-09-09 14:10:28 +02:00
|
|
|
CONFIGURE_ARGS+=--with-screen=slang --with-slang-includes=${LOCALBASE}/include
|
2002-08-07 21:21:07 +02:00
|
|
|
.endif
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2005-02-08 17:42:33 +01:00
|
|
|
.if !defined(WITH_SUBSHELL) && (defined(WITHOUT_SUBSHELL) || defined(MINIMAL))
|
2003-02-09 21:15:46 +01:00
|
|
|
CONFIGURE_ARGS+=--without-subshell
|
2002-08-11 14:00:46 +02:00
|
|
|
.endif
|
2002-08-05 23:26:26 +02:00
|
|
|
|
2003-02-09 21:15:46 +01:00
|
|
|
MAN1= mc.1 mcedit.1 mcview.1
|
2003-08-11 21:11:29 +02:00
|
|
|
_MAN1= mc.1
|
|
|
|
.for lang in ${_MANLANG}
|
|
|
|
_MANPAGES+= ${_MAN1:S%^%${MAN1PREFIX}/man/${lang}/man1/%}
|
|
|
|
.endfor
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2003-04-09 17:23:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|