mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
c91752f4ee
- Use options subs, helpers
49 lines
1.1 KiB
Makefile
49 lines
1.1 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*
|
|
|
|
USES= pkgconfig iconv gmake
|
|
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:
|
|
.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>
|