2019-11-04 22:28:40 +01:00
|
|
|
# $NetBSD: options.mk,v 1.15 2019/11/04 21:28:48 rillig Exp $
|
2005-02-12 23:59:28 +01:00
|
|
|
|
2019-11-04 22:28:40 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mc
|
2011-01-23 15:28:58 +01:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= screen
|
|
|
|
PKG_OPTIONS_GROUP.screen= ncurses slang
|
2019-11-04 22:28:40 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= mc-charset x11
|
|
|
|
PKG_SUGGESTED_OPTIONS= mc-charset slang
|
2011-01-23 15:28:58 +01:00
|
|
|
|
2007-02-15 11:00:08 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2005-02-12 23:59:28 +01:00
|
|
|
### The charset option enables input/display support for various 8-bit
|
|
|
|
### codepages, chooseable at runtime.
|
2011-01-23 15:28:58 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mmc-charset)
|
2005-02-12 23:59:28 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-charset
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.charset
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-charset
|
|
|
|
.endif
|
|
|
|
|
|
|
|
### X11 support allows better key handling (detection of the Alt, Ctrl,
|
|
|
|
### Shift modifiers) and mouse support.
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
2007-08-09 21:28:24 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2005-02-12 23:59:28 +01:00
|
|
|
.else
|
2007-08-09 21:28:24 +02:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
2005-02-12 23:59:28 +01:00
|
|
|
.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
|
2010-02-24 18:56:20 +01:00
|
|
|
.include "../../devel/libslang2/buildlink3.mk"
|
2005-02-12 23:59:28 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Mncurses)
|
2006-02-15 14:58:07 +01:00
|
|
|
USE_NCURSES= yes
|
2005-02-12 23:59:28 +01:00
|
|
|
CONFIGURE_ARGS+= --with-screen=ncurses
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-screen=mcslang
|
|
|
|
.endif
|