2013-04-23 14:20:25 +00:00
|
|
|
# Created by: torstenb@FreeBSD.org
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1995-07-15 23:43:35 +00:00
|
|
|
|
2003-02-09 20:15:46 +00:00
|
|
|
PORTNAME= mc
|
2013-12-06 23:49:35 +00:00
|
|
|
PORTVERSION= 4.8.11
|
2012-11-03 11:02:46 +00:00
|
|
|
PORTREVISION= 0
|
2003-02-09 20:15:46 +00:00
|
|
|
CATEGORIES= misc shells
|
2013-05-18 11:57:57 +00:00
|
|
|
MASTER_SITES= http://ftp.osuosl.org/pub/midnightcommander/
|
1997-06-20 12:22:36 +00:00
|
|
|
|
2013-11-02 22:13:00 +00:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2003-02-18 11:54:56 +00:00
|
|
|
COMMENT= Midnight Commander, a free Norton Commander Clone
|
1995-07-15 23:43:35 +00:00
|
|
|
|
2012-11-05 12:50:25 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2
|
2013-07-28 07:56:47 +00:00
|
|
|
|
2007-08-23 14:30:57 +00:00
|
|
|
CONFLICTS= mc-light-4*
|
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
USE_XZ= yes
|
2013-09-14 12:04:18 +00:00
|
|
|
USES= gmake perl5 pkgconfig
|
2003-12-18 18:48:30 +00:00
|
|
|
USE_GNOME= glib20
|
1999-01-31 18:12:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-11-03 00:38:47 +00:00
|
|
|
CONFIGURE_ENV= ZIP=${UNZIP_CMD} UNZIP=${UNZIP_CMD}
|
2011-10-06 13:43:24 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2013-12-06 23:49:35 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EDITOR ICONV NLS SMB SUBSHELL X11
|
2013-10-21 21:07:18 +00:00
|
|
|
|
|
|
|
OPTIONS_SINGLE= SCREEN
|
|
|
|
OPTIONS_SINGLE_SCREEN= SLANG NCURSES
|
2013-05-18 11:57:57 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
OPTIONS_DEFAULT= EDITOR ICONV SLANG SMB SUBSHELL X11
|
|
|
|
|
|
|
|
EDITOR_DESC= Build with internal editor
|
2013-06-03 07:40:32 +00:00
|
|
|
SUBSHELL_DESC= Build with subshell support
|
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
OPTIONS_SUB= yes
|
2005-07-12 22:25:50 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
EDITOR_CONFIGURE_WITH= internal-edit
|
2010-01-24 08:55:47 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
ICONV_USES= iconv
|
|
|
|
ICONV_CONFIGURE_ENABLE= charset
|
2004-02-04 05:25:22 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
NLS_USES= gettext
|
2003-10-02 14:28:56 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2
|
|
|
|
|
2013-11-02 22:08:01 +00:00
|
|
|
SMB_CONFIGURE_ENABLE= vfs-smb
|
|
|
|
SMB_CONFIGURE_ON= --with-smb-configdir=${LOCALBASE}/etc \
|
|
|
|
--with-smb-codepagedir=${LOCALBASE}/etc/codepages
|
2013-10-21 21:07:18 +00:00
|
|
|
|
|
|
|
SUBSHELL_CONFIGURE_WITH= subshell
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
X11_CONFIGURE_ENABLE= x
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
|
|
DOC_FILES1= AUTHORS NEWS README
|
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
|
|
DOC_FILES2= FAQ HACKING MAINTAINERS *.txt TODO
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-08-23 14:30:57 +00:00
|
|
|
.endif
|
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
.if${PORT_OPTIONS:MX11}
|
- 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 17:56:05 +00:00
|
|
|
USE_XORG= x11 xext
|
2003-07-10 10:39:38 +00:00
|
|
|
.endif
|
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
.if ${PORT_OPTIONS:MSLANG}
|
2010-09-09 12:10:28 +00:00
|
|
|
CONFIGURE_ARGS+=--with-screen=slang --with-slang-includes=${LOCALBASE}/include
|
2002-08-07 19:21:07 +00:00
|
|
|
.endif
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
.if ${PORT_OPTIONS:MNCURSES}
|
2013-11-02 22:08:01 +00:00
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 12:00:46 +00:00
|
|
|
.endif
|
2002-08-05 21:26:26 +00:00
|
|
|
|
2013-10-21 21:07:18 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|SUBDIRS = intl|SUBDIRS =|' ${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2013-05-06 09:06:18 +00:00
|
|
|
.include <bsd.port.mk>
|