(I guess it is probably not needed in this case, but the changes to ignore it for the slang option alone are much more effort). Addresses PR 38284 by Daniel Horecki.
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# $NetBSD: options.mk,v 1.11 2008/06/22 15:55:46 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.lynx
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
|
PKG_SUGGESTED_OPTIONS= curses
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= socksproxy
|
|
PKG_OPTIONS_GROUP.socksproxy= socks5 socks4
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= screen
|
|
PKG_OPTIONS_GROUP.screen= ncurses ncursesw slang curses
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### We can't compile support for both the "slang" screen library and
|
|
### SOCKS support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mslang) && !empty(PKG_OPTIONS:Msocks*)
|
|
PKG_FAIL_REASON+= "SOCKS may not be enabled together with the \"slang\"" \
|
|
"screen library. If SOCKS support is desired," \
|
|
"please change ${PKG_OPTIONS_VAR} to include" \
|
|
"\"curses\" or \"ncurses\" instead."
|
|
.endif
|
|
|
|
###
|
|
### Set the screen library to "slang", "ncurses", or plain "curses".
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mslang)
|
|
SCREENTYPE= slang
|
|
. include "../../devel/libslang/buildlink3.mk"
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/samples/lynx.lss \
|
|
${DESTDIR}${PREFIX}/share/examples/lynx/lynx.lss
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mncurses)
|
|
SCREENTYPE= ncurses
|
|
USE_NCURSES= YES # color
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-color-style
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mncursesw)
|
|
SCREENTYPE= ncurses
|
|
USE_NCURSES= YES # color
|
|
LIBS+= -lncursesw
|
|
. include "../../devel/ncursesw/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-color-style
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mcurses)
|
|
SCREENTYPE= curses
|
|
. include "../../mk/curses.buildlink3.mk"
|
|
. if !empty(MACHINE_PLATFORM:MNetBSD-1.[56]*-i386)
|
|
CONFIGURE_ARGS+= --enable-color-style
|
|
. endif
|
|
.endif
|
|
|
|
###
|
|
### SOCKS support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msocks4)
|
|
CONFIGURE_ARGS+= --with-socks
|
|
. include "../../net/socks4/buildlink3.mk"
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Msocks5)
|
|
CONFIGURE_ARGS+= --with-socks5
|
|
. include "../../net/socks5/buildlink3.mk"
|
|
.endif
|
|
|
|
###
|
|
### IPv6 support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.endif
|