Magellan Linux

Contents of /smage/trunk/core/libtool/libtool-2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations) (download)
Tue Dec 7 19:29:04 2010 UTC (13 years, 4 months ago) by niro
File size: 1248 byte(s)
auto added: ver bump to 2.4-r1
1 # $Id: libtool-2.2.6a-r4.smage2 3050 2009-10-07 18:36:05Z niro $
2
3 PNAME="libtool"
4 PVER="2.4"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-dev"
8 STATE="unstable"
9
10 DESCRIPTION="A shared library tool for developers."
11 HOMEPAGE="http://www.gnu.org/software/libtool/libtool.html"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/a/}"
17
18 sminclude mbuild multilib
19
20 SRC_URI=(
21 gnu://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd_gnu ${PNAME} gz"
26
27 src_compile()
28 {
29 # --build=$CHOST prevents libtool link issues at least on x86_64 hosts.
30 # sometimes the global_symbol_pipe variable is empty and produces
31 # compile errors. we check with 'grep "^global_symbol_pipe" libtool'
32 # for a broken libtool, if empty we simply die.
33 #
34 # grep "^global_symbol_pipe" libtool must give us this:
35 # global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
36 #
37 mconfigure --build=${CHOST} || die
38 mmake || die
39
40 # check for broken libtool
41 for abi in ${MULTILIB_ABIS}
42 do
43 if [[ -z $(grep "^global_symbol_pipe" ${SRCDIR}-${abi}/libtool) ]]
44 then
45 die "compiled libtool is broken: empty 'global_symbol_pipe' variable"
46 fi
47 done
48 }