Tweak misc/pear-Services_Weather version 1.4.6,1
[dports.git] / misc / mc-light / Makefile
1 # Created by: Roman Y. Bogdanov <sam@brj.pp.ru>
2 # $FreeBSD$
3
4 PORTNAME=       mc-light
5 PORTVERSION=    4.1.40.p9
6 PORTREVISION=   11
7 CATEGORIES=     misc shells
8 MASTER_SITES=   http://mc.linuxinside.com/Releases/
9 DISTNAME=       mc-${PORTVERSION:S/.p9/-pre9/}
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Lightweight Midnight Commander clone
13
14 LICENSE=        GPLv2+
15 LICENSE_FILE=   ${WRKSRC}/COPYING
16
17 RUN_DEPENDS=    gawk:lang/gawk
18
19 CONFLICTS=      mc-4.7*
20
21 USES=           gmake iconv pkgconfig shebangfix
22 SHEBANG_FILES=  vfs/extfs/a vfs/extfs/deb \
23                 vfs/extfs/iso vfs/extfs/mailfs
24 GNU_CONFIGURE=  yes
25 CONFIGURE_ARGS+=--with-included-slang \
26                 --with-gettext \
27                 --with-vfs \
28                 --with-netrc \
29                 --without-gpm-mouse \
30                 --with-edit
31
32 OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC
33 OPTIONS_SUB=    yes
34
35 SUBSHELL_DESC=  Build with subshell support (only for bash!)
36 SUBSHELL_CONFIGURE_WITH=        subshell
37
38 MC_IN_MC_DESC=  Allow run mc inside mc (useful for mcedit)
39 MC_IN_MC_CPPFLAGS=      -DMC_IN_MC_ALLOWED
40
41 NLS_CONFIGURE_ENABLE=   nls
42 NLS_USES=       gettext
43
44 post-patch:
45         @${REINPLACE_CMD} '/destdir/ s|gnulocaledir|DESTDIR)$$(&|' \
46                 ${WRKSRC}/po/Makefile.in.in
47
48 post-install:
49         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mcserv
50 .for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo
51         ${CHMOD} 755 ${STAGEDIR}${PREFIX}/share/mc/extfs/${i}
52 .endfor
53
54 .include <bsd.port.mk>