mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
# Created by: Roman Y. Bogdanov <sam@brj.pp.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mc-light
|
|
PORTVERSION= 4.1.40.p9
|
|
PORTREVISION= 9
|
|
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
|
|
|
|
RUN_DEPENDS= gawk:${PORTSDIR}/lang/gawk
|
|
|
|
CONFLICTS= mc-4.7*
|
|
|
|
OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC
|
|
SUBSHELL_DESC= Build with subshell support (only for bash!)
|
|
MC_IN_MC_DESC= Allow run mc inside mc (useful for mcedit)
|
|
|
|
USES= pkgconfig iconv
|
|
USE_GMAKE= yes
|
|
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
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MSUBSHELL}
|
|
CONFIGURE_ARGS+=--without-subshell
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMC_IN_MC}
|
|
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.mk>
|