Annotation of /trunk/core/libtool/libtool-2.4.2-r2.smage2
Parent Directory | Revision Log
Revision 9138 -
(hide annotations)
(download)
Mon Nov 7 18:22:30 2011 UTC (12 years, 7 months ago) by niro
Original Path: branches/magellan-next/core/libtool/libtool-2.4.2-r2.smage2
File size: 2104 byte(s)
Mon Nov 7 18:22:30 2011 UTC (12 years, 7 months ago) by niro
Original Path: branches/magellan-next/core/libtool/libtool-2.4.2-r2.smage2
File size: 2104 byte(s)
-fixed missing includes
1 | niro | 9136 | # $Id$ |
2 | |||
3 | PNAME="libtool" | ||
4 | PVER="2.4.2" | ||
5 | PBUILD="r2" | ||
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_x86_64=">= sys-apps/multiarch-wrapper-1" | ||
13 | SPECIAL_VARS="DEPEND_x86_64" | ||
14 | |||
15 | DEPEND="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') | ||
16 | >= virtual/glibc" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/a/}" | ||
20 | |||
21 | niro | 9138 | sminclude mbuild multilib mtools |
22 | niro | 9136 | |
23 | SRC_URI=( | ||
24 | gnu://${PNAME}/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | ) | ||
27 | |||
28 | UP2DATE="updatecmd_gnu ${PNAME} gz" | ||
29 | |||
30 | src_compile() | ||
31 | { | ||
32 | local myopts | ||
33 | |||
34 | # set abi specific search pathes on multilib systems | ||
35 | if [[ ${ARCH} = x86_64 ]] | ||
36 | then | ||
37 | echo "lt_cv_sys_dlsearch_path='/lib /usr/lib /usr/local/lib /opt/lib'" > ${BUILDDIR}/config.cache-m32 || die | ||
38 | echo "lt_cv_sys_dlsearch_path='$(mlibdir) /usr/$(mlibdir) /usr/local/$(mlibdir) /opt/$(mlibdir)'" > ${BUILDDIR}/config.cache-m64 || die | ||
39 | niro | 9137 | myopts="--cache-file=${BUILDDIR}/config.cache-$(mabi)" |
40 | niro | 9136 | fi |
41 | |||
42 | # --build=$CHOST prevents libtool link issues at least on x86_64 hosts. | ||
43 | # sometimes the global_symbol_pipe variable is empty and produces | ||
44 | # compile errors. we check with 'grep "^global_symbol_pipe" libtool' | ||
45 | # for a broken libtool, if empty we simply die. | ||
46 | # | ||
47 | # grep "^global_symbol_pipe" libtool must give us this: | ||
48 | # global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" | ||
49 | # | ||
50 | mconfigure --build=${CHOST} ${myopts} || die | ||
51 | mmake || die | ||
52 | |||
53 | # check for broken libtool | ||
54 | for abi in ${MULTILIB_ABIS} | ||
55 | do | ||
56 | if [[ -z $(grep "^global_symbol_pipe" ${SRCDIR}-${abi}/libtool) ]] | ||
57 | then | ||
58 | die "compiled libtool is broken: empty 'global_symbol_pipe' variable" | ||
59 | fi | ||
60 | done | ||
61 | } | ||
62 | |||
63 | src_install() | ||
64 | { | ||
65 | multilib_src_install || die | ||
66 | |||
67 | # on multilib use multilibwrapper | ||
68 | if [[ ${ARCH} = x86_64 ]] | ||
69 | then | ||
70 | # install the multiarch-wrapper | ||
71 | if [[ -f ${BINDIR}/usr/bin/libtool ]] | ||
72 | then | ||
73 | rm -f ${BINDIR}/usr/bin/libtool || die | ||
74 | fi | ||
75 | all-abis minstallexec libtool /usr/bin/libtool-$(mabi) || die | ||
76 | mlink multiarch-wrapper /usr/bin/libtool || die | ||
77 | fi | ||
78 | } |