[Midnightbsd-cvs] mports [17885] trunk/devel/libtool: teach libtool about midnightbsd
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Dec 17 23:01:51 EST 2014
Revision: 17885
http://svnweb.midnightbsd.org/mports/?rev=17885
Author: laffer1
Date: 2014-12-17 23:01:50 -0500 (Wed, 17 Dec 2014)
Log Message:
-----------
teach libtool about midnightbsd
Modified Paths:
--------------
trunk/devel/libtool/Makefile
trunk/devel/libtool/files/patch-build-aux_ltmain.sh
trunk/devel/libtool/files/patch-configure
trunk/devel/libtool/files/patch-m4_libtool.m4
Modified: trunk/devel/libtool/Makefile
===================================================================
--- trunk/devel/libtool/Makefile 2014-12-14 16:27:54 UTC (rev 17884)
+++ trunk/devel/libtool/Makefile 2014-12-18 04:01:50 UTC (rev 17885)
@@ -3,7 +3,7 @@
# $MidnightBSD$
PORTNAME= libtool
-PORTREVISION= 0
+PORTREVISION= 1
COMMENT= Generic shared library support script
Modified: trunk/devel/libtool/files/patch-build-aux_ltmain.sh
===================================================================
--- trunk/devel/libtool/files/patch-build-aux_ltmain.sh 2014-12-14 16:27:54 UTC (rev 17884)
+++ trunk/devel/libtool/files/patch-build-aux_ltmain.sh 2014-12-18 04:01:50 UTC (rev 17885)
@@ -1,6 +1,6 @@
---- build-aux/ltmain.sh.orig 2013-10-26 22:53:58 UTC
-+++ build-aux/ltmain.sh
-@@ -8598,13 +8598,13 @@ func_mode_link ()
+--- build-aux/ltmain.sh.orig 2013-10-26 18:53:58.000000000 -0400
++++ build-aux/ltmain.sh 2014-12-17 22:53:02.964009896 -0500
+@@ -8598,13 +8598,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
@@ -16,12 +16,14 @@
current=$number_major
revision=$number_minor
age=0
-@@ -8690,8 +8690,9 @@ func_mode_link ()
+@@ -8689,9 +8689,10 @@
+ versuffix=.$current.$revision
;;
- freebsd-elf)
+- freebsd-elf)
- major=.$current
- versuffix=.$current
++ freebsd-elf|midnightbsd)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=$major.$age.$revision
Modified: trunk/devel/libtool/files/patch-configure
===================================================================
--- trunk/devel/libtool/files/patch-configure 2014-12-14 16:27:54 UTC (rev 17884)
+++ trunk/devel/libtool/files/patch-configure 2014-12-18 04:01:50 UTC (rev 17885)
@@ -1,6 +1,42 @@
---- configure.orig 2013-10-26 22:53:35 UTC
-+++ configure
-@@ -11582,7 +11582,8 @@ freebsd* | dragonfly*)
+--- configure.orig 2013-10-26 18:53:35.000000000 -0400
++++ configure 2014-12-17 22:58:50.619010180 -0500
+@@ -5781,7 +5781,7 @@
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
++ bitrig* | darwin* | dragonfly* | midnightbsd* | freebsd* | netbsd* | openbsd*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+@@ -6189,7 +6189,7 @@
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -10605,7 +10605,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -11568,7 +11568,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+@@ -11582,7 +11582,8 @@
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -10,7 +46,43 @@
need_version=no
need_lib_prefix=no
;;
-@@ -16739,7 +16740,8 @@ freebsd* | dragonfly*)
+@@ -13370,7 +13371,7 @@
+ # If you are looking for one http://www.opendarwin.org/projects/dlcompat
+ lt_cv_sys_dlopen_deplibs=yes
+ ;;
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ lt_cv_sys_dlopen_deplibs=yes
+ ;;
+ gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
+@@ -14877,7 +14878,7 @@
+ archive_cmds_need_lc_CXX=no
+ ;;
+
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ ld_shlibs_CXX=yes
+@@ -15857,7 +15858,7 @@
+ ;;
+ esac
+ ;;
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+@@ -16725,7 +16726,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+@@ -16739,7 +16740,8 @@
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -20,7 +92,25 @@
need_version=no
need_lib_prefix=no
;;
-@@ -19695,7 +19697,8 @@ freebsd* | dragonfly*)
+@@ -18928,7 +18930,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+@@ -19681,7 +19683,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+@@ -19695,11 +19697,12 @@
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -30,7 +120,30 @@
need_version=no
need_lib_prefix=no
;;
-@@ -22786,7 +22789,8 @@ freebsd* | dragonfly*)
+- freebsd-*)
++ freebsd-* | midnightbsd-*)
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+ need_version=yes
+ ;;
+@@ -22019,7 +22022,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_FC='-R$libdir'
+ hardcode_direct_FC=yes
+@@ -22772,7 +22775,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+@@ -22786,11 +22789,12 @@
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -40,3 +153,8 @@
need_version=no
need_lib_prefix=no
;;
+- freebsd-*)
++ freebsd-* | midnightbsd-*)
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+ need_version=yes
+ ;;
Modified: trunk/devel/libtool/files/patch-m4_libtool.m4
===================================================================
--- trunk/devel/libtool/files/patch-m4_libtool.m4 2014-12-14 16:27:54 UTC (rev 17884)
+++ trunk/devel/libtool/files/patch-m4_libtool.m4 2014-12-18 04:01:50 UTC (rev 17885)
@@ -1,6 +1,24 @@
---- m4/libtool.m4.orig 2013-10-25 23:37:46 UTC
-+++ m4/libtool.m4
-@@ -2547,7 +2547,8 @@ freebsd* | dragonfly*)
+--- m4/libtool.m4.orig 2013-10-25 19:37:46.000000000 -0400
++++ m4/libtool.m4 2014-12-17 23:00:30.234010328 -0500
+@@ -1687,7 +1687,7 @@
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
++ bitrig* | darwin* | dragonfly* | midnightbsd* | freebsd* | netbsd* | openbsd*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+@@ -2533,7 +2533,7 @@
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+@@ -2547,7 +2547,8 @@
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -10,3 +28,39 @@
need_version=no
need_lib_prefix=no
;;
+@@ -3289,7 +3290,7 @@
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+-freebsd* | dragonfly*)
++freebsd* | dragonfly* | midnightbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -4105,7 +4106,7 @@
+ ;;
+ esac
+ ;;
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+@@ -5343,7 +5344,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+@@ -6344,7 +6345,7 @@
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+
+- freebsd* | dragonfly*)
++ freebsd* | dragonfly* | midnightbsd*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_TAGVAR(ld_shlibs, $1)=yes
More information about the Midnightbsd-cvs
mailing list