1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Use options subs, helpers
This commit is contained in:
Pawel Pekala 2014-06-13 09:12:16 +00:00
parent 9ceedac96b
commit c91752f4ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357660
2 changed files with 15 additions and 22 deletions

View File

@ -15,10 +15,6 @@ 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 gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-included-slang \
@ -28,31 +24,25 @@ CONFIGURE_ARGS+=--with-included-slang \
--without-gpm-mouse \
--with-edit
MAN1= mc.1 mcedit.1
MAN8= mcserv.8
OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC
OPTIONS_SUB= yes
NO_STAGE= yes
.include <bsd.port.options.mk>
SUBSHELL_DESC= Build with subshell support (only for bash!)
SUBSHELL_CONFIGURE_WITH= subshell
.if ! ${PORT_OPTIONS:MSUBSHELL}
CONFIGURE_ARGS+=--without-subshell
.endif
MC_IN_MC_DESC= Allow run mc inside mc (useful for mcedit)
MC_IN_MC_CPPFLAGS= -DMC_IN_MC_ALLOWED
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
.if ${PORT_OPTIONS:MMC_IN_MC}
CPPFLAGS+= -DMC_IN_MC_ALLOWED
.endif
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 ${PREFIX}/share/mc/extfs/${i}
${CHMOD} 755 ${STAGEDIR}${PREFIX}/share/mc/extfs/${i}
.endfor
.include <bsd.port.mk>

View File

@ -2,6 +2,9 @@ bin/mc
bin/mcedit
bin/mcmfmt
bin/mcserv
man/man1/mc.1.gz
man/man1/mcedit.1.gz
man/man8/mcserv.8.gz
share/mc/FAQ
share/mc/bin/mcfn_install
share/mc/codepages/7bit.cp