2 |
|
|
3 |
|
PORTNAME= mc-light |
4 |
|
PORTVERSION= 4.1.40.p9 |
5 |
< |
PORTREVISION= 2 |
5 |
> |
PORTREVISION= 3 |
6 |
|
CATEGORIES= misc shells |
7 |
|
MASTER_SITES= http://mc.linuxinside.com/Releases/ |
8 |
|
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/} |
16 |
|
|
17 |
|
CONFLICTS= mc-4.7* |
18 |
|
|
19 |
< |
OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC |
20 |
< |
SUBSHELL_DESC= Build with subshell support (only for bash!) |
21 |
< |
MC_IN_MC_DESC= Allow run mc inside mc (useful for mcedit) |
22 |
< |
|
23 |
< |
USES= pkgconfig iconv |
24 |
< |
USE_GMAKE= yes |
19 |
> |
USES= pkgconfig iconv gmake |
20 |
|
GNU_CONFIGURE= yes |
21 |
|
CONFIGURE_ARGS+=--with-included-slang \ |
22 |
|
--with-gettext \ |
25 |
|
--without-gpm-mouse \ |
26 |
|
--with-edit |
27 |
|
|
28 |
< |
MAN1= mc.1 mcedit.1 |
29 |
< |
MAN8= mcserv.8 |
28 |
> |
OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC |
29 |
> |
OPTIONS_SUB= yes |
30 |
|
|
31 |
< |
.include <bsd.mport.options.mk> |
31 |
> |
SUBSHELL_DESC= Build with subshell support (only for bash!) |
32 |
> |
SUBSHELL_CONFIGURE_WITH= subshell |
33 |
|
|
34 |
< |
.if ! ${PORT_OPTIONS:MSUBSHELL} |
35 |
< |
CONFIGURE_ARGS+=--without-subshell |
40 |
< |
.endif |
34 |
> |
MC_IN_MC_DESC= Allow run mc inside mc (useful for mcedit) |
35 |
> |
MC_IN_MC_CPPFLAGS= -DMC_IN_MC_ALLOWED |
36 |
|
|
37 |
< |
.if ${PORT_OPTIONS:MNLS} |
38 |
< |
USES+= gettext |
44 |
< |
PLIST_SUB+= NLS="" |
45 |
< |
.else |
46 |
< |
CONFIGURE_ARGS+=--disable-nls |
47 |
< |
PLIST_SUB+= NLS="@comment " |
48 |
< |
.endif |
37 |
> |
NLS_CONFIGURE_ENABLE= nls |
38 |
> |
NLS_USES= gettext |
39 |
|
|
40 |
< |
.if ${PORT_OPTIONS:MMC_IN_MC} |
41 |
< |
CPPFLAGS+= -DMC_IN_MC_ALLOWED |
42 |
< |
.endif |
40 |
> |
post-patch: |
41 |
> |
@${REINPLACE_CMD} '/destdir/ s|gnulocaledir|DESTDIR)$$(&|' \ |
42 |
> |
${WRKSRC}/po/Makefile.in.in |
43 |
|
|
44 |
|
post-install: |
45 |
|
.for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo |
46 |
< |
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i} |
46 |
> |
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i} |
47 |
|
.endfor |
48 |
|
|
49 |
|
.include <bsd.port.mk> |