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-05-18 13:57:57 +02:00
|
|
|
PORTVERSION= 4.8.8
|
2012-11-03 12:02:46 +01:00
|
|
|
PORTREVISION= 0
|
2003-02-09 21:15:46 +01:00
|
|
|
CATEGORIES= misc shells
|
2013-05-18 13:57:57 +02:00
|
|
|
MASTER_SITES= http://ftp.osuosl.org/pub/midnightcommander/
|
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
|
|
|
|
|
2013-07-28 09:56:47 +02:00
|
|
|
LIB_DEPENDS= ssh2:${PORTSDIR}/security/libssh2
|
|
|
|
|
2007-08-23 16:30:57 +02:00
|
|
|
CONFLICTS= mc-light-4*
|
|
|
|
|
2013-09-14 14:04:18 +02:00
|
|
|
USES= gmake perl5 pkgconfig
|
2003-12-18 19:48:30 +01:00
|
|
|
USE_GNOME= glib20
|
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
|
|
|
|
2013-05-18 13:57:57 +02:00
|
|
|
PORTDATA= *
|
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
OPTIONS_DEFINE= SLANG ICONV NLS EDIT X11 SUBSHELL SMB
|
|
|
|
EDIT_DESC= Build with internal editor
|
|
|
|
SUBSHELL_DESC= Build with subshell support
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= SLANG ICONV NLS EDIT X11 SUBSHELL SMB
|
2005-07-13 00:25:50 +02:00
|
|
|
|
2013-09-20 22:50:57 +02:00
|
|
|
NO_STAGE= yes
|
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
|
|
|
|
2013-05-06 11:06:18 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-02-04 06:25:22 +01:00
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MSMB} && !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
|
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MICONV} && !defined(MINIMAL)
|
2013-04-27 13:59:28 +02:00
|
|
|
USES+= iconv
|
2002-08-11 14:00:46 +02:00
|
|
|
.else
|
2009-12-14 19:54:05 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-charset
|
2002-08-11 14:00:46 +02:00
|
|
|
.endif
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MNLS} && !defined(MINIMAL)
|
2007-08-23 16:30:57 +02:00
|
|
|
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
|
2013-05-06 11:06:18 +02:00
|
|
|
USES+= gettext
|
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
|
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MX11} && !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
|
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MEDIT} && !defined(MINIMAL)
|
2005-02-08 17:42:33 +01:00
|
|
|
CONFIGURE_ARGS+=--without-edit
|
|
|
|
PLIST_SUB+= EDITOR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EDITOR=""
|
|
|
|
.endif
|
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MSLANG} && !defined(MINIMAL)
|
2003-02-09 21:15:46 +01:00
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 14:36:24 +02:00
|
|
|
.else
|
2013-07-28 09:56:47 +02:00
|
|
|
LIB_DEPENDS+= slang:${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
|
|
|
|
2013-06-03 09:40:32 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MSUBSHELL} && !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
|
|
|
|
2013-05-06 11:06:18 +02:00
|
|
|
.include <bsd.port.mk>
|