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
|
2012-08-29 04:01:03 -04:00
|
|
|
PORTVERSION= 4.8.1.4
|
2012-08-29 09:46:28 -04:00
|
|
|
PORTREVISION= 1
|
2003-02-09 15:15:46 -05:00
|
|
|
CATEGORIES= misc shells
|
2009-02-04 04:40:12 -05: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 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
|
|
|
|
2007-08-23 10:30:57 -04:00
|
|
|
CONFLICTS= mc-light-4*
|
|
|
|
|
1999-01-31 13:12:50 -05:00
|
|
|
USE_GMAKE= yes
|
2003-12-18 13:48:30 -05:00
|
|
|
USE_GNOME= glib20
|
2012-07-26 01:40:22 -04:00
|
|
|
USE_PKGCONFIG= yes
|
2007-09-07 21:12:10 -04:00
|
|
|
USE_PERL5= yes
|
2010-06-04 04:09:20 -04:00
|
|
|
USE_XZ= yes
|
1999-01-31 13:12:50 -05:00
|
|
|
GNU_CONFIGURE= yes
|
2011-11-02 20:38:47 -04:00
|
|
|
CONFIGURE_ENV= ZIP=${UNZIP_CMD} UNZIP=${UNZIP_CMD}
|
2011-10-06 09:43:24 -04:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2009-12-14 13:54:05 -05:00
|
|
|
OPTIONS= SLANG "Build with SLang library" on \
|
2005-07-12 18:25:50 -04:00
|
|
|
ICONV "Build with iconv recoding" on \
|
2007-08-23 10:30:57 -04:00
|
|
|
NLS "Build with NLS support" on \
|
2005-07-12 18:25:50 -04: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 03:55:47 -05:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's/SUBDIRS = intl/SUBDIRS =/' ${WRKSRC}/Makefile.in
|
|
|
|
|
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))
|
2010-10-04 12:08:01 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-vfs-smb --with-configdir=${LOCALBASE}/etc\
|
2003-10-02 10:28:56 -04:00
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
.endif
|
|
|
|
|
2005-02-08 11:42:33 -05:00
|
|
|
.if defined(WITH_ICONV) || !(defined(WITHOUT_ICONV) || defined(MINIMAL))
|
2009-12-14 13:54:05 -05:00
|
|
|
USE_ICONV= yes
|
2002-08-11 08:00:46 -04:00
|
|
|
PLIST_SUB= CHARSETS=""
|
|
|
|
.else
|
2009-12-14 13:54:05 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-charset
|
2002-08-11 08:00:46 -04:00
|
|
|
PLIST_SUB= CHARSETS="@comment "
|
|
|
|
.endif
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2007-08-23 10:30:57 -04:00
|
|
|
.if !defined(WITH_NLS) && (defined(WITHOUT_NLS) || defined(MINIMAL))
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2011-09-23 18:26:39 -04:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-12-14 13:54:05 -05:00
|
|
|
USE_GETTEXT= yes
|
2007-08-23 10:30:57 -04:00
|
|
|
PLIST_SUB+= NLS=""
|
2009-02-04 04:40:12 -05:00
|
|
|
_MANLANG= es hu it pl ru sr
|
2007-08-23 10:30:57 -04:00
|
|
|
.endif
|
|
|
|
|
2011-01-20 03:55:15 -05:00
|
|
|
.if !defined(WITH_X11) || (defined(WITHOUT_X11) || defined(MINIMAL))
|
2003-07-10 06:39:38 -04:00
|
|
|
CONFIGURE_ARGS+=--without-x
|
2005-07-12 18:25:50 -04: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 13:56:05 -04:00
|
|
|
USE_XORG= x11 xext
|
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
|
|
|
|
|
2009-12-15 07:06:29 -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
|
2009-12-15 07:06:29 -05:00
|
|
|
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
|
2010-09-09 08:10:28 -04:00
|
|
|
CONFIGURE_ARGS+=--with-screen=slang --with-slang-includes=${LOCALBASE}/include
|
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
|
|
|
|
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
|
|
|
|
.for lang in ${_MANLANG}
|
|
|
|
_MANPAGES+= ${_MAN1:S%^%${MAN1PREFIX}/man/${lang}/man1/%}
|
|
|
|
.endfor
|
2003-02-09 15:15:46 -05:00
|
|
|
|
2003-04-09 11:23:26 -04:00
|
|
|
.include <bsd.port.post.mk>
|