1 # $NetBSD: options.mk,v 1.9 2007/08/09 19:28:24 tnn 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= 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 ### Enable the Samba virtual file system. You can connect to Windows
38 ### file servers or Samba servers in your network.
39 .if !empty(PKG_OPTIONS:Mmc-samba)
40 CONFIGURE_ARGS+= --with-samba
42 CONFIGURE_ARGS+= --without-samba
45 ### The subshell is a shell command line inside the Midnight Commander.
46 .if !empty(PKG_OPTIONS:Mmc-subshell)
47 CONFIGURE_ARGS+= --with-subshell
49 CONFIGURE_ARGS+= --without-subshell
52 ### Enable the virtual file system of the Midnight Commander. With the
53 ### VFS you can access files via FTP, SSH, in various archive formats
54 ### like if they were on your local disk.
55 .if !empty(PKG_OPTIONS:Mmc-vfs)
56 PLIST_SRC+= ${PKGDIR}/PLIST.vfs
59 CONFIGURE_ARGS+= --disable-vfs
62 ### X11 support allows better key handling (detection of the Alt, Ctrl,
63 ### Shift modifiers) and mouse support.
64 .if !empty(PKG_OPTIONS:Mx11)
65 CONFIGURE_ARGS+= --with-x
66 .include "../../x11/libXt/buildlink3.mk"
68 CONFIGURE_ARGS+= --without-x
71 ### The Midnight Commander can use three different screen libraries to
72 ### draw itself on the screen. SLang, ncurses, and a slim variant of
73 ### SLang (the default), which is distributed with the Midnight Commander.
74 .if !empty(PKG_OPTIONS:Mslang)
75 CONFIGURE_ARGS+= --with-screen=slang
76 .include "../../devel/libslang2/buildlink3.mk"
77 .elif !empty(PKG_OPTIONS:Mncurses)
79 CONFIGURE_ARGS+= --with-screen=ncurses
80 .include "../../devel/ncurses/buildlink3.mk"
82 CONFIGURE_ARGS+= --with-screen=mcslang