summaryrefslogtreecommitdiff
path: root/lang/elk/options.mk
blob: 9da6e4d772432db23f68869f84e144b519535275 (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
# $NetBSD: options.mk,v 1.3 2008/04/12 22:43:02 jlam Exp $

# Global and legacy options

PKG_OPTIONS_VAR=	PKG_OPTIONS.elk
PKG_SUPPORTED_OPTIONS= xaw motif
PKG_SUGGESTED_OPTIONS=

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

PLIST_VARS+=		x11 xaw motif

###
### x11 support
###
.if !empty(PKG_OPTIONS:Mxaw) || !empty(PKG_OPTIONS:Mmotif)
PLIST.x11=		yes
.  if !empty(PKG_OPTIONS:Mxaw)
PLIST.xaw=		yes
CONFIGURE_ENV+=		WITH_XAW="yes"
.    include "../../mk/xaw.buildlink3.mk"
.  else
CONFIGURE_ENV+=		WITH_XAW="no"
.  endif
.  if !empty(PKG_OPTIONS:Mmotif)
.  include "../../mk/motif.buildlink3.mk"
PLIST.motif=		yes
.  endif
.else
CONFIGURE_ARGS+=	--without-x
.endif