forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calf-0.90.1-no-automagic.patch
43 lines (38 loc) · 1.24 KB
/
calf-0.90.1-no-automagic.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
Fix gtk+ and jack automagic detection.
https://github.com/calf-studio-gear/calf/issues/166
--- a/configure.ac 2018-07-08 12:35:56.000000000 +0200
+++ b/configure.ac 2019-03-10 19:22:05.578887471 +0100
@@ -150,13 +150,35 @@
[set_enable_sse="no"])
AC_MSG_RESULT($set_enable_sse)
+AC_MSG_CHECKING([whether to enable GUI])
+AC_ARG_ENABLE(gui,
+ AS_HELP_STRING([--enable-gui],[enable graphical user interface]),
+ [set_enable_gui=$enableval],
+ [set_enable_gui=yes])
+AC_MSG_RESULT($set_enable_gui)
+
+AC_MSG_CHECKING([whether to enable JACK])
+AC_ARG_ENABLE(jack,
+ AS_HELP_STRING([--enable-jack],[enable support for JACK]),
+ [set_enable_jack=$enableval],
+ [set_enable_jack=yes])
+AC_MSG_RESULT($set_enable_jack)
+
############################################################################################
# Compute status shell variables
-if test "$GUI_ENABLED" = "yes" -a "$JACK_FOUND" = "yes"; then
+if test "x$set_enable_gui" = "xno"; then
+ GUI_ENABLED="no (disabled by user choice)"
+fi
+
+if test "$JACK_FOUND" = "yes"; then
JACK_ENABLED="yes"
fi
+if test "x$set_enable_jack" = "xno"; then
+ JACK_ENABLED="no (disabled by user choice)"
+fi
+
if test "$GUI_ENABLED" = "yes" -a "$LV2_ENABLED" = "yes"; then
LV2_GUI_ENABLED="yes"
fi