mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
64 lines
1.3 KiB
Makefile
64 lines
1.3 KiB
Makefile
# New ports collection makefile for: mc-light
|
|
# Date created: 31.08.2004
|
|
# Whom: Roman Y. Bogdanov <sam@brj.pp.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mc-light
|
|
PORTVERSION= 4.1.40.p9
|
|
PORTREVISION= 8
|
|
CATEGORIES= misc shells
|
|
MASTER_SITES= http://mc.linuxinside.com/Releases/
|
|
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A lightweight Midnight Commander clone
|
|
|
|
RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
|
|
|
|
CONFLICTS= mc-4.7*
|
|
|
|
OPTIONS= NLS "Enable gettext support" on \
|
|
SUBSHELL "Build with subshell support (only for bash!)" off \
|
|
MC_IN_MC "Allow run mc inside mc (useful for mcedit)" off
|
|
|
|
USE_GMAKE= yes
|
|
USE_ICONV= yes
|
|
USE_GNOME= pkgconfig
|
|
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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITH_SUBSHELL)
|
|
CONFIGURE_ARGS+=--without-subshell
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_MC_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.post.mk>
|