1 # $NetBSD: options.mk,v 1.11 2011/01/23 14:28:58 wiz Exp $
4 PKG_OPTIONS_VAR
= PKG_OPTIONS.mc
5 PKG_OPTIONS_REQUIRED_GROUPS
= screen
6 PKG_OPTIONS_GROUP.screen
= ncurses slang
7 PKG_SUPPORTED_OPTIONS
= glib12 mc-charset mc-edit mc-samba mc-subshell mc-vfs x11
8 PKG_SUGGESTED_OPTIONS
= mc-charset mc-edit mc-subshell mc-vfs slang
10 # remove after pkgsrc-2010Q1
11 PKG_OPTIONS_LEGACY_OPTS
= charset
:mc-charset
12 PKG_OPTIONS_LEGACY_OPTS
+= edit
:mc-edit
13 PKG_OPTIONS_LEGACY_OPTS
+= samba
:mc-samba
14 PKG_OPTIONS_LEGACY_OPTS
+= subshell
:mc-subshell
15 PKG_OPTIONS_LEGACY_OPTS
+= vfs
:mc-vfs
17 .
include "../../mk/bsd.options.mk"
19 ### The charset option enables input/display support for various 8-bit
20 ### codepages, chooseable at runtime.
21 .if
!empty
(PKG_OPTIONS
:Mmc-charset
)
22 CONFIGURE_ARGS
+= --enable-charset
23 PLIST_SRC
+= ${PKGDIR}/PLIST.charset
24 .
include "../../converters/libiconv/buildlink3.mk"
26 CONFIGURE_ARGS
+= --disable-charset
29 ### The internal editor can be disabled to save disk space.
30 .if
!empty
(PKG_OPTIONS
:Mmc-edit
)
31 CONFIGURE_ARGS
+= --with-edit
32 PLIST_SRC
+= ${PKGDIR}/PLIST.mcedit
34 CONFIGURE_ARGS
+= --without-edit
37 ### On some systems where glib-2.0 does not build, glib-1.2 can be used
39 .if
!empty
(PKG_OPTIONS
:Mglib12
)
40 CONFIGURE_ARGS
+= --with-glib12
41 .
include "../../devel/glib/buildlink3.mk"
43 .
include "../../devel/glib2/buildlink3.mk"
46 ### Enable the Samba virtual file system. You can connect to Windows
47 ### file servers or Samba servers in your network.
48 .if
!empty
(PKG_OPTIONS
:Mmc-samba
)
49 CONFIGURE_ARGS
+= --with-samba
51 CONFIGURE_ARGS
+= --without-samba
54 ### The subshell is a shell command line inside the Midnight Commander.
55 .if
!empty
(PKG_OPTIONS
:Mmc-subshell
)
56 CONFIGURE_ARGS
+= --with-subshell
58 CONFIGURE_ARGS
+= --without-subshell
61 ### Enable the virtual file system of the Midnight Commander. With the
62 ### VFS you can access files via FTP, SSH, in various archive formats
63 ### like if they were on your local disk.
64 .if
!empty
(PKG_OPTIONS
:Mmc-vfs
)
65 CONFIGURE_ARGS
+= --with-vfs
66 PLIST_SRC
+= ${PKGDIR}/PLIST.vfs
69 CONFIGURE_ARGS
+= --without-vfs
72 ### X11 support allows better key handling (detection of the Alt, Ctrl,
73 ### Shift modifiers) and mouse support.
74 .if
!empty
(PKG_OPTIONS
:Mx11
)
75 CONFIGURE_ARGS
+= --with-x
76 .
include "../../x11/libXt/buildlink3.mk"
78 CONFIGURE_ARGS
+= --without-x
81 ### The Midnight Commander can use three different screen libraries to
82 ### draw itself on the screen. SLang, ncurses, and a slim variant of
83 ### SLang (the default), which is distributed with the Midnight Commander.
84 .if
!empty
(PKG_OPTIONS
:Mslang
)
85 CONFIGURE_ARGS
+= --with-screen
=slang
86 .
include "../../devel/libslang2/buildlink3.mk"
87 .elif
!empty
(PKG_OPTIONS
:Mncurses
)
89 CONFIGURE_ARGS
+= --with-screen
=ncurses
90 .
include "../../devel/ncurses/buildlink3.mk"
92 CONFIGURE_ARGS
+= --with-screen
=mcslang