aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mc-light/Makefile
blob: 80d3805541307d87afcf0c299136039ead4d9b64 (plain) (blame)
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
# Created by: Roman Y. Bogdanov <sam@brj.pp.ru>
# $FreeBSD$

PORTNAME=   mc-light
PORTVERSION=    4.1.40.p9
PORTREVISION=   11
CATEGORIES= misc shells
MASTER_SITES=   http://mc.linuxinside.com/Releases/
DISTNAME=   mc-${PORTVERSION:S/.p9/-pre9/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Lightweight Midnight Commander clone

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    gawk:lang/gawk

CONFLICTS=  mc-4.7*

USES=       gmake iconv pkgconfig shebangfix
SHEBANG_FILES=  vfs/extfs/a vfs/extfs/deb \
        vfs/extfs/iso vfs/extfs/mailfs
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--with-included-slang \
        --with-gettext \
        --with-vfs \
        --with-netrc \
        --without-gpm-mouse \
        --with-edit

OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC
OPTIONS_SUB=    yes

SUBSHELL_DESC=  Build with subshell support (only for bash!)
SUBSHELL_CONFIGURE_WITH=    subshell

MC_IN_MC_DESC=  Allow run mc inside mc (useful for mcedit)
MC_IN_MC_CPPFLAGS=  -DMC_IN_MC_ALLOWED

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

post-patch:
    @${REINPLACE_CMD} '/destdir/ s|gnulocaledir|DESTDIR)$$(&|' \
        ${WRKSRC}/po/Makefile.in.in

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mcserv
.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 ${STAGEDIR}${PREFIX}/share/mc/extfs/${i}
.endfor

.include <bsd.port.mk>