diff options
author | pawel <pawel@FreeBSD.org> | 2014-06-13 09:12:16 +0000 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-06-13 09:12:16 +0000 |
commit | ea6d1911238587909f4f57d38442040c7a571e2b (patch) | |
tree | e249fb295e999a40e2f5ae2e203d11df5e68ce43 | |
parent | 1f851508ad7c77e0ed3f6f6dde34612a3af59df6 (diff) | |
download | FreeBSD-ports-ea6d1911238587909f4f57d38442040c7a571e2b.zip FreeBSD-ports-ea6d1911238587909f4f57d38442040c7a571e2b.tar.gz |
- Add staging support
- Use options subs, helpers
-rw-r--r-- | misc/mc-light/Makefile | 34 | ||||
-rw-r--r-- | misc/mc-light/pkg-plist | 3 |
2 files changed, 15 insertions, 22 deletions
diff --git a/misc/mc-light/Makefile b/misc/mc-light/Makefile index d5e260e..7f8af84 100644 --- a/misc/mc-light/Makefile +++ b/misc/mc-light/Makefile @@ -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> diff --git a/misc/mc-light/pkg-plist b/misc/mc-light/pkg-plist index ad8c9b2..6b54d3a 100644 --- a/misc/mc-light/pkg-plist +++ b/misc/mc-light/pkg-plist @@ -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 |