mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
111 lines
3.0 KiB
Bash
111 lines
3.0 KiB
Bash
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-2022 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftp.gnu.org/gnu/libtool/libtool-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="04e96c2404ea70c590c546eba4202a4e12722c640016c12b9b2f1ce3d481e9a8"
|
|
PATCHES="libtool-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="7.3.2"
|
|
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
|
|
}
|