Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/libtool/libtool-2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1688 - (show annotations) (download)
Sun Jan 23 01:24:58 2011 UTC (13 years, 4 months ago) by niro
File size: 1285 byte(s)
-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 REMOVE_DEPRECATED_MAGE_TARGETS=1
19 sminclude mbuild multilib alx
20
21 SRC_URI=(
22 gnu://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd_gnu ${PNAME} gz"
27
28 src_compile()
29 {
30 # --build=$CHOST prevents libtool link issues at least on x86_64 hosts.
31 # sometimes the global_symbol_pipe variable is empty and produces
32 # compile errors. we check with 'grep "^global_symbol_pipe" libtool'
33 # for a broken libtool, if empty we simply die.
34 #
35 # grep "^global_symbol_pipe" libtool must give us this:
36 # global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
37 #
38 mconfigure --build=${CHOST} || die
39 mmake || die
40
41 # check for broken libtool
42 for abi in ${MULTILIB_ABIS}
43 do
44 if [[ -z $(grep "^global_symbol_pipe" ${SRCDIR}-${abi}/libtool) ]]
45 then
46 die "compiled libtool is broken: empty 'global_symbol_pipe' variable"
47 fi
48 done
49 }