forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forked-daapd-23.2-fix-arg-enable.patch
57 lines (55 loc) · 2.22 KB
/
forked-daapd-23.2-fix-arg-enable.patch
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
--- configure.ac.orig 2015-07-20 18:03:12.270584746 -0500
+++ configure.ac 2015-07-20 18:03:00.050585581 -0500
@@ -51,25 +51,35 @@
AC_SYS_LARGEFILE
AC_TYPE_OFF_T
-AC_ARG_ENABLE(flac, AS_HELP_STRING([--enable-flac], [extract FLAC metadata with libflac (default=no)]),
- use_flac=true;
- CPPFLAGS="${CPPFLAGS} -DFLAC")
-
-AC_ARG_ENABLE(musepack, AS_HELP_STRING([--enable-musepack], [extract Musepack metadata with taglib (default=no)]),
- use_musepack=true;
- CPPFLAGS="${CPPFLAGS} -DMUSEPACK")
-
-AC_ARG_ENABLE(itunes, AS_HELP_STRING([--enable-itunes], [enable iTunes library support (default=no)]),
- use_itunes=true;
- CPPFLAGS="${CPPFLAGS} -DITUNES")
-
-AC_ARG_ENABLE(spotify, AS_HELP_STRING([--enable-spotify], [enable Spotify library support (default=no)]),
- use_spotify=true;
- CPPFLAGS="${CPPFLAGS} -DSPOTIFY")
-
-AC_ARG_ENABLE(lastfm, AS_HELP_STRING([--enable-lastfm], [enable LastFM support (default=no)]),
- use_lastfm=true;
- CPPFLAGS="${CPPFLAGS} -DLASTFM")
+AC_ARG_ENABLE(flac, AS_HELP_STRING([--enable-flac], [extract FLAC metadata with libflac (default=no)]))
+AS_IF([test "x$enable_flac" = "xyes"], [
+ use_flac=true;
+ CPPFLAGS="${CPPFLAGS} -DFLAC"
+])
+
+AC_ARG_ENABLE(musepack, AS_HELP_STRING([--enable-musepack], [extract Musepack metadata with taglib (default=no)]))
+AS_IF([test "x$enable_musepack" = "xyes"], [
+ use_musepack=true;
+ CPPFLAGS="${CPPFLAGS} -DMUSEPACK"
+])
+
+AC_ARG_ENABLE(itunes, AS_HELP_STRING([--enable-itunes], [enable iTunes library support (default=no)]))
+AS_IF([test "x$enable_itunes" = "xyes"], [
+ use_itunes=true;
+ CPPFLAGS="${CPPFLAGS} -DITUNES"
+])
+
+AC_ARG_ENABLE(spotify, AS_HELP_STRING([--enable-spotify], [enable Spotify library support (default=no)]))
+AS_IF([test "x$enable_spotify" = "xyes"], [
+ use_spotify=true;
+ CPPFLAGS="${CPPFLAGS} -DSPOTIFY"
+])
+
+AC_ARG_ENABLE(lastfm, AS_HELP_STRING([--enable-lastfm], [enable LastFM support (default=no)]))
+AS_IF([test "x$enable_lastfm" = "xyes"], [
+ use_lastfm=true;
+ CPPFLAGS="${CPPFLAGS} -DLASTFM"
+])
case "$host" in
*-*-linux-*)