blob: 413440c481a22b4fe8db52459791cebcf62983ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Created by: torstenb@FreeBSD.org
# $FreeBSD$
PORTNAME= mc
PORTVERSION= 4.8.8
PORTREVISION= 0
CATEGORIES= misc shells
MASTER_SITES= http://ftp.osuosl.org/pub/midnightcommander/
MAINTAINER= fjoe@FreeBSD.org
COMMENT= Midnight Commander, a free Norton Commander Clone
LICENSE= GPLv3
LIB_DEPENDS= ssh2:${PORTSDIR}/security/libssh2
CONFLICTS= mc-light-4*
USES= gmake perl5 pkgconfig
USE_GNOME= glib20
USE_XZ= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= ZIP=${UNZIP_CMD} UNZIP=${UNZIP_CMD}
USE_AUTOTOOLS= libtool
PORTDATA= *
OPTIONS_DEFINE= SLANG ICONV NLS EDIT X11 SUBSHELL SMB
EDIT_DESC= Build with internal editor
SUBSHELL_DESC= Build with subshell support
OPTIONS_DEFAULT= SLANG ICONV NLS EDIT X11 SUBSHELL SMB
post-patch:
${REINPLACE_CMD} -e 's/SUBDIRS = intl/SUBDIRS =/' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's/saved_CPPFLAGS="-ltermcap/saved_CPPFLAGS="/' ${WRKSRC}/configure
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSMB} && !defined(MINIMAL)
CONFIGURE_ARGS+=--enable-vfs-smb --with-configdir=${LOCALBASE}/etc\
--with-codepagedir=${LOCALBASE}/etc/codepages
.endif
.if ${PORT_OPTIONS:MICONV} && !defined(MINIMAL)
USES+= iconv
.else
CONFIGURE_ARGS+=--disable-charset
.endif
.if ! ${PORT_OPTIONS:MNLS} && !defined(MINIMAL)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USES+= gettext
PLIST_SUB+= NLS=""
_MANLANG= es hu it pl ru sr
.endif
.if ! ${PORT_OPTIONS:MX11} && !defined(MINIMAL)
CONFIGURE_ARGS+=--without-x
.else
USE_XORG= x11 xext
.endif
.if ! ${PORT_OPTIONS:MEDIT} && !defined(MINIMAL)
CONFIGURE_ARGS+=--without-edit
PLIST_SUB+= EDITOR="@comment "
.else
PLIST_SUB+= EDITOR=""
.endif
.if ! ${PORT_OPTIONS:MSLANG} && !defined(MINIMAL)
CONFIGURE_ARGS+=--with-screen=ncurses
.else
LIB_DEPENDS+= slang:${PORTSDIR}/devel/libslang2
CONFIGURE_ARGS+=--with-screen=slang --with-slang-includes=${LOCALBASE}/include
.endif
.if ! ${PORT_OPTIONS:MSUBSHELL} && !defined(MINIMAL)
CONFIGURE_ARGS+=--without-subshell
.endif
MAN1= mc.1 mcedit.1 mcview.1
_MAN1= mc.1
.for lang in ${_MANLANG}
_MANPAGES+= ${_MAN1:S%^%${MAN1PREFIX}/man/${lang}/man1/%}
.endfor
.include <bsd.port.mk>
|