Merge from vendor branch TNF:
[pkgsrcv2.git] / audio / herrie / options.mk
1 # $NetBSD: options.mk,v 1.6 2008/03/27 14:24:36 bjs Exp $
2
3 PKG_OPTIONS_VAR=                PKG_OPTIONS.herrie
4 PKG_SUPPORTED_OPTIONS=          curl libao modplug libspiff sndfile     \
5                                 vorbis wide-curses
6 PKG_SUGGESTED_OPTIONS=          curl
7 PKG_LEGACY_OPTS+=               ncursesw:wide-curses
8
9 .include "../../mk/oss.buildlink3.mk"
10
11 .if ${OSS_TYPE} == "native"
12 PKG_SUPPORTED_OPTIONS+=         oss
13 PKG_SUGGESTED_OPTIONS+=         oss
14 .elif ${OSS_TYPE} == "none"
15 PKG_SUGGESTED_OPTIONS+=         libao
16 .endif
17
18 .include "../../mk/bsd.fast.prefs.mk"
19 .include "../../mk/bsd.options.mk"
20
21 .if !empty(PKG_OPTIONS:Mcurl)
22 .  include "../../www/curl/buildlink3.mk"
23 .else
24 CONFIGURE_ARGS+=        no_http
25 CONFIGURE_ARGS+=        no_scrobbler
26 .endif
27
28 .if !empty(PKG_OPTIONS:Mlibao)
29 CONFIGURE_ARGS+=        ao
30 .  include "../../audio/libao/buildlink3.mk"
31 .endif
32
33 .if !empty(PKG_OPTIONS:Mmodplug)
34 .  include "../../audio/libmodplug/buildlink3.mk"
35 .else
36 CONFIGURE_ARGS+=        no_modplug
37 .endif
38
39 .if !empty(PKG_OPTIONS:Mlibspiff)
40 .  include "../../audio/libspiff/buildlink3.mk"
41 .else
42 CONFIGURE_ARGS+=        no_xspf
43 .endif
44
45 .if !empty(PKG_OPTIONS:Moss)
46 CONFIGURE_ARGS+=        oss
47 LDFLAGS+=               ${BUILDLINK_LDADD.oss}
48 HERRIE_USE_OSS=         # empty
49 .else
50 HERRIE_USE_OSS=         \#
51 .endif
52
53 .if !empty(PKG_OPTIONS:Msndfile)
54 .  include "../../audio/libsndfile/buildlink3.mk"
55 .else
56 CONFIGURE_ARGS+=        no_sndfile
57 .endif
58
59 .if !empty(PKG_OPTIONS:Mdebug)
60 CONFIGURE_ARGS+=        no_strip strict
61 .endif
62
63 .if !empty(PKG_OPTIONS:Mvorbis)
64 .  include "../../audio/libvorbis/buildlink3.mk"
65 .else
66 CONFIGURE_ARGS+=        no_vorbis
67 .endif
68
69 .if !empty(PKG_OPTIONS:Mwide-curses)
70 .  include "../../devel/ncursesw/buildlink3.mk"
71 .else
72 CONFIGURE_ARGS+=        ncurses
73 .  include "../../devel/ncurses/buildlink3.mk"
74 .endif