mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
libtool: move to dev-build
gentoo moved from sys-devel
This commit is contained in:
110
dev-build/libtool/libtool-2.4.6.recipe
Normal file
110
dev-build/libtool/libtool-2.4.6.recipe
Normal file
@@ -0,0 +1,110 @@
|
||||
SUMMARY="A generic library of support scripts"
|
||||
DESCRIPTION="GNU libtool is a set of shell scripts to automatically configure \
|
||||
UNIX architectures to build shared libraries in a generic fashion."
|
||||
HOMEPAGE="http://www.gnu.org/software/libtool"
|
||||
COPYRIGHT="2004-2010 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://ftp.gnu.org/gnu/libtool/libtool-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3"
|
||||
PATCHES="libtool-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all ?arm"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion="7.3.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libtool$secondaryArchSuffix = $portVersion compat >= 2.4
|
||||
cmd:libtool$secondaryArchSuffix = $portVersion compat >= 2.4
|
||||
cmd:libtoolize$secondaryArchSuffix = $portVersion compat >= 2.4
|
||||
devel:libltdl$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
libtool${secondaryArchSuffix}_libltdl == $portVersion base
|
||||
cmd:aclocal
|
||||
cmd:automake
|
||||
cmd:find
|
||||
cmd:sed
|
||||
cmd:tar
|
||||
cmd:xargs
|
||||
"
|
||||
|
||||
SUMMARY_libltdl="The libtool libltdl library"
|
||||
PROVIDES_libltdl="
|
||||
libtool${secondaryArchSuffix}_libltdl = $portVersion compat >= 2.4
|
||||
lib:libltdl$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_libltdl="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf >= 2.62
|
||||
cmd:autoheader >= 2.62
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:nm
|
||||
cmd:ranlib
|
||||
cmd:sed
|
||||
cmd:xargs
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export MAKEINFO=/bin/true
|
||||
export HELP2MAN=/bin/true
|
||||
export PATCH=/bin/true
|
||||
export XZ=/bin/true
|
||||
touch README-release
|
||||
|
||||
cp m4/libtool.m4 m4/libtool.m4.bak
|
||||
./bootstrap --force
|
||||
mv m4/libtool.m4.bak m4/libtool.m4
|
||||
# bootstrap copies back the file from the system over the current ones.
|
||||
# But we must run it, because libtool is shipped with old aclocal-1.15
|
||||
# files and we have only a newer aclocal. So just restore the file.
|
||||
SED='sed' NM='nm' LD=ld runConfigure ./configure \
|
||||
--with-gnu-ld \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
# Desperate move to remove the absolute paths from libtool. For some reason
|
||||
# only for the C++ compiler those are set (not for the C compiler). In
|
||||
# openSuse libtool doesn't have those variables set either, but building
|
||||
# according to their libroot.spec produces a libtool that has them set as
|
||||
# well. My guess is that one has to build libtool without a C++ compiler
|
||||
# installed to get that result.
|
||||
sed -i -e 's@^predep_objects=".*"$@predep_objects=""'@ \
|
||||
-e 's@^postdep_objects=".*"$@postdep_objects=""'@ \
|
||||
-e 's@^postdeps=".*"$@postdeps=""'@ \
|
||||
-e 's@^compiler_lib_search_path=".*"$@compiler_lib_search_path=""'@ \
|
||||
-e 's@^compiler_lib_search_dirs=".*"$@compiler_lib_search_dirs=""'@ \
|
||||
libtool
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm -f $libDir/libltdl.la
|
||||
|
||||
prepareInstalledDevelLib libltdl
|
||||
|
||||
# libltdl package
|
||||
packageEntries libltdl \
|
||||
$libDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
58
dev-build/libtool/patches/libtool-2.4.6.patchset
Normal file
58
dev-build/libtool/patches/libtool-2.4.6.patchset
Normal file
@@ -0,0 +1,58 @@
|
||||
From 3b142951766c96626786c8e65cc87c1aed0b6818 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sat, 30 Sep 2017 12:12:08 +0200
|
||||
Subject: Adjust haiku configuration of upstream libtool for packaging.
|
||||
|
||||
|
||||
diff --git a/m4/libtool.m4 b/m4/libtool.m4
|
||||
index a3bc337..1885e22 100644
|
||||
--- a/m4/libtool.m4
|
||||
+++ b/m4/libtool.m4
|
||||
@@ -2709,8 +2709,9 @@ haiku*)
|
||||
soname_spec='$libname$release$shared_ext$major'
|
||||
shlibpath_var=LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=no
|
||||
- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
||||
- hardcode_into_libs=yes
|
||||
+ sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
|
||||
+ sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
|
||||
+ hardcode_into_libs=no
|
||||
;;
|
||||
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
--
|
||||
2.26.0
|
||||
|
||||
|
||||
From f9239bc54a5c90cd2ef7dbebf94e8eb4d5f3a454 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sat, 11 Apr 2020 21:12:42 +0200
|
||||
Subject: Do not explicitly link dependencies on Haiku.
|
||||
|
||||
This is not needed, the runtime_loader can figure them out.
|
||||
|
||||
diff --git a/m4/libtool.m4 b/m4/libtool.m4
|
||||
index 1885e22..667d45e 100644
|
||||
--- a/m4/libtool.m4
|
||||
+++ b/m4/libtool.m4
|
||||
@@ -5128,7 +5128,7 @@ _LT_EOF
|
||||
|
||||
haiku*)
|
||||
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
||||
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
||||
+ _LT_TAGVAR(link_all_deplibs, $1)=no
|
||||
;;
|
||||
|
||||
os2*)
|
||||
@@ -6769,7 +6769,7 @@ if test yes != "$_lt_caught_CXX_error"; then
|
||||
|
||||
haiku*)
|
||||
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
||||
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
||||
+ _LT_TAGVAR(link_all_deplibs, $1)=no
|
||||
;;
|
||||
|
||||
hpux9*)
|
||||
--
|
||||
2.26.0
|
||||
|
||||
Reference in New Issue
Block a user