summaryrefslogtreecommitdiff
path: root/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch
blob: 03cbb76a82d96cf569e68a45d8a3866a66341145 (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
From: "Salvador E. Tropea" <salvador@inti.gob.ar>
Date: Thu, 17 Jun 2021 13:28:36 -0300
Subject: [PATCH 2/4] Added configuration option to exclude libgpm

- Fixes #1
---
 config.pl | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/config.pl b/config.pl
index 21d81ff3..424e3065 100644
--- a/config.pl
+++ b/config.pl
@@ -73,7 +73,14 @@ if ($OS eq 'DOS')
 
 if ($OS eq 'UNIX')
   {
-   LookForGPM($GPMVersionNeeded);
+   if ($conf{'gpm'} eq 'no')
+     {
+      $conf{'HAVE_GPM'}='no';
+     }
+   else
+     {
+      LookForGPM($GPMVersionNeeded);
+     }
    LookForNCurses($NCursesVersionNeeded);
    LookForKeysyms();
    LookForXlib();
@@ -424,6 +431,10 @@ sub SeeCommandLine
       {
        $conf{'no-dynamic'}='yes';
       }
+    elsif ($i eq '--without-gpm')
+      {
+       $conf{'gpm'}='no';
+      }
 #    elsif ($i eq '--unsafe-memcpy')
 #      {
 #       $conf{'HAVE_UNSAFE_MEMCPY'}='yes';
@@ -482,6 +493,7 @@ sub ShowHelp
  print "--no-intl        : don't use international support.\n";
  print "--without-static : don't create the static library.\n";
  print "--without-dynamic: don't create the dynamic library.\n";
+ print "--without-gpm    : skip gpm library detection.\n";
  print "--with-mss       : compiles with MSS memory debugger.\n";
  print "--without-mss    : compiles without MSS [default].\n";
  print "--with-ssc       : compiles using Simple Streams Compatibility.\n";
@@ -532,7 +544,7 @@ sub GiveAdvice
     print "  using this library reconfigure using --no-intl. Read about it in the readme.\n";
     print "  [[[[[[[*******************>>>>> IMPORTANT!!! <<<<<*******************]]]]]]]\n";
    }
- if ((@conf{'HAVE_GPM'} eq 'no') && ($OSf eq 'Linux'))
+ if ((@conf{'HAVE_GPM'} eq 'no') && ($OSf eq 'Linux') && ($conf{'gpm'} ne 'no'))
    {
     print "\n";
     print "* No mouse support for console! please install the libgpm package needed\n";
-- 
2.32.0