| @@ -1,115 +1,136 @@ | | | @@ -1,115 +1,136 @@ |
1 | # $NetBSD: options.mk,v 1.4 2008/05/10 14:56:33 obache Exp $ | | 1 | # $NetBSD: options.mk,v 1.5 2008/07/16 14:04:29 ahoka Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cmus | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cmus |
4 | PKG_SUPPORTED_OPTIONS= flac mad vorbis arts ao mpcdec #faad alsa | | 4 | PKG_SUPPORTED_OPTIONS= flac mad vorbis arts ao mpcdec faad wavpack #alsa |
5 | PKG_SUPPORTED_OPTIONS+= wide-curses | | 5 | PKG_SUPPORTED_OPTIONS+= wide-curses |
6 | PKG_OPTIONS_OPTIONAL_GROUPS= mod | | 6 | PKG_OPTIONS_OPTIONAL_GROUPS= mod |
7 | PKG_OPTIONS_GROUP.mod= modplug mikmod | | 7 | PKG_OPTIONS_GROUP.mod= modplug mikmod |
8 | PKG_SUGGESTED_OPTIONS= flac mad ao vorbis modplug | | 8 | PKG_SUGGESTED_OPTIONS= flac mad ao vorbis modplug |
9 | | | 9 | |
10 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
11 | | | 11 | |
| | | 12 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} |
| | | 13 | |
12 | ### | | 14 | ### |
13 | ### Backends | | 15 | ### Backends |
14 | ### | | 16 | ### |
15 | | | 17 | |
16 | # AO support | | 18 | # AO support |
17 | # | | 19 | # |
18 | .if !empty(PKG_OPTIONS:Mao) | | 20 | .if !empty(PKG_OPTIONS:Mao) |
19 | . include "../../audio/libao/buildlink3.mk" | | 21 | . include "../../audio/libao/buildlink3.mk" |
20 | CONFIGURE_ARGS+= CONFIG_AO=y | | 22 | CONFIGURE_ARGS+= CONFIG_AO=y |
| | | 23 | PLIST.ao= yes |
21 | .else | | 24 | .else |
22 | CONFIGURE_ARGS+= CONFIG_AO=n | | 25 | CONFIGURE_ARGS+= CONFIG_AO=n |
23 | .endif | | 26 | .endif |
24 | | | 27 | |
25 | # ARTS support | | 28 | # ARTS support |
26 | # | | 29 | # |
27 | .if !empty(PKG_OPTIONS:Marts) | | 30 | .if !empty(PKG_OPTIONS:Marts) |
28 | . include "../../audio/arts/buildlink3.mk" | | 31 | . include "../../audio/arts/buildlink3.mk" |
29 | CONFIGURE_ARGS+= CONFIG_ARTS=y | | 32 | CONFIGURE_ARGS+= CONFIG_ARTS=y |
| | | 33 | PLIST.arts= yes |
30 | .else | | 34 | .else |
31 | CONFIGURE_ARGS+= CONFIG_ARTS=n | | 35 | CONFIGURE_ARGS+= CONFIG_ARTS=n |
32 | .endif | | 36 | .endif |
33 | | | 37 | |
34 | # ALSA support | | 38 | # ALSA support |
35 | # | | 39 | # |
36 | # UNTESTED | | 40 | # UNTESTED |
37 | #.if !empty(PKG_OPTIONS:Malsa) | | 41 | #.if !empty(PKG_OPTIONS:Malsa) |
38 | #ONLY_FOR_PLATFORM= Linux-*-* # Alsa is Linux only | | 42 | #ONLY_FOR_PLATFORM= Linux-*-* # Alsa is Linux only |
39 | #CONFIGURE_ARGS+= CONFIG_ALSA=y | | 43 | #CONFIGURE_ARGS+= CONFIG_ALSA=y |
40 | #.endif | | 44 | #.endif |
41 | | | 45 | |
42 | ### | | 46 | ### |
43 | ### Codecs | | 47 | ### Codecs |
44 | ### | | 48 | ### |
45 | | | 49 | |
46 | # MAD support | | 50 | # MAD support |
47 | # | | 51 | # |
48 | .if !empty(PKG_OPTIONS:Mmad) | | 52 | .if !empty(PKG_OPTIONS:Mmad) |
49 | .include "../../audio/libmad/buildlink3.mk" | | 53 | .include "../../audio/libmad/buildlink3.mk" |
50 | CONFIGURE_ARGS+= CONFIG_MAD=y | | 54 | CONFIGURE_ARGS+= CONFIG_MAD=y |
| | | 55 | PLIST.mad= yes |
51 | .else | | 56 | .else |
52 | CONFIGURE_ARGS+= CONFIG_MAD=n | | 57 | CONFIGURE_ARGS+= CONFIG_MAD=n |
53 | .endif | | 58 | .endif |
54 | | | 59 | |
55 | # VORBIS support | | 60 | # VORBIS support |
56 | # | | 61 | # |
57 | .if !empty(PKG_OPTIONS:Mvorbis) | | 62 | .if !empty(PKG_OPTIONS:Mvorbis) |
58 | .include "../../audio/libvorbis/buildlink3.mk" | | 63 | .include "../../audio/libvorbis/buildlink3.mk" |
59 | CONFIGURE_ARGS+= CONFIG_VORBIS=y | | 64 | CONFIGURE_ARGS+= CONFIG_VORBIS=y |
| | | 65 | PLIST.vorbis= yes |
60 | .else | | 66 | .else |
61 | CONFIGURE_ARGS+= CONFIG_VORBIS=n | | 67 | CONFIGURE_ARGS+= CONFIG_VORBIS=n |
62 | .endif | | 68 | .endif |
63 | | | 69 | |
64 | # FLAC support | | 70 | # FLAC support |
65 | # | | 71 | # |
66 | .if !empty(PKG_OPTIONS:Mflac) | | 72 | .if !empty(PKG_OPTIONS:Mflac) |
67 | .include "../../audio/flac/buildlink3.mk" | | 73 | .include "../../audio/flac/buildlink3.mk" |
68 | CONFIGURE_ARGS+= CONFIG_FLAC=y | | 74 | CONFIGURE_ARGS+= CONFIG_FLAC=y |
| | | 75 | PLIST.flac= yes |
69 | .else | | 76 | .else |
70 | CONFIGURE_ARGS+= CONFIG_FLAC=n | | 77 | CONFIGURE_ARGS+= CONFIG_FLAC=n |
71 | .endif | | 78 | .endif |
72 | | | 79 | |
73 | # MPCDEC support | | 80 | # MPCDEC support |
74 | # | | 81 | # |
75 | .if !empty(PKG_OPTIONS:Mmpcdec) | | 82 | .if !empty(PKG_OPTIONS:Mmpcdec) |
76 | .include "../../audio/libmpcdec/buildlink3.mk" | | 83 | .include "../../audio/libmpcdec/buildlink3.mk" |
77 | CONFIGURE_ARGS+= CONFIG_MPC=y | | 84 | CONFIGURE_ARGS+= CONFIG_MPC=y |
| | | 85 | PLIST.mpcdec= yes |
78 | .else | | 86 | .else |
79 | CONFIGURE_ARGS+= CONFIG_MPC=n | | 87 | CONFIGURE_ARGS+= CONFIG_MPC=n |
80 | .endif | | 88 | .endif |
81 | | | 89 | |
| | | 90 | # VAWPACK support |
| | | 91 | # |
| | | 92 | .if !empty(PKG_OPTIONS:Mwavpack) |
| | | 93 | .include "../../audio/wavpack/buildlink3.mk" |
| | | 94 | CONFIGURE_ARGS+= CONFIG_WAVPACK=y |
| | | 95 | PLIST.wavpack= yes |
| | | 96 | .else |
| | | 97 | CONFIGURE_ARGS+= CONFIG_WAVPACK=n |
| | | 98 | .endif |
| | | 99 | |
82 | # modplay support | | 100 | # modplay support |
83 | # | | 101 | # |
84 | .if !empty(PKG_OPTIONS:Mmikmod) | | 102 | .if !empty(PKG_OPTIONS:Mmikmod) |
85 | .include "../../audio/libmikmod/buildlink3.mk" | | 103 | .include "../../audio/libmikmod/buildlink3.mk" |
| | | 104 | .include "../../audio/libaudiofile/buildlink3.mk" |
86 | CONFIGURE_ARGS+= CONFIG_MODPLUG=n | | 105 | CONFIGURE_ARGS+= CONFIG_MODPLUG=n |
87 | CONFIGURE_ARGS+= CONFIG_MIKMOD=y | | 106 | CONFIGURE_ARGS+= CONFIG_MIKMOD=y |
| | | 107 | PLIST.mikmod= yes |
88 | .endif | | 108 | .endif |
89 | .if !empty(PKG_OPTIONS:Mmodplug) | | 109 | .if !empty(PKG_OPTIONS:Mmodplug) |
90 | .include "../../audio/libmodplug/buildlink3.mk" | | 110 | .include "../../audio/libmodplug/buildlink3.mk" |
91 | CONFIGURE_ARGS+= CONFIG_MODPLUG=y | | 111 | CONFIGURE_ARGS+= CONFIG_MODPLUG=y |
92 | CONFIGURE_ARGS+= CONFIG_MIKMOD=n | | 112 | CONFIGURE_ARGS+= CONFIG_MIKMOD=n |
| | | 113 | PLIST.modplug= yes |
93 | .endif | | 114 | .endif |
94 | | | 115 | |
95 | # FAAD support | | 116 | # FAAD support |
96 | # | | 117 | # |
97 | # XXX: faad2 in pkgsrc is heavily outdated as of 2007Q3, cmus needs newer. | | 118 | .if !empty(PKG_OPTIONS:Mfaad) |
98 | # | | 119 | .include "../../audio/faad2/buildlink3.mk" |
99 | #.if !empty(PKG_OPTIONS:Mfaad) | | 120 | .include "../../multimedia/libmp4v2/buildlink3.mk" |
100 | #.include "../../audio/faad2/buildlink3.mk" | | 121 | CONFIGURE_ARGS+= CONFIG_AAC=y |
101 | #CONFIGURE_ARGS+= CONFIG_AAC=y | | 122 | CONFIGURE_ARGS+= CONFIG_MP4=y |
102 | #CONFIGURE_ARGS+= CONFIG_MP4=y | | 123 | PLIST.faad= yes |
103 | #.else | | 124 | .else |
104 | #CONFIGURE_ARGS+= CONFIG_AAC=n | | 125 | CONFIGURE_ARGS+= CONFIG_AAC=n |
105 | #CONFIGURE_ARGS+= CONFIG_MP4=n | | 126 | CONFIGURE_ARGS+= CONFIG_MP4=n |
106 | #.endif | | 127 | .endif |
107 | | | 128 | |
108 | ### | | 129 | ### |
109 | ### Wide curses support; otherwise, default to using narrow curses. | | 130 | ### Wide curses support; otherwise, default to using narrow curses. |
110 | ### | | 131 | ### |
111 | .if !empty(PKG_OPTIONS:Mwide-curses) | | 132 | .if !empty(PKG_OPTIONS:Mwide-curses) |
112 | . include "../../devel/ncursesw/buildlink3.mk" | | 133 | . include "../../devel/ncursesw/buildlink3.mk" |
113 | .else | | 134 | .else |
114 | . include "../../devel/ncurses/buildlink3.mk" | | 135 | . include "../../devel/ncurses/buildlink3.mk" |
115 | .endif | | 136 | .endif |