pkgsrc/sysutils/mc/options.mk
2007-08-09 19:28:24 +00:00

84 lines
2.5 KiB
Makefile

# $NetBSD: options.mk,v 1.9 2007/08/09 19:28:24 tnn Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.mc
PKG_SUPPORTED_OPTIONS= charset edit glib12 ncurses samba slang subshell vfs x11
PKG_SUGGESTED_OPTIONS= charset edit slang subshell vfs
.include "../../mk/bsd.options.mk"
### The charset option enables input/display support for various 8-bit
### codepages, chooseable at runtime.
.if !empty(PKG_OPTIONS:Mcharset)
CONFIGURE_ARGS+= --enable-charset
PLIST_SRC+= ${PKGDIR}/PLIST.charset
.include "../../converters/libiconv/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-charset
.endif
### The internal editor can be disabled to save disk space.
.if !empty(PKG_OPTIONS:Medit)
CONFIGURE_ARGS+= --with-edit
PLIST_SRC+= ${PKGDIR}/PLIST.mcedit
.else
CONFIGURE_ARGS+= --without-edit
.endif
### On some systems where glib-2.0 does not build, glib-1.2 can be used
### instead.
.if !empty(PKG_OPTIONS:Mglib12)
CONFIGURE_ARGS+= --with-glib12
.include "../../devel/glib/buildlink3.mk"
.else
.include "../../devel/glib2/buildlink3.mk"
.endif
### Enable the Samba virtual file system. You can connect to Windows
### file servers or Samba servers in your network.
.if !empty(PKG_OPTIONS:Msamba)
CONFIGURE_ARGS+= --with-samba
.else
CONFIGURE_ARGS+= --without-samba
.endif
### The subshell is a shell command line inside the Midnight Commander.
.if !empty(PKG_OPTIONS:Msubshell)
CONFIGURE_ARGS+= --with-subshell
.else
CONFIGURE_ARGS+= --without-subshell
.endif
### Enable the virtual file system of the Midnight Commander. With the
### VFS you can access files via FTP, SSH, in various archive formats
### like if they were on your local disk.
.if !empty(PKG_OPTIONS:Mvfs)
CONFIGURE_ARGS+= --with-vfs
PLIST_SRC+= ${PKGDIR}/PLIST.vfs
USE_TOOLS+= perl:run
.else
CONFIGURE_ARGS+= --without-vfs
.endif
### X11 support allows better key handling (detection of the Alt, Ctrl,
### Shift modifiers) and mouse support.
.if !empty(PKG_OPTIONS:Mx11)
CONFIGURE_ARGS+= --with-x
.include "../../x11/libXt/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-x
.endif
### The Midnight Commander can use three different screen libraries to
### draw itself on the screen. SLang, ncurses, and a slim variant of
### SLang (the default), which is distributed with the Midnight Commander.
.if !empty(PKG_OPTIONS:Mslang)
CONFIGURE_ARGS+= --with-screen=slang
.include "../../devel/libslang/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mncurses)
USE_NCURSES= yes
CONFIGURE_ARGS+= --with-screen=ncurses
.include "../../devel/ncurses/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-screen=mcslang
.endif