Magellan Linux

Contents of /branches/R11-stable/core/elfutils/elfutils-0.155-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18410 - (show annotations) (download)
Wed Jul 17 08:16:56 2013 UTC (10 years, 9 months ago) by niro
File size: 2400 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="elfutils"
4 PVER="0.155"
5 PBUILD="r6"
6
7 SPLIT_PACKAGES="libelf elfutils-libs elfutils"
8
9 PCAT="dev-libs"
10 HOMEPAGE="https://fedorahosted.org/elfutils/"
11
12 LIB_DEPEND=">= virtual/glibc"
13
14 SDEPEND=">= virtual/sed
15 >= sys-dev/gettext-0.18"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild multilib
21
22 # disable src_check
23 msetfeature "!check"
24
25 SRC_URI=(
26 https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-portability.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-sizeof-pointer-memaccess.patch
31 )
32
33 UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz"
34
35 split_info_libelf()
36 {
37 DESCRIPTION="Library to read and write ELF files."
38 DEPEND="${LIB_DEPEND}"
39 PCAT="sys-libs"
40 }
41
42 split_info_elfutils-libs()
43 {
44 DESCRIPTION="Libs to handle elf objects."
45 DEPEND="== sys-libs/libelf-${PVER}"
46 }
47
48 split_info_elfutils()
49 {
50 DESCRIPTION="Utils to handle elf objects."
51 DEPEND="== sys-libs/libelf-${PVER}
52 == dev-libs/elfutils-libs-${PVER}"
53 }
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58
59 # with issues with gcc-4.8 (-Np1 is required!)
60 mpatch -Np1 ${PNAME}-${PVER}-sizeof-pointer-memaccess.patch || die
61
62 # redhat patches:
63 mpatch ${PNAME}-${PVER}-portability.patch || die
64 mpatch ${PNAME}-${PVER}-robustify.patch || die
65
66 mautoreconf || die
67
68 # fix some noisiness (taken from gentoo ebuild)
69 all-abis "find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'"
70 }
71
72 src_compile()
73 {
74 mconfigure \
75 --program-prefix="eu-" \
76 --enable-shared \
77 --enable-nls \
78 || die
79
80 mmake || die
81 }
82
83 src_install_libelf()
84 {
85 mmake -C libelf DESTDIR=${BINDIR} install || die
86 # install version.h
87 mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
88 }
89
90 src_install_elfutils-libs()
91 {
92 mmake -C libebl DESTDIR=${BINDIR} install || die
93 mmake -C libdw DESTDIR=${BINDIR} install || die
94 mmake -C libdwfl DESTDIR=${BINDIR} install || die
95 mmake -C libasm DESTDIR=${BINDIR} install || die
96 mmake -C backends DESTDIR=${BINDIR} install || die
97 }
98
99 src_install_elfutils()
100 {
101 mmake -C src DESTDIR=${BINDIR} install || die
102 mmake -C po DESTDIR=${BINDIR} install || die
103
104 minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
105 GPG-KEY NEWS NOTES README THANKS TODO || die
106 }