| @@ -1,15 +1,14 @@ | | | @@ -1,15 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.1 2012/10/20 12:21:39 darcy Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2012/10/20 12:49:35 darcy Exp $ |
2 | | | | |
3 | | | 2 | |
4 | PKG_OPTIONS_VAR= PKG_OPTIONS.freeswitch | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.freeswitch |
5 | PKG_SUPPORTED_OPTIONS= freeswitch-08k freeswitch-16k freeswitch-32k freeswitch-48k | | 4 | PKG_SUPPORTED_OPTIONS= freeswitch-08k freeswitch-16k freeswitch-32k freeswitch-48k |
6 | PKG_SUGGESTED_OPTIONS= freeswitch-08k freeswitch-16k | | 5 | PKG_SUGGESTED_OPTIONS= freeswitch-08k freeswitch-16k |
7 | | | 6 | |
8 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
9 | | | 8 | |
10 | .if !empty(PKG_OPTIONS:Mfreeswitch-08kx) | | 9 | .if !empty(PKG_OPTIONS:Mfreeswitch-08kx) |
11 | DISTFILES+= freeswitch-sounds-music-8000-1.0.8.tar.gz | | 10 | DISTFILES+= freeswitch-sounds-music-8000-1.0.8.tar.gz |
12 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/8000 | | 11 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/8000 |
13 | SOUND_DIRS+= 8000 | | 12 | SOUND_DIRS+= 8000 |
14 | .endif | | 13 | .endif |
15 | | | 14 | |
| @@ -21,22 +20,22 @@ INSTALLATION_DIRS+= share/freeswitch/sou | | | @@ -21,22 +20,22 @@ INSTALLATION_DIRS+= share/freeswitch/sou |
21 | | | 20 | |
22 | .if !empty(PKG_OPTIONS:Mfreeswitch-32k) | | 21 | .if !empty(PKG_OPTIONS:Mfreeswitch-32k) |
23 | DISTFILES+= freeswitch-sounds-music-32000-1.0.8.tar.gz | | 22 | DISTFILES+= freeswitch-sounds-music-32000-1.0.8.tar.gz |
24 | SOUND_DIRS+= 32000 | | 23 | SOUND_DIRS+= 32000 |
25 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/32000 | | 24 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/32000 |
26 | .endif | | 25 | .endif |
27 | | | 26 | |
28 | .if !empty(PKG_OPTIONS:Mfreeswitch-48k) | | 27 | .if !empty(PKG_OPTIONS:Mfreeswitch-48k) |
29 | DISTFILES+= freeswitch-sounds-music-48000-1.0.8.tar.gz | | 28 | DISTFILES+= freeswitch-sounds-music-48000-1.0.8.tar.gz |
30 | SOUND_DIRS+= 48000 | | 29 | SOUND_DIRS+= 48000 |
31 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/48000 | | 30 | INSTALLATION_DIRS+= share/freeswitch/sounds/music/48000 |
32 | .endif | | 31 | .endif |
33 | | | 32 | |
34 | .for opt in ${PKG_SUPPORTED_OPTIONS} xxx | | 33 | .for opt in ${PKG_SUPPORTED_OPTIONS} |
35 | .if !empty(PKG_OPTIONS:M${opt}) | | 34 | .if !empty(PKG_OPTIONS:M${opt}) |
36 | PLIST_SUBST+= ${opt}="" | | 35 | PLIST_SUBST+= ${opt}="" |
37 | .else | | 36 | .else |
38 | PLIST_SUBST+= ${opt}="@comment " | | 37 | PLIST_SUBST+= ${opt}="@comment " |
39 | .endif | | 38 | .endif |
40 | .endfor | | 39 | .endfor |
41 | | | 40 | |
42 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} xxx | | 41 | PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} |