summaryrefslogtreecommitdiff
path: root/editors/emacs20/options.mk
blob: 44b6d5b66be2b728818a1660bae0914d4016e69c (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# $NetBSD: options.mk,v 1.1 2007/08/13 12:40:58 jlam Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.emacs
PKG_SUPPORTED_OPTIONS=		emacs-pop inet6 x11
PKG_OPTIONS_OPTIONAL_GROUPS=	toolkit
PKG_OPTIONS_GROUP.toolkit=	motif xaw
PKG_SUGGESTED_OPTIONS=		emacs-pop inet6

###
### OBSOLETE section.  Should be removed after pkgsrc-2007Q4.
###

PKG_OPTIONS_LEGACY_VARS+=	EMACS_USE_POP:emacs-pop
PKG_OPTIONS_LEGACY_VARS+=	EMACS_USE_X:x11

.if defined(EMACS_USE_X) && defined(EMACS_USE_X_TOOLKIT)
.  if (${EMACS_USE_X_TOOLKIT} == "lucid") || \
      (${EMACS_USE_X_TOOLKIT} == "athena")
PKG_LEGACY_OPTIONS+=		xaw
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable EMACS_USE_X_TOOLKIT="${EMACS_USE_X_TOOLKIT:Q}" used, use PKG_DEFAULT_OPTIONS+=xaw instead."
.  elif ${EMACS_USE_X_TOOLKIT} == "motif"
PKG_LEGACY_OPTIONS+=		motif
PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable EMACS_USE_X_TOOLKIT="${EMACS_USE_X_TOOLKIT:Q}" used, use PKG_DEFAULT_OPTIONS+=motif instead."
.  endif
.endif

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

###
### Support POP connections for retrieving mail.
###
.if !empty(PKG_OPTIONS:Memacs-pop)
CONFIGURE_ARGS+=	--with-pop
.endif

###
### Support IPv6 connections.
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

###
### Any of the "toolkit" options implies "x11".
###
.if !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mxaw)
.  if empty(PKG_OPTIONS:Mx11)
PKG_OPTIONS+=		x11
.  endif
.endif

###
### Default to using the Xaw X11 toolkit if none is specified.
###
.if !empty(PKG_OPTIONS:Mx11)
.  if empty(PKG_OPTIONS:Mmotif) && empty(PKG_OPTIONS:Mxaw)
PKG_OPTIONS+=		xaw
.  endif
.endif

###
### Support drawing pretty X11 widgets.
###
.if !empty(PKG_OPTIONS:Mx11)
USE_TOOLS+=		imake
CONFIGURE_ARGS+=	--with-x
.else
CONFIGURE_ARGS+=	--without-x
.endif

###
### Support using Motif X11 widgets.
###
.if !empty(PKG_OPTIONS:Mmotif)
.  include "../../mk/motif.buildlink3.mk"
CONFIGURE_ARGS+=	--with-x-toolkit=motif
.endif

###
### Support using Xaw (Lucid) X11 widgets.
###
.if !empty(PKG_OPTIONS:Mxaw)
.  include "../../mk/xaw.buildlink3.mk"
CONFIGURE_ARGS+=	--with-x-toolkit=athena
.endif