summaryrefslogtreecommitdiff
path: root/audio/herrie/options.mk
blob: 990e8c3039f26899fc45a7e18d9a1bffde16276e (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $NetBSD: options.mk,v 1.2 2007/11/08 04:08:46 bjs Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.herrie
PKG_OPTIONS_GROUP.curses=	ncurses ncursesw
PKG_OPTIONS_OPTIONAL_GROUPS=	curses
PKG_SUPPORTED_OPTIONS=		curl libao libmodplug sndfile vorbis
PKG_SUGGESTED_OPTIONS=		ncurses curl

.include "../../mk/oss.buildlink3.mk"

.if ${OSS_TYPE} == "native"
PKG_SUPPORTED_OPTIONS+=	oss
PKG_SUGGESTED_OPTIONS+=	oss
.elif ${OSS_TYPE} == "none"
PKG_SUGGESTED_OPTIONS+=	libao
.endif

.include "../../mk/bsd.fast.prefs.mk"
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mcurl)
.  include "../../www/curl/buildlink3.mk"
.else
CONFIGURE_ARGS+=	no_http
CONFIGURE_ARGS+=	no_scrobbler
.endif

.if !empty(PKG_OPTIONS:Mncurses)
CONFIGURE_ARGS+=	ncurses
.  include "../../devel/ncurses/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mncursesw)
CONFIGURE_ARGS+=	ncursesw
.  include "../../devel/ncursesw/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mlibao)
CONFIGURE_ARGS+=	ao
.  include "../../audio/libao/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mlibmodplug)
.  include "../../audio/libmodplug/buildlink3.mk"
.else
CONFIGURE_ARGS+=	no_modplug
.endif

.if !empty(PKG_OPTIONS:Moss)
CONFIGURE_ARGS+=	oss
LDFLAGS+=		${BUILDLINK_LDADD.oss}
HERRIE_USE_OSS=		# empty
.else
HERRIE_USE_OSS=		\#
.endif

.if !empty(PKG_OPTIONS:Msndfile)
.  include "../../audio/libsndfile/buildlink3.mk"
.else
CONFIGURE_ARGS+=	no_sndfile
.endif

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	no_strip strict
.endif

.if !empty(PKG_OPTIONS:Mvorbis)
.  include "../../audio/libvorbis/buildlink3.mk"
.else
CONFIGURE_ARGS+=	no_vorbis
.endif