1 |
# New ports collection makefile for: mc-light |
2 |
# Date created: 31.08.2004 |
3 |
# Whom: Roman Y. Bogdanov <sam@brj.pp.ru> |
4 |
# |
5 |
# $MidnightBSD: mports/misc/mc-light/Makefile,v 1.3 2011/05/14 22:25:54 laffer1 Exp $ |
6 |
# $FreeBSD: ports/misc/mc-light/Makefile,v 1.14 2008/06/06 13:45:34 edwin Exp $ |
7 |
|
8 |
PORTNAME= mc-light |
9 |
PORTVERSION= 4.1.40.p9 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= misc shells |
12 |
MASTER_SITES= http://mc.linuxinside.com/Releases/ |
13 |
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/} |
14 |
|
15 |
MAINTAINER= ports@MidnightBSD.org |
16 |
COMMENT= A lightweight Midnight Commander clone |
17 |
LICENSE= gpl2 |
18 |
|
19 |
RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk |
20 |
|
21 |
CONFLICTS= mc-4.7* |
22 |
|
23 |
OPTIONS= \ |
24 |
SUBSHELL "Build with subshell support (only for bash!)" off \ |
25 |
MC_IN_MC "Allow run mc inside mc (useful for mcedit)" off |
26 |
|
27 |
USE_GMAKE= yes |
28 |
USE_ICONV= yes |
29 |
USE_GNOME= pkgconfig |
30 |
GNU_CONFIGURE= yes |
31 |
CONFIGURE_ARGS+=--with-included-slang \ |
32 |
--with-gettext \ |
33 |
--with-vfs \ |
34 |
--with-netrc \ |
35 |
--without-gpm-mouse \ |
36 |
--with-edit |
37 |
|
38 |
MAN1= mc.1 mcedit.1 |
39 |
MAN8= mcserv.8 |
40 |
|
41 |
.include <bsd.port.pre.mk> |
42 |
|
43 |
.if !defined(WITH_SUBSHELL) |
44 |
CONFIGURE_ARGS+=--without-subshell |
45 |
.endif |
46 |
|
47 |
# Add an NLS option later |
48 |
CONFIGURE_ARGS+=--disable-nls |
49 |
PLIST_SUB+= NLS="@comment " |
50 |
|
51 |
.if defined(WITH_MC_IN_MC) |
52 |
CONFIGURE_ENV+= CPPFLAGS=-DMC_IN_MC_ALLOWED |
53 |
.endif |
54 |
|
55 |
post-install: |
56 |
.for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo |
57 |
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i} |
58 |
.endfor |
59 |
|
60 |
.include <bsd.port.post.mk> |