summaryrefslogtreecommitdiff
path: root/lang/elk/options.mk
blob: 997cdaad02a3eae9430393fc35698b3e4f43c055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: options.mk,v 1.1 2005/10/15 23:07:21 tonio Exp $

# Global and legacy options

PKG_OPTIONS_VAR=	PKG_OPTIONS.elk
PKG_SUPPORTED_OPTIONS= xaw motif
PKG_SUGGESTED_OPTIONS=

.include "../../mk/bsd.options.mk"

###
### x11 support
###
.if !empty(PKG_OPTIONS:Mxaw) || !empty(PKG_OPTIONS:Mmotif)
.  include "../../mk/x11.buildlink3.mk"
PLIST_SUBST+= WITHX11=""
.  if !empty(PKG_OPTIONS:Mxaw)
PLIST_SUBST+= WITHXAW=""
ELK_AWK="yes"
.    include "../../mk/xaw.buildlink3.mk"
.  else
PLIST_SUBST+= WITHXAW="@comment "
ELK_AWK="no"
.  endif
.  if !empty(PKG_OPTIONS:Mmotif)
.  include "../../mk/motif.buildlink3.mk"
PLIST_SUBST+= WITHMOTIF=""
.  else
PLIST_SUBST+= WITHMOTIF="@comment "
.  endif
.else
CONFIGURE_ARGS+=	--without-x
PLIST_SUBST+= WITHMOTIF="@comment "
PLIST_SUBST+= WITHX11="@comment "
PLIST_SUBST+= WITHXAW="@comment "
.endif