Files
bsdports/net/libssh2/files/patch-x-ltmain.sh
2019-12-26 07:26:06 +00:00

37 lines
879 B
Bash

--- ./ltmain.sh.orig 2019-03-21 11:27:06.000000000 +0200
+++ ./ltmain.sh 2019-12-24 14:58:34.011836000 +0200
@@ -8904,13 +8904,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|freebsd-elf|linux|osf|windows|none)
+ darwin|linux|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|qnx|sunos)
+ freebsd*|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -8993,15 +8993,9 @@
esac
;;
- freebsd-aout)
+ freebsd*)
major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf)
- func_arith $current - $age
- major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=.$current
;;
irix | nonstopux)