summaryrefslogtreecommitdiff
path: root/wm/enlightenment16/options.mk
blob: dee5a184ccded784aeb2adc8647dd87e21c934f0 (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
# $NetBSD: options.mk,v 1.3 2020/08/28 03:12:26 gutteridge Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.enlightenment16

PKG_OPTIONS_OPTIONAL_GROUPS=	sound
PKG_OPTIONS_GROUP.sound=	pulseaudio alsa

PKG_SUPPORTED_OPTIONS=		pango vera-ttf
PKG_SUGGESTED_OPTIONS=		pango pulseaudio vera-ttf

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

.if !empty(PKG_OPTIONS:Mpango)
CONFIGURE_ARGS+=	--enable-pango
.include "../../devel/pango/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-pango
.endif

.if !empty(PKG_OPTIONS:Mpulseaudio)
CONFIGURE_ARGS+=	--enable-sound=pulseaudio
CONFIGURE_ARGS+=	--with-sndldr=sndfile
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Malsa)
CONFIGURE_ARGS+=	--enable-sound=alsa
CONFIGURE_ARGS+=	--with-sndldr=sndfile
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/alsa-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--enable-sound=no
CONFIGURE_ARGS+=	--with-sndldr=none
.endif

# The upstream package includes its own Vera fonts. Because these
# have a different license, and are also included in some base OS
# distributions (like NetBSD's native X11), this has been made
# optional.
.if !empty(PKG_OPTIONS:Mvera-ttf)
DEPENDS+=	vera-ttf>=1.10:../../fonts/vera-ttf
.endif