2004-09-02 12:10:35 +00:00
|
|
|
# New ports collection makefile for: mc-light
|
|
|
|
# Date created: 31.08.2004
|
|
|
|
# Whom: Roman Y. Bogdanov <sam@brj.pp.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mc-light
|
|
|
|
PORTVERSION= 4.1.40.p9
|
2010-05-31 02:01:56 +00:00
|
|
|
PORTREVISION= 8
|
2004-09-02 12:10:35 +00:00
|
|
|
CATEGORIES= misc shells
|
|
|
|
MASTER_SITES= http://mc.linuxinside.com/Releases/
|
|
|
|
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/}
|
|
|
|
|
2010-09-24 09:49:56 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-09-02 12:10:35 +00:00
|
|
|
COMMENT= A lightweight Midnight Commander clone
|
|
|
|
|
2004-10-12 05:48:15 +00:00
|
|
|
RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
|
2004-10-20 01:45:44 +00:00
|
|
|
|
2010-09-09 19:14:28 +00:00
|
|
|
CONFLICTS= mc-4.7*
|
2004-09-02 12:10:35 +00:00
|
|
|
|
2007-08-14 17:29:10 +00:00
|
|
|
OPTIONS= NLS "Enable gettext support" on \
|
2005-06-01 14:22:24 +00:00
|
|
|
SUBSHELL "Build with subshell support (only for bash!)" off \
|
|
|
|
MC_IN_MC "Allow run mc inside mc (useful for mcedit)" off
|
|
|
|
|
2004-09-02 12:10:35 +00:00
|
|
|
USE_GMAKE= yes
|
2005-01-08 15:00:18 +00:00
|
|
|
USE_ICONV= yes
|
2004-10-12 05:48:15 +00:00
|
|
|
USE_GNOME= pkgconfig gnometarget
|
2004-09-02 12:10:35 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+=--with-included-slang \
|
|
|
|
--with-gettext \
|
|
|
|
--with-vfs \
|
|
|
|
--with-netrc \
|
|
|
|
--without-gpm-mouse \
|
|
|
|
--with-edit
|
|
|
|
|
|
|
|
MAN1= mc.1 mcedit.1
|
|
|
|
MAN8= mcserv.8
|
|
|
|
|
2005-06-01 14:22:24 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-10-20 01:58:22 +00:00
|
|
|
.if !defined(WITH_SUBSHELL)
|
|
|
|
CONFIGURE_ARGS+=--without-subshell
|
|
|
|
.endif
|
|
|
|
|
2007-08-14 17:29:10 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2004-09-02 12:10:35 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2007-08-14 17:29:10 +00:00
|
|
|
.endif
|
2004-09-02 12:10:35 +00:00
|
|
|
|
2005-06-01 14:22:24 +00:00
|
|
|
.if defined(WITH_MC_IN_MC)
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-DMC_IN_MC_ALLOWED
|
|
|
|
.endif
|
|
|
|
|
2004-10-20 01:45:44 +00:00
|
|
|
post-install:
|
|
|
|
.for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo
|
|
|
|
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i}
|
|
|
|
.endfor
|
|
|
|
|
2005-06-01 14:22:24 +00:00
|
|
|
.include <bsd.port.post.mk>
|