Magellan Linux

Annotation of /trunk/core/libtool/libtool-2.2.6a-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1264 - (hide annotations) (download)
Sun Apr 26 15:16:06 2009 UTC (15 years ago) by niro
File size: 1143 byte(s)
-typo
1 niro 1263 # $Id$
2    
3     PNAME="libtool"
4     PVER="2.2.6a"
5     PBUILD="r3"
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     if [[ -z $(grep "^global_symbol_pipe" ${SRCDIR}/libtool) ]]
42     then
43 niro 1264 die "compiled libtool is broken: empty 'global_symbol_pipe' variable"
44     fi
45 niro 1263 }

Properties

Name Value
svn:keywords Id