Usual patch to produce Linux-like .so files on FreeBSD

diff -ur curl-7.26.0/ltmain.sh misc/build/curl-7.26.0/ltmain.sh
--- a/ltmain.sh	2012-07-02 13:28:51.298994493 +0200
+++ b/ltmain.sh	2012-07-02 13:42:46.511039769 +0200
@@ -7334,13 +7334,13 @@
 	  #
 	  case $version_type in
 	  # correct linux to gnu/linux during the next big refactor
-	  darwin|linux|osf|windows|none)
+	  darwin|linux|osf|windows|freebsd-aout|freebsd-elf|none)
 	    func_arith $number_major + $number_minor
 	    current=$func_arith_result
 	    age="$number_minor"
 	    revision="$number_revision"
 	    ;;
-	  freebsd-aout|freebsd-elf|qnx|sunos)
+	  qnx|sunos)
 	    current="$number_major"
 	    revision="$number_minor"
 	    age="0"
@@ -7420,8 +7420,8 @@
 	  ;;
 
 	freebsd-elf)
-	  major=".$current"
-	  versuffix=".$current"
+	  major=.`expr $current - $age`
+	  versuffix="$major"
 	  ;;
 
 	irix | nonstopux)
