blob: 629b0b98b36f7619825bd9329a2d0f3e9b5cda4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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
PORTREVISION= 6
CATEGORIES= misc shells
MASTER_SITES= http://mc.linuxinside.com/Releases/
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/}
MAINTAINER= az@FreeBSD.org
COMMENT= A lightweight Midnight Commander clone
RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
CONFLICTS= mc-4.6*
OPTIONS= NLS "Enable gettext support (broken)" on \
SUBSHELL "Build with subshell support (only for bash!)" off \
MC_IN_MC "Allow run mc inside mc (useful for mcedit)" off
USE_GMAKE= yes
USE_ICONV= yes
USE_GNOME= pkgconfig gnometarget
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
.include <bsd.port.pre.mk>
.if !defined(WITH_SUBSHELL)
CONFIGURE_ARGS+=--without-subshell
.endif
# XXX: ru.po is broken with gettext-0.16.1
# XXX: .if !defined(WITHOUT_NLS)
# XXX: USE_GETTEXT= yes
# XXX: PLIST_SUB+= NLS=""
# XXX: .else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
# XXX: .endif
.if defined(WITH_MC_IN_MC)
CONFIGURE_ENV+= CPPFLAGS=-DMC_IN_MC_ALLOWED
.endif
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
.include <bsd.port.post.mk>
|