Magellan Linux

Annotation of /smage/trunk/core/libtool/libtool-2.4-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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