summaryrefslogtreecommitdiff
path: root/media-sound/mpg123/files/mpg123-1.32.3-build-programs-component.patch
blob: ea20c8a445f6d6d322318dfa282737e0a558b954 (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
build: add programs component

From: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>

Upstream PR: https://github.com/madebr/mpg123/pull/11
Bug: https://bugs.gentoo.org/915858
---
 configure.ac |   20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index e47c7d5b..db37ff9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -440,6 +440,21 @@ AC_ARG_ENABLE(libsyn123,
   ]
 )
 
+AC_ARG_ENABLE(programs,
+  [AS_HELP_STRING([--enable-programs], [build (only) programs (with --disable-components)])],
+  [
+    if test "x$enableval" = xyes
+    then
+      build_programs=yes
+    else
+      build_programs=no
+    fi
+  ],
+  [
+    build_programs=no
+  ]
+)
+
 if test "x$build_all" = xyes; then
   build_programs=yes
   build_libmpg123=yes
@@ -447,8 +462,6 @@ if test "x$build_all" = xyes; then
   build_libout123_modules=yes
   build_libsyn123=yes
   components="programs"
-else
-  build_programs=no
 fi
 
 AM_CONDITIONAL([BUILD_PROGRAMS],  [ test "x$build_programs" = xyes ])
@@ -474,6 +487,9 @@ fi
 if test "x$build_libsyn123" = xyes; then
   components="$components libsyn123"
 fi
+if test "x$build_programs" = xyes; then
+  components="$components programs"
+fi
 components=$(echo $components)
 
 dnl ############## Configurable Options