~cypheon/pkgsrc-wip

pkgsrc-wip/chromium/options.mk -rw-r--r-- 866 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: options.mk,v 1.32 2016/08/20 11:17:32 ryoon Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.chromium
PKG_OPTIONS_REQUIRED_GROUPS=	audio
PKG_OPTIONS_GROUP.audio=	alsa pulseaudio
PKG_SUPPORTED_OPTIONS+=		debug
PKG_SUGGESTED_OPTIONS=		pulseaudio

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

.if !empty(PKG_OPTIONS:Malsa)
GN_ARGS+=	use_alsa=true
GN_ARGS+=	use_pulseaudio=false
.include "../../audio/alsa-lib/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mpulseaudio)
GN_ARGS+=	use_alsa=false
GN_ARGS+=	use_pulseaudio=true
.include "../../audio/pulseaudio/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mdebug)
BUILDTYPE=		Debug
GN_ARGS+=		is_debug=true
# Dynamic link build causes link errors in pkgsrc.
GN_ARGS+=		is_component_build=false
GN_BOOTSTRAP_FLAGS+=	--debug
GN_VERBOSE=		-v
.else
BUILDTYPE=		Release
GN_ARGS+=		is_debug=false \
			symbol_level=0
GN_VERBOSE=		# empty
.endif