mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Update for hpkg building
This commit is contained in:
@@ -1,33 +1,52 @@
|
||||
DESCRIPTION="libtool - a generic library support script"
|
||||
SUMMARY="A generic library support script"
|
||||
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"
|
||||
SRC_URI="ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz"
|
||||
CHECKSUM_MD5="b32b04148ecdd7344abc6fe8bd1bb021"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
|
||||
PROVIDES="cmd:libtool = $portVersion compat >= 2.4
|
||||
cmd:libtool = $portVersion compat >= 2.4
|
||||
lib:libltdl.a = 7.3.0 compat >= 7
|
||||
lib:libltdl = 7.3.0 compat >= 7"
|
||||
DEPEND="haiku >= $haikuVersion
|
||||
aclocal >= 1.11.1
|
||||
automake >= 1.11.1"
|
||||
BUILD_DEPEND="haiku-devel >= $haikuVersion
|
||||
autoconf >= 2.68
|
||||
autoheader >= 2.68
|
||||
gcc
|
||||
ld
|
||||
nm
|
||||
sed"
|
||||
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
BUILD {
|
||||
cd libtool-2.4
|
||||
./bootstrap
|
||||
prefix=$(finddir B_PACKAGE_LINKS_DIRECTORY)/libtool-2.4
|
||||
SED='sed' NM='nm' ./configure --prefix=$prefix \
|
||||
--datarootdir=$prefix/data \
|
||||
--sbindir=$prefix/bin \
|
||||
--includedir=$prefix/develop/headers \
|
||||
--sysconfdir=$prefix/settings \
|
||||
--docdir=$prefix/documentation/packages/libtool \
|
||||
--infodir=$prefix/documentation/info \
|
||||
--mandir=$prefix/documentation/man \
|
||||
--with-gnu-ld
|
||||
make
|
||||
SED='sed' NM='nm' LD=ld ./configure $configureDirArgs --with-gnu-ld
|
||||
make -j$jobs
|
||||
# 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 {
|
||||
cd libtool-2.4
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd libtool-2.4
|
||||
make check
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user