Contents of /smage/branches/alx07x-stable/core/libtool/libtool-2.4.6-r6.smage2
Parent Directory | Revision Log
Revision 10167 -
(show annotations)
(download)
Wed Aug 16 08:07:19 2017 UTC (7 years, 1 month ago) by niro
Original Path: smage/trunk/core/libtool/libtool-2.4.6-r6.smage2
File size: 3153 byte(s)
Wed Aug 16 08:07:19 2017 UTC (7 years, 1 month ago) by niro
Original Path: smage/trunk/core/libtool/libtool-2.4.6-r6.smage2
File size: 3153 byte(s)
auto added: ver bump to 2.4.6-r6
1 | # $Id$ |
2 | |
3 | PNAME="libtool" |
4 | PVER="2.4.6" |
5 | PBUILD="r6" |
6 | |
7 | SPLIT_PACKAGES="libltdl libtool" |
8 | |
9 | PCAT="sys-dev" |
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 | LIBTOOL_DEPEND="$(marchdepend) |
16 | == sys-dev/gcc-7.1.0" |
17 | LIBLTDL_DEPEND=">= virtual/glibc" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/a/}" |
21 | |
22 | sminclude mbuild multilib mtools cleanutils |
23 | msetfeature "!check" |
24 | |
25 | SRC_URI=( |
26 | gnu://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
31 | |
32 | split_info_libltdl() |
33 | { |
34 | DESCRIPTION="A system independent dlopen wrapper library for GNU libtool." |
35 | DEPEND="${LIBLTDL_DEPEND}" |
36 | PCAT="sys-libs" |
37 | } |
38 | |
39 | split_info_libtool() |
40 | { |
41 | DESCRIPTION="A shared library tool for developers." |
42 | DEPEND="${LIBTOOL_DEPEND} |
43 | == sys-libs/libltdl-${PVER}" |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | local myopts |
49 | |
50 | # set abi specific search pathes on multilib systems |
51 | if [[ ${ARCH} = x86_64 ]] |
52 | then |
53 | echo "lt_cv_sys_dlsearch_path='/lib /usr/lib /usr/local/lib /opt/lib'" > ${BUILDDIR}/config.cache-m32 || die |
54 | echo "lt_cv_sys_dlsearch_path='$(mlibdir) /usr/$(mlibdir) /usr/local/$(mlibdir) /opt/$(mlibdir)'" > ${BUILDDIR}/config.cache-m64 || die |
55 | myopts="--cache-file=${BUILDDIR}/config.cache-$(mabi)" |
56 | fi |
57 | |
58 | # --build=$CHOST prevents libtool link issues at least on x86_64 hosts. |
59 | # sometimes the global_symbol_pipe variable is empty and produces |
60 | # compile errors. we check with 'grep "^global_symbol_pipe" libtool' |
61 | # for a broken libtool, if empty we simply die. |
62 | # |
63 | # grep "^global_symbol_pipe" libtool must give us this: |
64 | # global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" |
65 | # |
66 | mconfigure --build=${CHOST} ${myopts} || die |
67 | mmake || die |
68 | |
69 | # check for broken libtool |
70 | for abi in ${MULTILIB_ABIS} |
71 | do |
72 | if [[ -z $(grep "^global_symbol_pipe" ${SRCDIR}-${abi}/libtool) ]] |
73 | then |
74 | die "compiled libtool is broken: empty 'global_symbol_pipe' variable" |
75 | fi |
76 | done |
77 | } |
78 | |
79 | src_install_libltdl() |
80 | { |
81 | mmake DESTDIR=${BINDIR} install-libLTLIBRARIES || die |
82 | mmake DESTDIR=${BINDIR} install-includeHEADERS || die |
83 | mmake DESTDIR=${BINDIR} install-ltdlincludeHEADERS || die |
84 | mmake DESTDIR=${BINDIR} install-data-local || die |
85 | |
86 | # remove duplicates from other split packages |
87 | mdelete -r /usr/bin || die |
88 | mdelete -r /usr/share/aclocal || die |
89 | mdelete -r /usr/share/libtool/build-aux || die |
90 | } |
91 | |
92 | src_install_libtool() |
93 | { |
94 | mmake DESTDIR=${BINDIR} install-binSCRIPTS || die |
95 | mmake DESTDIR=${BINDIR} install-man || die |
96 | mmake DESTDIR=${BINDIR} install-info || die |
97 | mmake DESTDIR=${BINDIR} install-data-local || die |
98 | |
99 | # remove duplicates from other split packages |
100 | zapmost ${BINDIR}/usr/share/libtool build-aux || die |
101 | |
102 | # on multilib use multilibwrapper |
103 | if [[ ${ARCH} = x86_64 ]] |
104 | then |
105 | # install the multiarch-wrapper |
106 | if [[ -f ${BINDIR}/usr/bin/libtool ]] |
107 | then |
108 | rm -f ${BINDIR}/usr/bin/libtool || die |
109 | fi |
110 | all-abis minstallexec libtool /usr/bin/libtool-$(mabi) || die |
111 | mlink multiarch-wrapper /usr/bin/libtool || die |
112 | fi |
113 | |
114 | minstalldocs AUTHORS COPYING ChangeLog* NEWS README THANKS TODO || die |
115 | } |