diff options
Diffstat (limited to 'dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch')
-rw-r--r-- | dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch b/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch new file mode 100644 index 000000000000..03cbb76a82d9 --- /dev/null +++ b/dev-libs/tvision/files/tvision-2.2.3-0002-Added-configuration-option-to-exclude-libgpm.patch @@ -0,0 +1,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 + |