| @@ -1,38 +1,38 @@ | | | @@ -1,38 +1,38 @@ |
1 | # $NetBSD: options.mk,v 1.1 2016/06/20 08:17:42 kamil Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2016/07/07 06:28:24 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ardour | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ardour |
4 | | | 4 | |
5 | PKG_SUPPORTED_OPTIONS= alsa jack dummy | | 5 | PKG_SUPPORTED_OPTIONS= alsa jack dummy |
6 | PKG_SUGGESTED_OPTIONS= alsa jack | | 6 | PKG_SUGGESTED_OPTIONS= alsa jack |
7 | | | 7 | |
8 | PLIST_VARS= alsa jack dummy | | 8 | PLIST_VARS= alsa jack dummy |
9 | | | 9 | |
10 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
11 | | | 11 | |
12 | .if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" | | 12 | .if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" |
13 | . if empty(PKG_OPTIONS:Malsa) | | 13 | . if empty(PKG_OPTIONS:Malsa) |
14 | . error ALSA is required on this platform | | 14 | PKG_FAIL_REASON+= "ALSA is required on this platform." |
15 | . endif | | 15 | . endif |
16 | .endif | | 16 | .endif |
17 | | | 17 | |
18 | .if !empty(PKG_OPTIONS:Malsa) | | 18 | .if !empty(PKG_OPTIONS:Malsa) |
19 | .include "../../audio/alsa-lib/buildlink3.mk" | | 19 | .include "../../audio/alsa-lib/buildlink3.mk" |
20 | ARDOUR_BACKENDS_ALSA= yes | | 20 | ARDOUR_BACKENDS_ALSA= yes |
21 | PLIST.alsa= yes | | 21 | PLIST.alsa= yes |
22 | .endif | | 22 | .endif |
23 | | | 23 | |
24 | .if !empty(PKG_OPTIONS:Mjack) | | 24 | .if !empty(PKG_OPTIONS:Mjack) |
25 | .include "../../audio/jack/buildlink3.mk" | | 25 | .include "../../audio/jack/buildlink3.mk" |
26 | ARDOUR_BACKENDS_JACK= yes | | 26 | ARDOUR_BACKENDS_JACK= yes |
27 | PLIST.jack= yes | | 27 | PLIST.jack= yes |
28 | .endif | | 28 | .endif |
29 | | | 29 | |
30 | # Useful for developers | | 30 | # Useful for developers |
31 | .if !empty(PKG_OPTIONS:Mdummy) | | 31 | .if !empty(PKG_OPTIONS:Mdummy) |
32 | ARDOUR_BACKENDS_DUMMY= yes | | 32 | ARDOUR_BACKENDS_DUMMY= yes |
33 | PLIST.dummy= yes | | 33 | PLIST.dummy= yes |
34 | .endif | | 34 | .endif |
35 | | | 35 | |
36 | ARDOUR_BACKENDS= ${ARDOUR_BACKENDS_ALSA:Dalsa},${ARDOUR_BACKENDS_JACK:Djack},${ARDOUR_BACKENDS_DUMMY:Ddummy} | | 36 | ARDOUR_BACKENDS= ${ARDOUR_BACKENDS_ALSA:Dalsa},${ARDOUR_BACKENDS_JACK:Djack},${ARDOUR_BACKENDS_DUMMY:Ddummy} |
37 | | | 37 | |
38 | WAF_ARGS+= --with-backends=${ARDOUR_BACKENDS:C/,+$//} | | 38 | WAF_ARGS+= --with-backends=${ARDOUR_BACKENDS:C/,+$//} |